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: A DC Voltage Source

TABLE OF CONTENTS

Xilinx FPGA FPGA Forum

A VHDL-AMS Example: A DC Voltage Source

FONT SIZE : AAA

In order to illustrate some of these basic concepts, consider a simple example of a dc voltage source. This has two electrical pins p and m, and a single parameter dc_value that is used to define the output voltage of the source. The model symbol is shown in Figure 18.2.

Basic VHDL-AMS voltage sourcepng

Figure 18.2 

Basic VHDL-AMS voltage source.

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 must be defined as a real number with the default value also defined as a real number (e.g., 1.0).

1 library ieee;

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

4 generic( 5 dc_value : real := 1.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 source and then link those to the terminal pin names. Also, the output equation of the source must be modeled as an analog equation in VHDL-AMS using the == operator to implement the function v = dc_value.

1 architecture simple of v_dc is

2 quantity v across i through p to m;

3 begin

4 v == dc_value;

5 end architecture simple;


  • XC3090A-7TQ176C

    Manufacturer:Xilinx

  • FPGA XC3000 Family 6K Gates 320 Cells 113MHz 5V 176-Pin TQFP
  • Product Categories: FPGA

    Lifecycle:Obsolete -

    RoHS: No RoHS

  • XC4028XLA-09BGG352C

    Manufacturer:Xilinx

  • FPGA XC4000XLA Family 28K Gates 2432 Cells 227MHz 0.35um Technology 3.3V 352-Pin Metal BGA
  • Product Categories: FPGAs

    Lifecycle:Obsolete -

    RoHS:

  • XC5VLX155-2FF1153I

    Manufacturer:Xilinx

  • FPGA Virtex-5 LX Family 65nm Technology 1V 1153-Pin FCBGA
  • Product Categories: Socle de fusible

    Lifecycle:Active Active

    RoHS: No RoHS

  • XC5VLX155-2FFG1153I

    Manufacturer:Xilinx

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

    Lifecycle:Active Active

    RoHS:

  • XC5VLX155-3FFG1153C

    Manufacturer:Xilinx

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

    Lifecycle:Active Active

    RoHS:

Need Help?

Support

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