-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransistor.h
48 lines (41 loc) · 1.03 KB
/
transistor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef TRANSISTOR_H
#define TRANSISTOR_H
#include <iostream>
#include <string>
using namespace std;
class Transistor {
string alias;
string source;
string drain;
string gate;
string bulk;
string type; //PMOS,NMOS,LVT,HVT
double diff_width;
int fingers;
double gate_lenght;
int stack;
public:
Transistor();
Transistor(string alias, string source, string drain, string gate, string bulk, string type, double diff_width, int fingers, double gate_lenght, int stack);
void set_alias(string alias);
void set_source(string source);
void set_drain(string drain);
void set_gate(string gate);
void set_bulk(string bulk);
void set_type(string type);
void set_diff_width(double width);
void set_fingers(int fingers);
void set_gate_lenght(double gate_lenght);
void set_stack(int stack);
string get_alias();
string get_source();
string get_drain();
string get_gate();
string get_bulk();
string get_type();
double get_diff_width();
int get_fingers();
double get_gate_lenght();
int get_stack();
};
#endif