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 ports

TABLE OF CONTENTS

Xilinx FPGA FPGA Forum

Verilog-AMS: Analog ports

FONT SIZE : AAA

In Verilog, ports are defined by name, direction and then finally type, so for example, a digital gate may have an input called d, which is an input and finally it is defined as a bit, or bus type. Analog signals can be defined in a very similar manner; however, there are some important distinctions to be observed depending on which type of analog variable is required. If a conserved variable (for elements such as resistors, capacitors, and other typical circuit components) is required, then the direction must be defined as inout. Input and output are used for signal flow type models (such as simple control blocks) where the models are not to be used in a conserved manner. 

The type is then defined using standard libraries which define the through and across variables (similar to the standard packages in VHDL-AMS). These are defined in a series of disciplines, with natures (very similar terminology to VHDL-AMS), so for example in the electrical domain, connection points (called “nodes” in Verilog-AMS) have a specific nature (voltage across and current through) that define the discipline (electrical). 

Using this approach, the connection points to a model can be defined using those natures directly. For example, take a simple electrical two-port model, with two pins p and m, both of type electrical, the basic module structure will be as follows: 

1 module model(p, m);

2 inout p,m;

3 electrical p,m;

4 / Main Model Behavior goes here

5 endmodule;

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

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

Need Help?

Support

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