Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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:
* 1)To use these models directly by programming in this style: *
* *
* .lib 'lib_path/lib_name' model_name *
* *
* *
* EX: .lib '/home/user/tsmc/LOGIC/mm018.l' TT *
* for typical 1.8V N,PMOS *
* .lib '/home/user/tsmc/LOGIC/mm018.l' TT_3V *
* for typical 3.3V N,PMOS *

... 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 :(
 

**error** reference 0:npn10 not found

Did you correctly .INCLUDE the lib file? (that one, which you included in your 1st posting). Correct path and correct file name?
 
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top