[請益] 關於HSPICE

看板Electronics作者 (我愛老婆)時間17年前 (2006/12/21 19:27), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
小弟是初學者 想要寫一個加法器的模擬電路 NETLIST部分好了 可是模擬出來看波形時 兩個OUT值都會是carry out的值 sum out 的值跟carry out 一樣 可以請問一下哪邊有錯誤嗎? 謝謝大家 -------------------------------------------------------------------------- * .protect .lib 'logs353v.l' tt .unprotect .global vdd gnd vdd vdd gnd 3.3 vss gnd 0 0 vina c 0 pulse(0 3.3 0 0.1n 0.1n 0.9n 2n) vinb b 0 pulse(0 3.3 0 0.1n 0.1n 1.9n 4n) vinc a 0 pulse(0 3.3 0 0.1n 0.1n 3.9n 8n) x1 a b c out nand3 x2 a b c sout1 nand3 .tran 0.01n 16n .probe .subckt nand3 a b c out sout1 /*Inverter*/ M1 abar a vdd vdd pch w=2u l=0.35u M2 abar a gnd gnd nch w=3u l=0.35u M6 bbar b vdd vdd pch w=2u l=0.35u M30 bbar b gnd gnd nch w=3u l=0.35u M31 cbar c vdd vdd pch w=2u l=0.35u M32 cbar c gnd gnd nch w=3u l=0.35u /*Carry UP*/ M3 i1 abar vdd vdd pch w=2u l=0.35u M4 i1 bbar vdd vdd pch w=2u l=0.35u M5 out cbar i1 i1 pch w=2u l=0.35u M7 i2 abar vdd vdd pch w=2u l=0.35u M8 out bbar i2 i2 pch w=2u l=0.35u /*Carry Down*/ M9 out cbar i3 i3 nch w=3u l=0.35u M11 i3 abar gnd gnd nch w=3u l=0.35u M12 i3 bbar gnd gnd nch w=3u l=0.35u M10 out abar i4 i4 nch w=3u l=0.35u M13 i4 bbar gnd gnd nch w=3u l=0.35u /*Sum Up*/ M14 i5 cbar vdd vdd pch w=2u l=0.35u M15 i8 b i5 i5 pch w=2u l=0.35u M16 26 bbar i5 i5 pch w=2u l=0.35u M17 i6 b i7 i7 pch w=2u l=0.35u M18 sout1 abar i6 i6 pch w=2u l=0.35u M19 i7 cbar vdd vdd pch w=2u l=0.35u M20 i8 bbar i7 i7 pch w=2u l=0.35u M21 sout1 a i8 i8 pch w=2u l=0.35u /*Sum Down*/ M22 sout1 a i9 i9 nch w=3u l=0.35u M23 i9 bbar i12 i12 nch w=3u l=0.35u M24 i9 b i10 i10 nch w=3u l=0.35u M25 i10 cbar gnd gnd nch w=3u l=0.35u M26 i11 bbar i10 i10 nch w=3u l=0.35u M27 sout1 abar i11 i11 nch w=3u l=0.35u M28 i11 b i12 i12 nch w=3u l=0.35u M29 i12 c gnd gnd nch w=3u l=0.35u .ends .end -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.25.118.140

12/22 04:22, , 1F
你x1和x2與subckt的parameter數目不同
12/22 04:22, 1F
文章代碼(AID): #15Yc-vuD (Electronics)