SlideShare a Scribd company logo
Dependent Current Sources -- G Elements
Voltage Controlled Current Source (VCCS)
The syntax is:
Linear
Gxxx n+ n- <VCCS> in+ in- transconductance <MAX=val> <MIN=val>
+ <SCALE=val> <M=val> <TC1=val> <TC2=val> <ABS=1> <IC=val>
Polynomial
Gxxx n+ n- <VCCS> POLY(ndim) in1+ in1- ... <inndim+ inndim-> MAX=val>
+ <MIN=val> <SCALE=val> <M=val> <TC1=val> <TC2=val> <ABS=1> p0
+ <p1...> <IC=vals>
Piecewise Linear
Gxxx n+ n- <VCCS> PWL(1) in+ in- <DELTA=val><SCALE=val><M=val>
+ <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val>
Gxxx n+ n- <VCCS> NPWL(1) in+ in- <DELTA=val> <SCALE=val> <M=val>
+ <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val>
Gxxx n+ n- <VCCS> PPWL(1) in+ in- <DELTA=val> <SCALE=val><M=val>
+ <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val>
Multi-Input Gates
Gxxx n+ n- <VCCS> gatetype(k) in1+ in1- ... ink+ ink- <DELTA=val> <TC1=val>
+ <TC2=val> <SCALE=val><M=val> x1,y1 ... x100,y100<IC=val>
Delay Element
Gxxx n+ n- <VCCS> DELAY in+ in- TD=val <SCALE=val> <TC1=val> <TC2=val>
+ NPDELAY=val
Behavioral Current Source
The syntax is:
Gxxx n+ n- CUR='equation' <MAX>=val> <MIN=val>
Voltage Controlled Resistor (VCR)
The syntax is:
Linear
Gxxx n+ n- VCR in+ in- transfactor <MAX=val> <MIN=val> <SCALE=val>
+ <M=val> <TC1=val> <TC2=val> <IC=val>
Polynomial
Gxxx n+ n- VCR POLY(ndim) in1+ in1- ... <inndim+ inndim-> <MAX=val>
+ <MIN=val> <SCALE=val> <M=val> <TC1=val> <TC2=val> p0 <p1...>
+ <IC=vals>
Piecewise Linear
Gxxx n+ n- VCR PWL(1) in+ in- <DELTA=val> <SCALE=val> <M=val>
+ <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val>
Gxxx n+ n- VCR NPWL(1) in+ in- <DELTA=val> <SCALE=val> <M=val>
+ <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val>
Gxxx n+ n- VCR PPWL(1) in+ in- <DELTA=val><SCALE=val><M=val>
+ <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val>
Multi-Input Gates
Gxxx n+ n- VCR gatetype(k) in1+ in1- ... ink+ ink- <DELTA=val>
+ <TC1=val> <TC2=val> <SCALE=val> <M=val> x1,y1 ... x100,y100 <IC=val>
Voltage Controlled Capacitor (VCCAP)
The syntax is:
Gxxx n+ n- VCCAP PWL(1) in+ in- <DELTA=val> <SCALE=val> <M=val>
+ <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val >
+ <SMOOTH=val>
The two functions NPWL and PPWL allow the interchange of the `n+' and `n-' nodes
while keeping the same transfer function. This action can be summarized as follows:
NPWL Function
For node `in-' connected to `n-';
If v(n+,n-) > 0, then the controlling voltage would be v(in+,in-). Otherwise, the
controlling voltage is v(in+,n+)
For node `in-'connected to `n+';
If v(n+,n-) < 0, then the controlling voltage would be v(in+,in-). Otherwise, the
controlling voltage is v(in+,n+)
PPWL Function
For node `in-'connected to `n-';
If v(n+,n-) < 0, then the controlling voltage would be v(in+,in1-). Otherwise, the
controlling voltage is v(in+,n+)
For node `in-'connected to `n+';
If v(n+,n-) > 0, then the controlling voltage would be v(in+,in-). Otherwise, the
controlling voltage is v(in+,n+)
G Element Parameters
ABS Output is absolute value if ABS=1.
CUR=equation Current output which flows from n+ to n-. The "equation", which is
defined by the user, can be a function of node voltages, branch currents, TIME,
temperature (TEMPER), and frequency (HERTZ).
DELAY Keyword for the delay element. The delay element is the same as voltage
controlled current source except it is associated by a propagation delay TD. This
element facilitates the adjustment of propagation delay in the subcircuit model
process. DELAY is a Star-Hspice keyword and should not be used as a node name.
DELTA Used to control the curvature of the piecewise linear corners. Defaults to 1/4
of the smallest of the distances between breakpoints. The maximum is 1/2 of the
smallest of the distances between breakpoints.
Gxxx Voltage controlled element name. Must begin with "G", which may be followed
by up to 15 alphanumeric characters.
gatetype(k) May be AND, NAND, OR, or NOR. The value of k is the number of inputs
of the gate. The x and y terms represent the piecewise linear variation of output as
a function of input. In the multi-input gates only one input determines the state of
the output.
IC Initial condition. The initial estimate of the value(s) of the controlling voltage(s).
If IC is not specified, Default=0.0.
in +/- Positive or negative controlling nodes. Specify one pair for each dimension.
M Number of replications of the element in parallel
MAX Maximum current or resistance value. The default is undefined, and sets no
maximum value.
MIN Minimum current or resistance value. The default is undefined, and sets no
minimum value.
n+/- Positive or negative node of controlled element
NPDELAY Sets the number of data points to be used in delay simulations. The
default value is the larger of 10 or the smaller of TD/tstep and tstop/tstep. That is,
The values of tstep and tstop are specified in the .TRAN statement.
NPWL Models the symmetrical bidirectional switch or transfer gate, NMOS
p0, p1 ... Polynomial coefficients. When one coefficient is specified, Star-Hspice
assumes it to be p1, with p0=0.0, and the element is linear. When more than one
polynomial coefficient is specified by p0, p1, p2, ..., the element is nonlinear. See
Polynomial Functions.
POLY Polynomial dimension. If POLY(ndim) is not specified, a one-dimensional
polynomial is assumed. Ndim must be a positive number.
PWL Piecewise linear function keyword
PPWL Models the symmetrical bidirectional switch or transfer gate, PMOS
SCALE Element value multiplier
SMOOTH For piecewise linear dependent source elements, SMOOTH selects the
curve smoothing method.
A curve smoothing method simulates exact data points you provide. This method
can be used to make Star-Hspice simulate specific data points that correspond to
measured data or data sheets.
Choices for SMOOTH are 1 or 2. Specifying 1 selects the smoothing method prior to
Release H93A. Specifying 2 selects the smoothing method that uses data points you
provide. This is the default method starting with release H93A.
TC1,TC2 First- and second-order temperature coefficients. The SCALE is updated by
temperature:
TD Time delay keyword
transconductance Voltage to current conversion factor
transfacto r Voltage to resistance conversion factor
VCCAP Keyword for voltage controlled capacitance element. VCCAP is a Star-Hspice
keyword and should not be used as a node name.
VCCS Keyword for voltage controlled current source. VCCS is a Star-Hspice keyword
and should not be used as a node name.
VCR Keyword for voltage controlled resistor element. VCR is a Star-Hspice keyword
and should not be used as a node name.
x1,... Controlling voltage across nodes in+ and in-. The x values must be in
increasing order.
y1,... Corresponding element values of x
Example
Switch
A voltage controlled resistor represents a basic switch characteristic. The resistance
between nodes 2 and 0 varies linearly from 10meg to 1m ohms when voltage across
nodes 1 and 0 varies between 0 and 1 volt. Beyond the voltage limits, the resistance
remains at 10meg and 1m ohms respectively.
Gswitch 2 0 VCR PWL(1) 1 0 0v,10meg 1v,1m
Switch-level MOSFET
A switch level n-channel MOSFET can be modelled by the N-piecewise linear
resistance switch. The resistance value does not change when the node d and s
positions are switched.
Gnmos d s VCR NPWL(1) g s LEVEL=1 0.4v,150g 1v,10meg 2v,50k
+ 3v,4k 5v,2k
Voltage Controlled Capacitor
The capacitance value across nodes (out,0) varies linearly from 1p to 5p when
voltage across nodes (ctrl,0) varies between 2v and 2.5v. Beyond the voltage limits,
the capacitance value remains constant at 1 picofarad and 5 picofarads respectively.
Gcap out 0 VCCAP PWL(1) ctrl 0 2v,1p 2.5v,5p
Zero Delay Gate
A two-input AND gate can be implemented using an expression and a piecewise
linear table. The inputs are voltages at nodes a and b, and the output is the current
flow from node out to 0. The current is multiplied by the SCALE value, which, in this
example, is specified as the inverse of the load resistance connected across the
nodes (out,0).
Gand out 0 AND(2) a 0 b 0 SCALE='1/rload' 0v,0a 1v,.5a
+ 4v,4.5a 5v,5a
Delay Element
A delay is a low-pass filter type delay similar to that of an opamp. A transmission
line, on the other hand, has an infinite frequency response. A glitch input to a G
delay is attenuated similarly to a buffer circuit. In this example, the output of the
delay element is the current flow from node out to node 1 with a value equal to the
voltage across nodes ( in , 0 ) multiplied by SCALE value and delayed by TD value.
Gdel out 0 DELAY in 0 TD=5ns SCALE=2 NPDELAY=25
Diode Equation
A forward bias diode characteristic from node 5 to ground can be modelled with a
run time expression. The saturation current is 1e-14 amp, and the thermal voltage is
0.025v.
Gdio 5 0 CUR='1e-14*(EXP(V(5)/0.025)-1.0)'
Diode Breakdown
Diode breakdown region to forward region can be modelled. When voltage across
diode goes beyond the piecewise linear limit values (-2.2v, 2v), the diode current
remains at the corresponding limit values (-1a, 1.2a).
Gdiode 1 0 PWL(1) 1 0 -2.2v,-1a -2v,-1pa .3v,.15pa .6v,10ua
+ 1v,1a 2v,1.2a
Triodes
Both the following voltage controlled current sources implement a basic triode. The
first uses the poly(2) operator to multiply the anode and grid voltages together and
scale by .02. The next example uses the explicit behavioral algebraic description.
gt i_anode cathode poly(2) anode,cathode grid,cathode 0 0
0 0 .02 gt i_anode cathode cur='20m*v(anode,cathode)
*v(grid,cathode)'

More Related Content

PPT
Variable frequencyresponseanalysis8ed
PPT
ECNG 3013 E
PPT
ECNG 6509 Transformer Technology
PDF
Chapter 02
PPT
ECNG 3013 D
PDF
Chapter 17
PDF
IC Design of Power Management Circuits (II)
PDF
IC Design of Power Management Circuits (IV)
Variable frequencyresponseanalysis8ed
ECNG 3013 E
ECNG 6509 Transformer Technology
Chapter 02
ECNG 3013 D
Chapter 17
IC Design of Power Management Circuits (II)
IC Design of Power Management Circuits (IV)

What's hot (20)

PDF
Chapter 10
PDF
Ee6378 bandgap reference
PPT
Electricmotor4
PDF
IC Design of Power Management Circuits (I)
PDF
Chapter 14
PDF
Chapter 05
PDF
Chapter 04a
PDF
Transformer
PPT
Chp1 Transmission line theory with examples-part2
PDF
IC Design of Power Management Circuits (III)
PDF
Chapter 09
PDF
IC Design of Power Management Circuits (I)
PDF
Journal On LDO From IJEETC
PDF
Chapter 01
PDF
Solved problems to_chapter_09
PPT
ECNG 3013 C
PDF
Chapter 18
PDF
DOC
Dsp manual
PDF
Gate 2013 complete solutions of ec electronics and communication engineering
Chapter 10
Ee6378 bandgap reference
Electricmotor4
IC Design of Power Management Circuits (I)
Chapter 14
Chapter 05
Chapter 04a
Transformer
Chp1 Transmission line theory with examples-part2
IC Design of Power Management Circuits (III)
Chapter 09
IC Design of Power Management Circuits (I)
Journal On LDO From IJEETC
Chapter 01
Solved problems to_chapter_09
ECNG 3013 C
Chapter 18
Dsp manual
Gate 2013 complete solutions of ec electronics and communication engineering
Ad

Similar to Dependent Current Sources (20)

PPTX
Dual Active Bridge Converter a Bidirectional Isolated DC DC Converter
PPT
Lecture 7
PPT
Hardware combinational
PDF
PPTX
Ch18 "Case Study 3: DC-DC Power Converter"
PPTX
PSpice Tutorial
PPTX
ADC & DAC
PDF
Calculating the efficiency and regulation of transformer using matlab
PDF
Report_AKbar_PDF
PPTX
Lecture Notes: EEEC6440315 Communication Systems - Analogue Modulation
PPT
ECE4762011_Lect14.ppt
PPT
ECE4762011_Lect14.ppt
PPT
powerflowproblem.ppt
PPT
Electronics and communication engineering_Lect14.ppt
PDF
CAPACITIVE SENSORS ELECTRICAL WAFER SORT
PDF
DmmPPT.pdf Analog to Digital, Digital to Analog, Ramp type
PDF
Design, Modeling and control of modular multilevel converters (MMC) based hvd...
PPT
pass-transistors.ppt working of transistors
PPT
Amvdd Data Converter Fundamentals
PDF
Transmission line reflection coefficient, two port S- matrix examples, multi ...
Dual Active Bridge Converter a Bidirectional Isolated DC DC Converter
Lecture 7
Hardware combinational
Ch18 "Case Study 3: DC-DC Power Converter"
PSpice Tutorial
ADC & DAC
Calculating the efficiency and regulation of transformer using matlab
Report_AKbar_PDF
Lecture Notes: EEEC6440315 Communication Systems - Analogue Modulation
ECE4762011_Lect14.ppt
ECE4762011_Lect14.ppt
powerflowproblem.ppt
Electronics and communication engineering_Lect14.ppt
CAPACITIVE SENSORS ELECTRICAL WAFER SORT
DmmPPT.pdf Analog to Digital, Digital to Analog, Ramp type
Design, Modeling and control of modular multilevel converters (MMC) based hvd...
pass-transistors.ppt working of transistors
Amvdd Data Converter Fundamentals
Transmission line reflection coefficient, two port S- matrix examples, multi ...
Ad

More from Tsuyoshi Horigome (20)

PPTX
STHV64SW(STマイクロエレクトロニクス)のデータシートの要約について(Suitable for ultrasound imaging applic...
PDF
Safety Lock Circuits (LTspice + Explanation)
PPTX
H8500-based Scintillation Detection System (Block Diagram) by Bee Technologies
PPT
Package Design Design Kit 20100009 PWM IC by Bee Technologies
PDF
Wio LTE JP Version v1.3b- 4G, Cat.1, Espruino Compatible\202001935, PCBA;Wio ...
PDF
High-frequency high-voltage transformer outline drawing
PPTX
高周波回路のノイズ抑制について回路設計、基板設計、基板製造における対策方法について
PPTX
sub-GHz帯域(315MHzや920MHz)で使用する際のポイントについてのご説明
DOCX
Basic Flow Chart Shapes(Reference Memo)for word version
PPTX
Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)
PPTX
SPICE PARK JUL2024 ( 6,866 SPICE Models )
PPTX
Update 33 models(General Diode ) in SPICE PARK(JUN2024)
PPTX
SPICE PARK JUN2024 ( 6,826 SPICE Models )
PPTX
KGIとKPIについて(営業の目標設定とKPIの商談プロセス) About KGI and KPI
PPTX
FedExで書類を送付する場合の設定について(オンライン受付にて登録する場合について)
PPTX
Update 46 models(Solar Cell) in SPICE PARK(MAY2024)
PPTX
SPICE PARK APR2024 ( 6,793 SPICE Models )
PPTX
Update 22 models(Schottky Rectifier ) in SPICE PARK(APR2024)
PPTX
SPICE PARK APR2024 ( 6,747 SPICE Models )
PPTX
Update 31 models(Diode/General ) in SPICE PARK(MAR2024)
STHV64SW(STマイクロエレクトロニクス)のデータシートの要約について(Suitable for ultrasound imaging applic...
Safety Lock Circuits (LTspice + Explanation)
H8500-based Scintillation Detection System (Block Diagram) by Bee Technologies
Package Design Design Kit 20100009 PWM IC by Bee Technologies
Wio LTE JP Version v1.3b- 4G, Cat.1, Espruino Compatible\202001935, PCBA;Wio ...
High-frequency high-voltage transformer outline drawing
高周波回路のノイズ抑制について回路設計、基板設計、基板製造における対策方法について
sub-GHz帯域(315MHzや920MHz)で使用する際のポイントについてのご説明
Basic Flow Chart Shapes(Reference Memo)for word version
Update 40 models( Solar Cell ) in SPICE PARK(JUL2024)
SPICE PARK JUL2024 ( 6,866 SPICE Models )
Update 33 models(General Diode ) in SPICE PARK(JUN2024)
SPICE PARK JUN2024 ( 6,826 SPICE Models )
KGIとKPIについて(営業の目標設定とKPIの商談プロセス) About KGI and KPI
FedExで書類を送付する場合の設定について(オンライン受付にて登録する場合について)
Update 46 models(Solar Cell) in SPICE PARK(MAY2024)
SPICE PARK APR2024 ( 6,793 SPICE Models )
Update 22 models(Schottky Rectifier ) in SPICE PARK(APR2024)
SPICE PARK APR2024 ( 6,747 SPICE Models )
Update 31 models(Diode/General ) in SPICE PARK(MAR2024)

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Current and future trends in Computer Vision.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPT
Mechanical Engineering MATERIALS Selection
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPT
introduction to datamining and warehousing
PPTX
Sustainable Sites - Green Building Construction
PPTX
Artificial Intelligence
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
573137875-Attendance-Management-System-original
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Internet of Things (IOT) - A guide to understanding
Current and future trends in Computer Vision.pptx
OOP with Java - Java Introduction (Basics)
CYBER-CRIMES AND SECURITY A guide to understanding
Mechanical Engineering MATERIALS Selection
Automation-in-Manufacturing-Chapter-Introduction.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Model Code of Practice - Construction Work - 21102022 .pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Safety Seminar civil to be ensured for safe working.
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
introduction to datamining and warehousing
Sustainable Sites - Green Building Construction
Artificial Intelligence
bas. eng. economics group 4 presentation 1.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx

Dependent Current Sources

  • 1. Dependent Current Sources -- G Elements Voltage Controlled Current Source (VCCS) The syntax is: Linear Gxxx n+ n- <VCCS> in+ in- transconductance <MAX=val> <MIN=val> + <SCALE=val> <M=val> <TC1=val> <TC2=val> <ABS=1> <IC=val> Polynomial Gxxx n+ n- <VCCS> POLY(ndim) in1+ in1- ... <inndim+ inndim-> MAX=val> + <MIN=val> <SCALE=val> <M=val> <TC1=val> <TC2=val> <ABS=1> p0 + <p1...> <IC=vals> Piecewise Linear Gxxx n+ n- <VCCS> PWL(1) in+ in- <DELTA=val><SCALE=val><M=val> + <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val> Gxxx n+ n- <VCCS> NPWL(1) in+ in- <DELTA=val> <SCALE=val> <M=val> + <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val> Gxxx n+ n- <VCCS> PPWL(1) in+ in- <DELTA=val> <SCALE=val><M=val> + <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val> Multi-Input Gates Gxxx n+ n- <VCCS> gatetype(k) in1+ in1- ... ink+ ink- <DELTA=val> <TC1=val> + <TC2=val> <SCALE=val><M=val> x1,y1 ... x100,y100<IC=val> Delay Element Gxxx n+ n- <VCCS> DELAY in+ in- TD=val <SCALE=val> <TC1=val> <TC2=val> + NPDELAY=val Behavioral Current Source The syntax is: Gxxx n+ n- CUR='equation' <MAX>=val> <MIN=val> Voltage Controlled Resistor (VCR) The syntax is: Linear Gxxx n+ n- VCR in+ in- transfactor <MAX=val> <MIN=val> <SCALE=val> + <M=val> <TC1=val> <TC2=val> <IC=val> Polynomial Gxxx n+ n- VCR POLY(ndim) in1+ in1- ... <inndim+ inndim-> <MAX=val> + <MIN=val> <SCALE=val> <M=val> <TC1=val> <TC2=val> p0 <p1...> + <IC=vals> Piecewise Linear Gxxx n+ n- VCR PWL(1) in+ in- <DELTA=val> <SCALE=val> <M=val> + <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val>
  • 2. Gxxx n+ n- VCR NPWL(1) in+ in- <DELTA=val> <SCALE=val> <M=val> + <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val> Gxxx n+ n- VCR PPWL(1) in+ in- <DELTA=val><SCALE=val><M=val> + <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val> <SMOOTH=val> Multi-Input Gates Gxxx n+ n- VCR gatetype(k) in1+ in1- ... ink+ ink- <DELTA=val> + <TC1=val> <TC2=val> <SCALE=val> <M=val> x1,y1 ... x100,y100 <IC=val> Voltage Controlled Capacitor (VCCAP) The syntax is: Gxxx n+ n- VCCAP PWL(1) in+ in- <DELTA=val> <SCALE=val> <M=val> + <TC1=val> <TC2=val> x1,y1 x2,y2 ... x100,y100 <IC=val > + <SMOOTH=val> The two functions NPWL and PPWL allow the interchange of the `n+' and `n-' nodes while keeping the same transfer function. This action can be summarized as follows: NPWL Function For node `in-' connected to `n-'; If v(n+,n-) > 0, then the controlling voltage would be v(in+,in-). Otherwise, the controlling voltage is v(in+,n+) For node `in-'connected to `n+'; If v(n+,n-) < 0, then the controlling voltage would be v(in+,in-). Otherwise, the controlling voltage is v(in+,n+) PPWL Function For node `in-'connected to `n-'; If v(n+,n-) < 0, then the controlling voltage would be v(in+,in1-). Otherwise, the controlling voltage is v(in+,n+) For node `in-'connected to `n+'; If v(n+,n-) > 0, then the controlling voltage would be v(in+,in-). Otherwise, the controlling voltage is v(in+,n+) G Element Parameters ABS Output is absolute value if ABS=1.
  • 3. CUR=equation Current output which flows from n+ to n-. The "equation", which is defined by the user, can be a function of node voltages, branch currents, TIME, temperature (TEMPER), and frequency (HERTZ). DELAY Keyword for the delay element. The delay element is the same as voltage controlled current source except it is associated by a propagation delay TD. This element facilitates the adjustment of propagation delay in the subcircuit model process. DELAY is a Star-Hspice keyword and should not be used as a node name. DELTA Used to control the curvature of the piecewise linear corners. Defaults to 1/4 of the smallest of the distances between breakpoints. The maximum is 1/2 of the smallest of the distances between breakpoints. Gxxx Voltage controlled element name. Must begin with "G", which may be followed by up to 15 alphanumeric characters. gatetype(k) May be AND, NAND, OR, or NOR. The value of k is the number of inputs of the gate. The x and y terms represent the piecewise linear variation of output as a function of input. In the multi-input gates only one input determines the state of the output. IC Initial condition. The initial estimate of the value(s) of the controlling voltage(s). If IC is not specified, Default=0.0. in +/- Positive or negative controlling nodes. Specify one pair for each dimension. M Number of replications of the element in parallel MAX Maximum current or resistance value. The default is undefined, and sets no maximum value. MIN Minimum current or resistance value. The default is undefined, and sets no minimum value. n+/- Positive or negative node of controlled element NPDELAY Sets the number of data points to be used in delay simulations. The default value is the larger of 10 or the smaller of TD/tstep and tstop/tstep. That is, The values of tstep and tstop are specified in the .TRAN statement. NPWL Models the symmetrical bidirectional switch or transfer gate, NMOS
  • 4. p0, p1 ... Polynomial coefficients. When one coefficient is specified, Star-Hspice assumes it to be p1, with p0=0.0, and the element is linear. When more than one polynomial coefficient is specified by p0, p1, p2, ..., the element is nonlinear. See Polynomial Functions. POLY Polynomial dimension. If POLY(ndim) is not specified, a one-dimensional polynomial is assumed. Ndim must be a positive number. PWL Piecewise linear function keyword PPWL Models the symmetrical bidirectional switch or transfer gate, PMOS SCALE Element value multiplier SMOOTH For piecewise linear dependent source elements, SMOOTH selects the curve smoothing method. A curve smoothing method simulates exact data points you provide. This method can be used to make Star-Hspice simulate specific data points that correspond to measured data or data sheets. Choices for SMOOTH are 1 or 2. Specifying 1 selects the smoothing method prior to Release H93A. Specifying 2 selects the smoothing method that uses data points you provide. This is the default method starting with release H93A. TC1,TC2 First- and second-order temperature coefficients. The SCALE is updated by temperature: TD Time delay keyword transconductance Voltage to current conversion factor transfacto r Voltage to resistance conversion factor VCCAP Keyword for voltage controlled capacitance element. VCCAP is a Star-Hspice keyword and should not be used as a node name. VCCS Keyword for voltage controlled current source. VCCS is a Star-Hspice keyword and should not be used as a node name. VCR Keyword for voltage controlled resistor element. VCR is a Star-Hspice keyword and should not be used as a node name. x1,... Controlling voltage across nodes in+ and in-. The x values must be in increasing order.
  • 5. y1,... Corresponding element values of x Example Switch A voltage controlled resistor represents a basic switch characteristic. The resistance between nodes 2 and 0 varies linearly from 10meg to 1m ohms when voltage across nodes 1 and 0 varies between 0 and 1 volt. Beyond the voltage limits, the resistance remains at 10meg and 1m ohms respectively. Gswitch 2 0 VCR PWL(1) 1 0 0v,10meg 1v,1m Switch-level MOSFET A switch level n-channel MOSFET can be modelled by the N-piecewise linear resistance switch. The resistance value does not change when the node d and s positions are switched. Gnmos d s VCR NPWL(1) g s LEVEL=1 0.4v,150g 1v,10meg 2v,50k + 3v,4k 5v,2k Voltage Controlled Capacitor The capacitance value across nodes (out,0) varies linearly from 1p to 5p when voltage across nodes (ctrl,0) varies between 2v and 2.5v. Beyond the voltage limits, the capacitance value remains constant at 1 picofarad and 5 picofarads respectively. Gcap out 0 VCCAP PWL(1) ctrl 0 2v,1p 2.5v,5p Zero Delay Gate A two-input AND gate can be implemented using an expression and a piecewise linear table. The inputs are voltages at nodes a and b, and the output is the current flow from node out to 0. The current is multiplied by the SCALE value, which, in this example, is specified as the inverse of the load resistance connected across the nodes (out,0). Gand out 0 AND(2) a 0 b 0 SCALE='1/rload' 0v,0a 1v,.5a + 4v,4.5a 5v,5a Delay Element A delay is a low-pass filter type delay similar to that of an opamp. A transmission line, on the other hand, has an infinite frequency response. A glitch input to a G delay is attenuated similarly to a buffer circuit. In this example, the output of the delay element is the current flow from node out to node 1 with a value equal to the voltage across nodes ( in , 0 ) multiplied by SCALE value and delayed by TD value.
  • 6. Gdel out 0 DELAY in 0 TD=5ns SCALE=2 NPDELAY=25 Diode Equation A forward bias diode characteristic from node 5 to ground can be modelled with a run time expression. The saturation current is 1e-14 amp, and the thermal voltage is 0.025v. Gdio 5 0 CUR='1e-14*(EXP(V(5)/0.025)-1.0)' Diode Breakdown Diode breakdown region to forward region can be modelled. When voltage across diode goes beyond the piecewise linear limit values (-2.2v, 2v), the diode current remains at the corresponding limit values (-1a, 1.2a). Gdiode 1 0 PWL(1) 1 0 -2.2v,-1a -2v,-1pa .3v,.15pa .6v,10ua + 1v,1a 2v,1.2a Triodes Both the following voltage controlled current sources implement a basic triode. The first uses the poly(2) operator to multiply the anode and grid voltages together and scale by .02. The next example uses the explicit behavioral algebraic description. gt i_anode cathode poly(2) anode,cathode grid,cathode 0 0 0 0 .02 gt i_anode cathode cur='20m*v(anode,cathode) *v(grid,cathode)'