shockingshockley
Member level 1
- Joined
- Dec 11, 2010
- Messages
- 33
- Helped
- 0
- Reputation
- 0
- Reaction score
- 1
- Trophy points
- 1,286
- Activity points
- 1,611
When I ran the code below in TSPICE, a 5V pulse waveform was generated. However when I ran it in HSPICE, a 2.5V dc straight line waveform is generated. Do I need to modify some code to generate a pulse waveform in HSPICE? Thank you!
Code:
*3 GATE OSC
.PROTECT
.LIB 'C:\Users\MM0355V.L' TT_5V
.UNPROTECT
.SUBCKT INV A OUT VDD VSS
MN1 Out A VSS 104 NCH5 W=1u L=0.4U
MP1 Out A Vdd VDD PCH5 W=2U L=0.4U
.ENDS
XUINV1 OSCIN 2 VDD VSS INV
XUINV2 2 V2 VDD VSS INV
XUINV3 V2 OSCOUT VDD VSS INV
R1 V1 OSCOUT 470K
R2 V1 OSCIN 470K
C1 V2 V1 120P
VDD VDD 0 DC 5
VSS VSS 0 DC 0
.TRAN 10U 5000U
.PRINT TRAN V(OSCOUT)
.END