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 Verilog-AMS Example

TABLE OF CONTENTS

Xilinx FPGA FPGA Forum

A Verilog-AMS Example

FONT SIZE : AAA

DC Voltage Source 

As we saw with the VHDL-AMS approach, we can create a simple voltage source that has two pins p and m, with a dc value (dcv) using a simple Verilog-AMS model. In some ways the Verilog-AMS model is simpler to implement than its VHDL-AMS equivalent, as there is no separate entity and architecture, just a single module, and this is shown in the listing:

1 module vdc(p,m)

2 inout p; / Positive Terminal

3 inout m; / Negative Terminal

45 electrical p,m; / Define ports as electrical

67 parameter real dcv = 0.0; / define the DC voltage with a default value of 0.0

89 analog begin

10 V(p,m) <+ dcv;

11 end

12

13 endmodule

Resistor 

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

1 module resistor(p,m)

2 inout p; / Positive Terminal

3 inout m; / Negative Terminal

45 electrical p,m; / Define ports as electrical

67 parameter real rnom = 1.0; / define the resistance with a default value of 1.0

89 analog begin

10 V(p,m) <+ I(p,m) ∗ rnom;

11 end

12

13 endmodule


  • 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:

  • XC5VLX155T-1FF1738I

    Manufacturer:Xilinx

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

    Lifecycle:Active Active

    RoHS: No RoHS

  • XCS30XL-5VQ100C

    Manufacturer:Xilinx

  • Spartan and Spartan-XL Families Field Programmable Gate Arrays
  • Product Categories: Commutateurs analogiques

    Lifecycle:Obsolete -

    RoHS: -

  • XCS30XL-TQ144AKP

    Manufacturer:Xilinx

  • Xilinx QFP-144
  • Product Categories:

    Lifecycle:Obsolete -

    RoHS: -

Need Help?

Support

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