sadid
Advanced Member level 4
**error** syntax of .lib
I've problem with using CMOS 0.35um Library in a circuit.
my hspcie .ep file is:
==================
Inv35
*0.35um Cmos Invertor
*circuit discription
VDD 0 2 DC +5V
VIN 0 1 PULSE 0.2 4.8 2N 1N 1N 5N 20N
M1 3 1 2 0 PMOS L=0.35U W=5U
M2 3 1 0 0 NMOS L=0.35U W=5U
*Library declration
.INCLUDE 'cmos35.inc'
*Analysis & Output
.OPTIONS LIST NODE POST
.OP
.TRAN 200P 20N
.PRINT TRAN V(IN) V(OUT)
.END
============================
as you see I use .inc 'cmos35.txt' command for library that exist in .ep dir.
and this is that library its structure is sth like this:
but hspice have problem with .lib command how can
1.Why does this error happens?
2.How can I specify one of this transistor for example nmos fast
excuse me if the post is some how untidy[/code]
Added after 3 minutes:
and this is the error:
I've problem with using CMOS 0.35um Library in a circuit.
my hspcie .ep file is:
==================
Inv35
*0.35um Cmos Invertor
*circuit discription
VDD 0 2 DC +5V
VIN 0 1 PULSE 0.2 4.8 2N 1N 1N 5N 20N
M1 3 1 2 0 PMOS L=0.35U W=5U
M2 3 1 0 0 NMOS L=0.35U W=5U
*Library declration
.INCLUDE 'cmos35.inc'
*Analysis & Output
.OPTIONS LIST NODE POST
.OP
.TRAN 200P 20N
.PRINT TRAN V(IN) V(OUT)
.END
============================
as you see I use .inc 'cmos35.txt' command for library that exist in .ep dir.
and this is that library its structure is sth like this:
Code:
.lib nominal
* This file is for NOMINAL conditions.
*
.model nmos nmos level = 49
+ version = 3.11 acm = 3 hdif = 0.5e-6
+ mobmod = 1.000000e+00 capmod = 1.000000e+00 nqsmod =
......etc
.model pmos pmos level = 49
+ version = 3.11 acm = 3 hdif = 0.5e-6
+ mobmod = 1.000000e+00 capmod = 1.000000e+00 nqsmod =
......etc
.endl nominal
.lib fast
* This file is for FAST conditions.
............sth like above
.endl fast
.lib slow
* This file is for SLOW conditions (high tox ... mismatch low).
...............sth like above
.endl slow
.lib passive
*****************************************************************************
* well-to-substrate diode
.model dwell d cj0=1e-4 is=1e-5 m=0.5 bv=40
*****************************************************************************
* parasitic vertical pnp
.model vpnp pnp bf=8 is=1e-17 rb=1200 rc=3000 vaf=35
*****************************************************************************
* capacitors
* note: tc and vc not modelled!
.subckt cpoly top bot topgnd botgnd c=1pF
ctop top topgnd '0.01*c'
cbot bot botgnd '0.12*c'
.ends
.subckt cm2 top bot topgnd botgnd c=1pF
cc top bot c
ctop top topgnd '0.01*c'
cbot bot botgnd '1.2*c'
.ends
.subckt cm4 top bot topgnd botgnd c=1pF
cc top bot c
ctop top topgnd '0.01*c'
cbot bot botgnd '0.2*c'
.ends
.endl passive
but hspice have problem with .lib command how can
1.Why does this error happens?
2.How can I specify one of this transistor for example nmos fast
excuse me if the post is some how untidy[/code]
Added after 3 minutes:
and this is the error:
Code:
**error** syntax of .lib can not be realized