-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenerateSpice.h
More file actions
30 lines (29 loc) · 1.35 KB
/
Copy pathGenerateSpice.h
File metadata and controls
30 lines (29 loc) · 1.35 KB
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
#ifndef __GENERATE_SPICE__
#define __GENERATE_SPICE__
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include "PathLimitation.h"
using namespace std;
typedef struct transistor_ {
string Gate;
string Source;
string Drain;
string Substrate;
string Mos;
float W = 0;
float L = 0.05; // 45 NM
// float L = 16; // 7 NM
int lambda = 2;
float basicW = 0.25; // 45 NM
// float basicW = 23; // 7 NM
int nFin;
}transistor;
vector<transistor> DeriveSourceDrains(vector<pair<pair<int, int>, string>> transistors_pairs);
vector<transistor> transformTransistors(int nClusters, int InputClusterID, int OutClusterID, vector<pair<pair<int, int>, string>> transistors_pairs, int mos);
void writeSpice(string file, string CircktName, set<string> AllLiterals, vector<transistor> transistorsPUN, vector<transistor> transistorsPDN);
void GenerateTransistors(set<string> AllLiterals, vector<transistor>& transistorsPUN, vector<transistor>& transistorsPDN);
void GenerateTransistors(set<string> AllLiterals, vector<transistor>& transistorsPUN, vector<transistor>& transistorsPDN, int OutINV);
vector<transistor> transformTransistors(int nClusters, int InputClusterID, int OutClusterID, vector<pair<pair<int, int>, string>> transistors_pairs, map<pair<int, int>, int> transistors_Counts, int mos, int OutINV);
#endif // !__GENERATE_SPICE__