Introduction to Hspi spice ce
How to Install and Run
Saied Barati BSc Computer Engineer, SUT S_barati@ce.sharif.edu
Introduction to Hspi spice ce How to Install and Run Saied Barati - - PowerPoint PPT Presentation
Introduction to Hspi spice ce How to Install and Run Saied Barati BSc Computer Engineer, SUT S_barati@ce.sharif.edu Introduction to HSpice Introduction to Hspice How to Install Netlist Circuit Analysis Introduction to HSpice S imulation
Saied Barati BSc Computer Engineer, SUT S_barati@ce.sharif.edu
Introduction to HSpice
Introduction to HSpice
Introduction to HSpice
1)
(Go to Course Home Page!)
Introduction to HSpice
Introduction to HSpice
Introduction to HSpice
Title (Required) Circuit Subcircuit(s) Device Models Analysis Output .end (Required)
Introduction to HSpice
Introduction to HSpice
First line is title of simulation
→ statements are ignored
Any character Title or comment line
Subsequent lines of netlist, and all lines of included files:
.(XXXX): Netlist keyword (e.g.: .TRAN 0.5ns 20ns) C, D, E, F, G, H, I, J, K, L, M, Q, R, S, V, W: Element
instantiation
* (asterisk): Comment line (HSPICE)
Introduction to HSpice
element key letter (exception: subcircuits)
1024 characters
First Letter Circuit Element or Source
C
capacitor
D
diode
I
independent current source
V
independent voltage source
R
resistor
Q
bipolar junction transistor
M
MOSFET
Introduction to HSpice
Ex:
R1 n1 n2 20k
Type: Resistor Name: R1 Connected nodes: n1, n2 Value: 20kΩ * 2= 40kΩ D1 a b DMOD Type: Diode Name: D1 Connected nodes: a, b Model: DMOD
Introduction to HSpice
Numbers can be
Integer Floating point
Introduction to HSpice
Introduction to HSpice
Vxx/Ixx n+ n- PULSE v1 v2 td tr tf pw per
PULSE: Keyword v1: Initial value of the voltage or current v2: Pulse plateau value td: Delay to the first ramp tr: Duration of the rising ramp tf: Duration of the falling ramp pw:
Pulse width
per:
Pulse repetition period
Time td tr pw tf per v2 v1
Introduction to HSpice
First letter of line is asterisk (*) → whole line is comment
Dollar sign ($) anywhere on the line → text after is comment
For example:
* <comment_on_a_line_by_itself>
<HSPICE_statement> $ <comment_following_HSPICE_input>
Introduction to HSpice
1) .TRAN <Tstep> <Tstop>
<Tstep>: time step <Tstop>: End time (duration) of simulation
Ex: .tran 0.02 2.0 2) .DC <source> <vstart> <vstop> <vstep>
<source>: source point <vstart>: start voltage <vstop>: stop voltage <vstep>: voltage step
Ex: .DC Vin 0 1.8 0.1
Introduction to HSpice
Introduction to HSpice
http://www.allaboutcircuits.com http://www.ecircuitcenter.com/SPICEsummary.htm http://www.tkt.cs.tut.fi/kurssit/8404142/K05/H10/v
http://www.ece.uci.edu/docs/hspice/hspice_2001_2
http://www.seas.upenn.edu/~jan/spice/spice.exHspi