Gennady Serdyuk*, Boris Shelkovnikov #
*) Gennady Serdyuk – Ridgetop Group, Inc, firstname.lastname@example.org,
#) Boris Shelkovnikov – Institute of Telecommunicatin systems NTTU «KPI»
Abstract – This paper present researches in analog VHDL-AMS modeling for purposes of Harmonic Balance circuit simulation and formulates frequency-domain extensions, which increase language modeling capabilities and makes possible to simulate circuits contained complex frequency-dependent components
During last decades substantial efforts spent in field of developing hardware description languages. For discrete circuit simulation progress has been achieved quite long time ago with developing of VHDL and Verilog hardware description languages. The other situation is in analog realm. Meanwhile SPICE input format is de-facto standard, there are a lot of dialects developed as long as proprietary languages for special purposes, including RF and MW modeling. That makes hard to switch between simulators during design process while no one simulator proposes all necessary features and analyses for hardware designers. Even more, simulators shared common language (say SPICE-like) often propose different device models, which make hard to compare results of simulations. That stimulates development of analog hardware description languages and two analog HDLs get status of standard – VHDL-AMS  and Verilog-A. That was important achievement, as opened way to standardization of device libraries and development of model exchange space . Both languages are defined as languages for time-domain modeling and does not support frequency domain, required by most RF&MW tasks. VHDL-AMS is designed to define digital and mixed (digital-analog) circuits and does not contain strictly defined analog subset.
This paper aims to show, that there is limited subset of VHDL-AMS, which is sufficient to describe pure analog circuits and to propose simple VHDL-AMS extension to get advantages of frequency-domain modeling and simulation.
Let us formulate continuous (analog) circuit equation:
Where v(t), u(t),y(t) i(v(t), q(v(t) and , V(t) and u(t) are assumed to be T periodic, y(t) is linear response of linear subcircuit and i(v) and q(v) are only nonlinear members.
Considering both v and f for (2) as Fourier series and making necessary transformations, Harmonic Balance (HB) equations may be written as the following:
Where , K number of considered frequencies, are square block matrices:
In Equation (3) first term represents currents of nonlinear devices, second one represents nonlinear capacitors and third one is currents of linear subcircuit. U is image of excitation ssources.
As most nonlinearities are modeled in time domain, first two members of Eq. (3) are usually computed via time domain using Fast Fourier Transformations (FFT) in the following manner:
Same for Q(V):
Equation (3), including (4-7) is solved by exact or inexact Newton method as described my many authors [4,6,7]:
Where Xc – current point, F’ – Jacobian matrix and sN – inexact Newton step from current point.
To calculate F’(Xc)sN iterative linear solvers are used.
While VHDL-AMS standard  does not separate language onto digital and analog parts, it is possible to distinguish three main language parts, intended to serve different purposes: describe digital (discrete) behavior of components, describe analog (continuous) behavior of components and describe circuit (system) structure itself. Last part handles circuit decomposition into components. It supports construction ability of the language.
Discrete part is implemented using signals and concurrent statements. Analog part is implemented through quantities (say – unknowns of circuit), terminals (special kind of quantities, supports conservation semantic) and simultaneous statements (represent equations). Third, circuit descriptive part, is represented with component instantiation statement and intended to define topology of the circuit.
Any analog (sub)circuit may be described using two approaches: construct it from building blocks (usual for EDA users way) or define equations to describe behavior of such block. Surely, al lowest level all components should be described using equations. This, equation-level representation creates a modeling basis for design of component libraries. Designer can build equations of any complexity, calling functions as necessary, branching calculations, using both simple (one line) simultaneous statement and procedural one, which creates equation from sequential calculations. Designer can create own function using other languages and use them in VHDL-AMS also.
Given the equation support, designers can build higher-level blocks mixing lower-level blocks and equations, using quantities and terminals to interconnect blocks.
Consider example. To define a diode:
entity diode is -- entity interface
port(terminal a,c: electrical);
generic (I0, a: real); -- I-V parameters
-- entity may have many different architectures
architecture BEHAV_1 of diode is
quantity U across Id through a to b;
Id == I0*(exp(a*U)-1); -- equation
Somewhere may be used:
terminal t1, out2: electric;
R1: entity diode (BEHAV_1)
port map (t1, out2) generic map(1.e-12,35);
In addition to all former, language support some attributes, which, being applied to quantities allow to get their derivatives, integrals and delays. For example, if it is defined:
quantity a: real;
somewhere in code may be used:
…a’dot… -- derivative of a
…a’integ… -- integral of a
…a’delayed(1.e-6)… -- a delayed onto 1 us
For example, model of nonlinear capacitor may looks like that:
entity NL_Cap is -- entity interface
port(terminal a,b: electrical);
generic (tau, I0, a,: real); -- parameters
-- entity may have many different architectures
architecture BEHAV_1 of NL_Cap is
quantity U across Ic through a to b;
Ic == tau*I0*(exp(a*U)-1)*a*U’dot; -- equation
All above mentioned makes quite attractive usage of VHDL-AMS subset as modeling language for Harmonic Balance simulator. That subset allows description of nonlinear dynamic behavior in time domain, correspondent to nonlinear integro-differential equations with delays. Applying Equations (6) and (7) one may transfer it to frequency domain and use directly in HB equation.
Extension statements, allowing frequency-domain modeling are described in the next section
As VHDL-AMS is defined in time domain entirely, it does not contain means to define behavior in frequency-domain. Meanwhile, a lot of circuits in microwave and RF field shows complex frequency dependent behavior hard to be modeled in time domain. Most transmission lines, including strip-, microstrip-, slotlines, stubs and other resonators, T- and X- junctions, directional couplers show complex frequency-domain behavior unable to be modeled in time domain.
To extend language capabilities, additional attribute is proposed, which represent image of certain quantity in frequency domain.
Let quantities ic and uc are defined and represent current and voltage over capacitor. Then ic’FD and uc’FD will represent spectrum of ic and uc respectively and may be used in equations:
ic'FD == 2*math_j*math_p*FREQUENCY*C*uc’FD;
Where FREQUENCY is predefined language function returning value of current frequency.
where func() may be user defined.
Similar (even more flexible) approach is available using VHDL-AMS procedural simultaneous statements:
variable imp: complex;
a := func1(); -- A and b may be calculated
b := func2(); -- using conventional
imp := func(FREQUENCY,a,b,c); -- sequential statements.
x’FD :=imp*y’FD; -- Here is implied equation.
That syntax allows construct equations in sequential manner, conventional for programmers used to procedural languages.
Circuit impedance or admittance values may be calculated during simulation or picked up from external source – as file or complex database.
It is necessary to state, that one assumption is made here – it is assumed that of any simultaneous statement which use quantity with attribute ‘FD indeed is defined in frequency domain too, so it is impossible to mix domains inside one statement (equation). That does not contradict with usual practice, as (as best of authors knowledge) models are defined in one domain only.
Former extension correspondents to 3-rd term of Eq.(3) and makes broader the class described circuits, including distributed parameters circuits and other linear circuits, which may be described in frequency-domain.
VHDL-AMS subset suitable for RF analog circuit simulation by Harmonic Balance technique is described along with possible frequency domain modeling extensions.
Approach gives increasing flexibility in RF&MW component modeling and broadens the class of tasks to be described by language allowing frequency domain description of circuit componemts.
That set is called VHDL-AMS/FD and implemented in “Rincon” RF circuit simulator .
Parts of present work performed under contract with Ridgetop Group, Inc.
 VHDL-AMS Language Reference Manual, IEEE Standard No.: 1076.1-1999
 G. Serdyuk, D. Goodman, “VHDL Approach Improves Nonlinear Simulation”, Microwaves & RF, November 2001, pp. 76-102.
 M. Mierzwinsky et al, “Changing the Paradigm for Compact Model Inegration in Circuit Simulators Using Verilog-A”, http://www.tiburon-da.com/ NanoTech2003.pdf
 Ken Kundert, “Simulation Methods for RF Integrated Circuits”, ICCAD-94.
 Rincon User Manual, Ridgetop Group, Inc., http://www.ridgetop-group.com
 C.T. Kelley, “Iterative Methods for Linear and Nonlinear Equations”; Frontiers in Applied Mathematics, vol 16, SIAM, 1995.
 V. Rizzoli et al, “ Fast and Robust Inexact Newton Approach to the Harmonic-Balance Analysis of Nonlinear Microwave Circuits.” 1997 Microwave and Guided Wave Letters 7.10 (Oct. 1997 [MGWL]): 359-361.
Last modified on 18-May-2004