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 > Verilog-AMS Analog Equations

TABLE OF CONTENTS

Xilinx FPGA FPGA Forum

Verilog-AMS Analog Equations

FONT SIZE : AAA

Now that we have a set of analog connections (nodes) with a specific analog type (from disciplines.vams) and also branch definitions for through and across variables, it is now a simple matter to construct the equations to describe the behavior of the model. 

For example, consider the equation for a simple resistor: 

v = i ∗ r 

Now that we have the voltage V(p,m) and current I(p,m), if we assume that the resistance r has been defined as a parameter of type real already, then the operator <+ can be used to create the governing equation for the analog behavior: 

1 V(p,m) <+ I(p,m)∗r

In the Verilog modeling scheme, each section of the model is defined using some form of block statement (such as the “always” statement in the digital world) and in the analog equation section, the same approach is used with the “analog” block. Defining an analog block enables the designer to collect all the analog behavior and separate it from digital expressions. 

Using this approach, the core of our simple resistor model would then become something like the following: 

1 analog begin

2 V(p,m) <+ I(p,m)∗r

3 end


  • XC5VLX155-2FFG1153C

    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-3FF1153C

    Manufacturer:Xilinx

  • FPGA Virtex-5 LX Family 65nm Technology 1V 1153-Pin FCBGA
  • Product Categories: Contrôleur logique

    Lifecycle:Unconfirmed -

    RoHS: No RoHS

  • XC5VLX155T-1FF1738C

    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-5PQG240C

    Manufacturer:Xilinx

  • XCS30XL-5PQG240C - NOT RECOMMENDED for NEW DESIGN
  • Product Categories:

    Lifecycle:Obsolete -

    RoHS: -

  • XC4028XLA-BG256AKP

    Manufacturer:Xilinx

  • Xilinx BGA
  • Product Categories:

    Lifecycle:Any -

    RoHS: -

Need Help?

Support

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