52 lines
953 B
Plaintext
52 lines
953 B
Plaintext
|
|
||
|
|
||
|
* File includes subcircuits and technology definitions
|
||
|
.include ./SRAM_bits.cir
|
||
|
|
||
|
|
||
|
*this cell emulates load from SRAM cells,
|
||
|
* Number refers to the load from than number of cells
|
||
|
.subckt memLoad ttt fff number=254
|
||
|
Xnt ttt gnd dead nn ww='number*5'
|
||
|
Xnf fff gnd dead nn ww='number*5'
|
||
|
.ends memLoad
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
*********begin: topLevel*****
|
||
|
|
||
|
* Parameters
|
||
|
.global gnd vdd
|
||
|
.param gnd=0
|
||
|
|
||
|
|
||
|
*********begin: topLevel*****
|
||
|
.param per = 1ns
|
||
|
.param lw=500
|
||
|
.param wirew=3
|
||
|
|
||
|
|
||
|
*DC supplies
|
||
|
|
||
|
* make sure data signal is set up before clock signal triggers write
|
||
|
* possible NOR rdw and Clk, and then maybe delay clk?
|
||
|
* connect PMOS transistors to output of NOR gate, not directly to clk
|
||
|
|
||
|
|
||
|
vdd vdd 0 'supply'
|
||
|
Xclok clk dat1 period='per' start='per' total=1 duty=0.5 sz=120
|
||
|
Xrdwr rdw dat1 period='per' start='per' total=2 duty=1
|
||
|
Xdii dii dat1 period='per' start='per+0' total=3 duty=1
|
||
|
|
||
|
Xwr bt0 bf0 dii gnd clk write1
|
||
|
|
||
|
|
||
|
.tran 1p 15n
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|