This website uses cookies. By using this site, you consent to the use of cookies. For more information, please take a look at our Privacy Policy.
Home > FPGA Technical Tutorials > Design Recipes for FPGAs Using Verilog and VHDL > Mixed Signal Modeling > A VHDL-AMS Example: Resistor

TABLE OF CONTENTS

Xilinx FPGA FPGA Forum

A VHDL-AMS Example: Resistor

FONT SIZE : AAA

A VHDL-AMS Example: Resistor

In the case of the resistor, the basic entity is very similar to the voltage source with two electrical pins p and m with a single generic, this time for the nominal resistance rnom Figure 18.3. 

This can be modeled in VHDL-AMS in two parts, the entity and architecture. First consider the entity. This has two electrical pins, so we need to use the ieee.electrical_systems.all; package and therefore the ports are to be declared as TERMINALS. Also, the generic rnom must be defined as a real number, with the default value also defined as a real number (e.g., 1000.0).

Figure 18.3.png

Figure 18.3 

Basic VHDL-AMS resistor.

1 library ieee;

2 use ieee.electrical_systems.all; 3 entity resistor is

4 generic( 5 rnom : real := 1000.0);

6 port( 7 terminal p : electrical;

8 terminal m : electrical

9 );

10 end entity;

The architecture must define the quantities for voltage and current through the resistor and then link those to the terminal pin names. Also, the output equation of the resistor must be modeled as an analog equation in VHDL-AMS using the == operator to implement the function v = i * rnom.1 library ieee;

2 use ieee.electrical_systems.all; 3 entity resistor is

4 generic( 5 rnom : real := 1000.0);

6 port( 7 terminal p : electrical;

8 terminal m : electrical

9 );

10 end entity;



  • XC4028XLA-08HQ240I

    Manufacturer:Xilinx

  • FPGA XC4000XLA Family 28K Gates 2432 Cells 263MHz 0.35um Technology 3.3V 240-Pin HSPQFP EP
  • Product Categories:

    Lifecycle:Obsolete -

    RoHS: No RoHS

  • XC4028XLA-09HQ160C

    Manufacturer:Xilinx

  • FPGA XC4000XLA Family 28K Gates 2432 Cells 227MHz 0.35um Technology 3.3V 160-Pin HSPQFP EP
  • Product Categories: FPGAs

    Lifecycle:Obsolete -

    RoHS: No RoHS

  • XC5VLX155-2FF1760C

    Manufacturer:Xilinx

  • FPGA Virtex-5 LX Family 65nm Technology 1V 1760-Pin FCBGA
  • Product Categories: Rangée de condensateur

    Lifecycle:Active Active

    RoHS: No RoHS

  • XC5VLX155-2FFG1760C

    Manufacturer:Xilinx

  • FPGA Virtex-5 LX Family 65nm Technology 1V 1760-Pin FCBGA
  • Product Categories: FPGAs (Field Programmable Gate Array)

    Lifecycle:Active Active

    RoHS:

  • XC5VLX155-3FFG1760C

    Manufacturer:Xilinx

  • FPGA Virtex-5 LX Family 65nm Technology 1V 1760-Pin FCBGA
  • Product Categories: FPGAs

    Lifecycle:Active Active

    RoHS:

Need Help?

Support

If you have any questions about the product and related issues, Please contact us.