Home

This document is a cache from http://read.pudn.com/downloads148/ebook/638346/Springer%20-%20Modeling%20and%20Simulation%20for%20RF%20System%20Design.pdf


MODELING AND SIMULATION FOR RF SYSTEM DESIGN

Document source : read.pudn.com


44 Chapter
5
5.3.2
Structural description of the PLL circuit in VHDL-AMS
In order to simulate the PLL circuit these mathematical models have to
be translated into VHDL-AMS descriptions. At the beginning, we assume
that the models of the basic building blocks are available. We only have to
connect and parameterize them. The structural description can be done with
reference to the interface descriptions of the block models. The interfaces are
described in VHDL by the entity declarations. These declarations contain the
identifiers of the generic model parameters, their types, and optionally, their
default values. The connection points are summarized in the port list. The
declaration of a connection point characterizes an element of the port list. A
terminal, for instance, is a connection point in a network model.
Furthermore, identifiers and a characterization by type or nature belong to a
port declaration. In the case of an electrical network the nature is
ELECTRICAL.
The entity declaration of the voltage source model used is shown in the
following lines of code. The parameter WAVE describes the voltage
waveform as a list of times and values in a similar way as in any well-known
SPICE simulator [QNP93].
entity VPWL is
generic (
WAVE : REAL_VECTOR; -- time value pairs T1, V1, ...
-- units: [s] and [V]
ACMAG : REAL := 0.0; -- AC magnitude
ACPHASE : REAL := 0.0 -- AC phase
);
port (
terminal P : ELECTRICAL; -- positive terminal
terminal N : ELECTRICAL -- negative terminal
);
end entity VPWL;
The VCO entity is declared in a similar way. The assert statement checks
whether model parameters are assigned in a correct way during instantiation.
entity VCO is
generic (F0 : REAL := 1.0; -- center frequency [Hz]
KF : REAL := 1.0; -- gain [Hz/V]
AMPL : REAL := 1.0; -- amplitude [V]
PHI0 : REAL := 0.0 -- initial phase [rad]
);
port (terminal INP : ELECTRICAL; -- input terminal
terminal OUTP : ELECTRICAL -- output terminal
);
begin
assert
F0 > 0.0 and KF > 0.0
report "F0 and KF > 0.0 required."
severity ERROR;
end entity VCO;







Summary :

entity VPWL is generic ( WAVE : REAL_VECTOR; port ( terminal P : ELECTRICAL; -- positive terminal terminal N : ELECTRICAL -- negative terminal ); entity VCO is generic (F0 : REAL := 1.0; -- input terminal terminal OUTP : ELECTRICAL -- output terminal );


Tags : terminal,entity,electrical,real,port,model,list,connection,generic,way,declaration,models,similar





Terms    |    Link pdf-search-files.com    |    Site Map
   |    Content Removal Notice   
   |    Contact   

All books are the property of their respective owners.
Please respect the publisher and the author for their creations if their books copyrighted