simrithshravya
Newbie level 2
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
Last edited by a moderator: