help me in simulate a circuit in Hspice

Status
Not open for further replies.

matin-kh

Member level 3
Joined
Nov 9, 2013
Messages
67
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
iran
Visit site
Activity points
1,955
View attachment mm018.txt

hi every one

I want to simulate a circuit in hspice and i want to use 0.18 cmos tech that i attached it but i have two question i would be happy if you coul help me :wink:

1- for describing a nmos transistor i use this style:
M1 vout1 vin+ 1 1 NMOS W=10u L=0.5u m=1
the NMOS in the middle of text show the model of transistor but in the mm018.l when it describing models with .model we don't have NMOS for example we have NMOS.0 instead but wehn i use the phrase above it doesn't make me error!!:-| what is the story behind it??

2- as the bjt transistors are defined in mm018.l I want to use npn transistor in my circuit but i don't know how to write it, i write it like below:
Q1 6 vctrl GND npn
but it doesn't work and errors it seems i have to add parameters of npn transistor but i don't know the parameters could you please tell me how can i get the parameters i have no idea about this!!:???:

thanks
matin

excuse me for my bad english my english is not good enough :wink:
 

You have to decide on one of the transistor models contained in the library, e.g.:

M1 vout1 vin+ 1 1 nmos.1 W=10u L=0.5u m=1
and
Q1 6 vctrl GND NPN10

The various models are shortly described in the preface of the library.

Don't forget to select the required corner model:

... and don't forget to
.INCLUDE 'lib_path/mm018.l'
 
thank you very much in advance.
I wrote this:

Q1 6 vctrl GND NPN10

but it errors like below:

**error** reference 0:npn10 not found
it was referenced in element 0:q1
the emitter width= 0.00 and length= 0.00
the line number was 24

I don't know what's the problem
 

ok thanks. :smile:
yes i correctly include the lib file. i did sth else now i think it works correctly.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…