Labs/final/testBuffer.cir

61 lines
1.6 KiB
Plaintext
Raw Normal View History

2021-03-09 19:15:28 -08:00
* 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*****
2021-03-15 15:17:04 -07:00
.param per = 1.3ns
2021-03-12 13:53:24 -08:00
.param dataLead=per*0.1
.param lw=1800
2021-03-09 19:15:28 -08:00
.param wirew=12
vdd vdd 0 'supply'
Xclok clk dat1 period='per' start='per+dataLead' total=1 duty=0.5 sz=50
2021-03-15 15:17:04 -07:00
Xad ad dat1 period='per' start='per' total=1 duty=0.5 sz=100
Xrdwr rdw dat1 period='per' start='2*per' total=2 duty=1 sz=100
Xdii din dat1 period='per' start='per' total=4 duty=2 sz=100
2021-03-09 19:15:28 -08:00
2021-03-15 15:17:04 -07:00
Xad adf ad clk flop
Xdinff dinf din clk flop
Xrdwff rdwf rdw clk flop
Xdec choose adf clk decModel
2021-03-09 19:15:28 -08:00
2021-03-14 23:11:00 -07:00
Xwr bt3 bf3 din rdw clk write1
2021-03-12 13:53:24 -08:00
Xw1 bt1 bt2 bf1 bf2 clk wire_precharge len='lw/4' wid='wirew'
2021-03-14 23:11:00 -07:00
Xmd1 bt2 bf2 memLoad number=15
2021-03-12 13:53:24 -08:00
Xw2 bt2 bt3 bf2 bf3 clk wire_precharge len='lw/4' wid='wirew'
Xmd2 bt3 bf3 memLoad number=16
Xw3 bt3 bt4 bf3 bf4 clk wire_precharge len='lw/4' wid='wirew'
Xmd3 bt4 bf4 memLoad number=16
Xw4 bt4 btt bf4 bff clk wire_precharge len='lw/4' wid='wirew'
2021-03-14 23:11:00 -07:00
Xmd4 btt bff memLoad number =16
2021-03-15 15:17:04 -07:00
Xla bt1 bf1 choose mem1
2021-03-14 21:13:43 -07:00
Xrd btt bff set rst rdw clk choose readSub
2021-03-09 19:15:28 -08:00
Xrc dot set rst vdd vdd vdd vdd vdd vdd readCollect
2021-03-14 21:13:43 -07:00
2021-03-09 19:15:28 -08:00
.ic V(la:tt)=0 V(la:ff)=1
.ic V(bt2)=1
2021-03-12 13:53:24 -08:00
.tran 1p 'per*20'
2021-03-14 21:13:43 -07:00
.meas tran dot_delay trig V(clk) val=0.8*supply rise=2 targ V(dot) val=0.8*supply rise=1
2021-03-09 19:15:28 -08:00