Mar 11, 2019 #1 S simrithshravya Newbie level 2 Joined Mar 11, 2019 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 22 Code dot - [expand]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 49 50 51 52 53 54 55 56 57 58 59 60 61 *10T FULL ADDER CMOS using functin calling .protect .include " C:\synopsys\model files\45micron.txt" .unprotect .param tclk = 10n .param tc = 10n .param supply = 0.9v va a gnd pulse (0v 0.9v 0.1n 0.1n 0.1n 6n 12n ) vb b gnd pulse (0v 0.9v 0.1n 0.1n 0.1n 5n 10n ) vcin cin gnd pulse (0v 0.9v 0.1n 0.1n 0.1n 2n 4n ) vdd vdd gnd dc 0.9v .subckt xnor vdd gnd a b w2 mp1 w1 a vdd vdd pmos w=0.360u l=0.045u mp2 w2 b w1 vdd pmos w=0.360u l=0.045u mn1 w2 a b gnd nmos w=0.180u l=0.045u mn2 w2 b a gnd nmos w=0.180u l=0.045u .ends .subckt inv vdd gnd w2 w3 mp3 w3 w2 vdd vdd pmos w=0.360u l=0.045u mn3 w3 w2 gnd gnd nmos w=0.180u l=0.045u .ends .subckt gate vdd gnd cin w3 w2 sum mp4 sum cin w3 vdd pmos w=0.360u l=0.045u mn4 w2 cin sum gnd nmos w=0.180u l=0.045u .ends .subckt gate1 vdd gnd w3 cin b cout mp5 cout w3 b vdd pmos w=0.360u l=0.045u mn5 cin w3 cout gnd nmos w=0.180u l=0.045u .ends .subckt fulladder vdd gnd a b cin sum cout Xxnor vdd gnd a b w2 Xinv vdd gnd w2 w3 Xgate vdd gnd cin w3 w2 sum Xgate1 vdd gnd w3 cin b cout .ends .op .tran 1ns 100ns .MEASURE POWER avg power from= 10N TO 40N .MEASURE DELAY1 TRIG V(a) VAL= 0.45v RISE=1 TARG V(cout) VAL= 0.45v FALL=1 .plot v(a) v(b) v(cin) v(sum) v(cout) .end in the output waveforms sum and cout is not coming help plss this is the warning came which is below **warning** attempt to reference undefined node 0:cout in the definition of v(cout,0) branch - output ignored **warning** attempt to reference undefined node 0:sum in the definition of v(sum,0) branch - output ignored Click to expand... Last edited by a moderator: Mar 11, 2019
Code dot - [expand]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 49 50 51 52 53 54 55 56 57 58 59 60 61 *10T FULL ADDER CMOS using functin calling .protect .include " C:\synopsys\model files\45micron.txt" .unprotect .param tclk = 10n .param tc = 10n .param supply = 0.9v va a gnd pulse (0v 0.9v 0.1n 0.1n 0.1n 6n 12n ) vb b gnd pulse (0v 0.9v 0.1n 0.1n 0.1n 5n 10n ) vcin cin gnd pulse (0v 0.9v 0.1n 0.1n 0.1n 2n 4n ) vdd vdd gnd dc 0.9v .subckt xnor vdd gnd a b w2 mp1 w1 a vdd vdd pmos w=0.360u l=0.045u mp2 w2 b w1 vdd pmos w=0.360u l=0.045u mn1 w2 a b gnd nmos w=0.180u l=0.045u mn2 w2 b a gnd nmos w=0.180u l=0.045u .ends .subckt inv vdd gnd w2 w3 mp3 w3 w2 vdd vdd pmos w=0.360u l=0.045u mn3 w3 w2 gnd gnd nmos w=0.180u l=0.045u .ends .subckt gate vdd gnd cin w3 w2 sum mp4 sum cin w3 vdd pmos w=0.360u l=0.045u mn4 w2 cin sum gnd nmos w=0.180u l=0.045u .ends .subckt gate1 vdd gnd w3 cin b cout mp5 cout w3 b vdd pmos w=0.360u l=0.045u mn5 cin w3 cout gnd nmos w=0.180u l=0.045u .ends .subckt fulladder vdd gnd a b cin sum cout Xxnor vdd gnd a b w2 Xinv vdd gnd w2 w3 Xgate vdd gnd cin w3 w2 sum Xgate1 vdd gnd w3 cin b cout .ends .op .tran 1ns 100ns .MEASURE POWER avg power from= 10N TO 40N .MEASURE DELAY1 TRIG V(a) VAL= 0.45v RISE=1 TARG V(cout) VAL= 0.45v FALL=1 .plot v(a) v(b) v(cin) v(sum) v(cout) .end in the output waveforms sum and cout is not coming help plss this is the warning came which is below **warning** attempt to reference undefined node 0:cout in the definition of v(cout,0) branch - output ignored **warning** attempt to reference undefined node 0:sum in the definition of v(sum,0) branch - output ignored Click to expand...
Mar 11, 2019 #2 R rmanalo Advanced Member level 4 Joined Feb 8, 2017 Messages 107 Helped 16 Reputation 32 Reaction score 16 Trophy points 18 Location Philippines Activity points 979 try adding capacitors from nodes sum and cout.
Mar 11, 2019 #3 S simrithshravya Newbie level 2 Joined Mar 11, 2019 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 22 sir! is something wrong in the code? i dont know how to add capacitors.. thank you..