P
Patrick
Guest
hello,
i'm new to hspice and i'm trying to make a 2-input NAND gate
subcircuit so that i can go on to simulate more complex circuits using
this NAND gate. i wrote a short netlist just to test my NAND gate
subcircuit (shown below). i basically tied one input to +5V and put a
clock signal into the other input.
whenever i run the simulation, i get a "hspice job aborted" message
because of some error. i have no idea what i'm doing wrong. i included
the two model files (nmos.spi and pmos.spi) in my working directory
and i've successfully used these models before for other simpler
simulations (without any subcircuits). i would greatly appreciate any
help i can get. thanks in advance,
patrick antoun
NAND Gate Trial
..OPTIONS LIST NODE POST
..TRAN 200P 42N
..PRINT TRAN V(OUT)
*OUTPUT---------------|
*INPUT B------------| |
*INPUT A----------| | |
*GND------------| | | |
*VDD----------| | | | |
..SUBCKT 2NAND 1 2 3 4 6
M1 6 3 1 1 PCH L=1U W=20U
M2 6 4 1 1 PCH L=1U W=20U
M3 6 3 5 5 NCH L=1U W=20U
M4 5 4 2 2 NCH L=1U W=20U
..MODEL PCH PMOS LEVEL=1
..MODEL NCH NMOS LEVEL=1
..ENDS 2NAND
VDD VDD 0 5
VA A 0 5
VCLK B 0 0 PULSE 0 5 1F .1N .1N 10N 21N
X1 VDD 0 A B OUT 2NAND
..MODEL PCH PMOS LEVEL=1
..MODEL NCH NMOS LEVEL=1
..END
i'm new to hspice and i'm trying to make a 2-input NAND gate
subcircuit so that i can go on to simulate more complex circuits using
this NAND gate. i wrote a short netlist just to test my NAND gate
subcircuit (shown below). i basically tied one input to +5V and put a
clock signal into the other input.
whenever i run the simulation, i get a "hspice job aborted" message
because of some error. i have no idea what i'm doing wrong. i included
the two model files (nmos.spi and pmos.spi) in my working directory
and i've successfully used these models before for other simpler
simulations (without any subcircuits). i would greatly appreciate any
help i can get. thanks in advance,
patrick antoun
NAND Gate Trial
..OPTIONS LIST NODE POST
..TRAN 200P 42N
..PRINT TRAN V(OUT)
*OUTPUT---------------|
*INPUT B------------| |
*INPUT A----------| | |
*GND------------| | | |
*VDD----------| | | | |
..SUBCKT 2NAND 1 2 3 4 6
M1 6 3 1 1 PCH L=1U W=20U
M2 6 4 1 1 PCH L=1U W=20U
M3 6 3 5 5 NCH L=1U W=20U
M4 5 4 2 2 NCH L=1U W=20U
..MODEL PCH PMOS LEVEL=1
..MODEL NCH NMOS LEVEL=1
..ENDS 2NAND
VDD VDD 0 5
VA A 0 5
VCLK B 0 0 PULSE 0 5 1F .1N .1N 10N 21N
X1 VDD 0 A B OUT 2NAND
..MODEL PCH PMOS LEVEL=1
..MODEL NCH NMOS LEVEL=1
..END