VHDL-AMS Resistor Model Description
To view the model description, select Tools>Edit Libraries>Models. Choose the [sys] Simplorer Elements\Basic Elements VHDLAMS\Basic Elements VHDLAMS library from the Libraries list, and click to select the “r” model from the list in the Edit Libraries dialog box. The model description appears in the Model text pane to the right of the list. The example resistor model has an interface with two electrical terminals and one non-conservative input for the static resistance value.
|
LIBRARY IEEE; USE IEEE.ELECTRICAL_SYSTEMS.ALL; ENTITY R IS PORT (QUANTITY R : RESISTANCE := 1.0e+3; TERMINAL p,m : ELECTRICAL); END ENTITY R; ARCHITECTURE behav OF R IS QUANTITY v ACROSS i THROUGH p TO m; BEGIN v == i*R; END ARCHITECTURE behav; |
||
|
ENTITY |
Interface description of the model r. |
|
|
PORT |
Conservative and non-conservative pins of a circuit. Here, there are two electrical TERMINALs that represent the plus (+) and minus (–) pins of the model, and one non-conservative QUANTITY input for the resistance value of the model. |
|
|
TERMINAL |
Conservative pin associated with a domain. Here, there are two conservative pins p and m declared for the ELECTRICAL domain. |
|
|
ARCHITECTURE |
Defines the behavior behav of the model r. QUANTITY voltage ACROSS current THROUGH p TO m; This statement defines voltage as an ACROSS quantity and current as a THROUGH quantity between the pins p and m for the model. v == i * R; This statement specifies the model behavior v = i*R in VHDL-AMS equation form. |
|