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 > Mixed Signal Modeling with Verilog-AMS

TABLE OF CONTENTS

Xilinx FPGA FPGA Forum

Mixed Signal Modeling with Verilog-AMS

FONT SIZE : AAA

As we discussed earlier, the issues of convergence, nonlinearity and also mixed-signal boundaries are an important issue and are no less important in Verilog-AMS. As we saw with VHDL-AMS, the first boundary to consider is from analog to digital, and in Verilog-AMS this can be implemented using the cross function. 

Using this approach, the crossing can be tested and then also whether it is rising or falling; in this example it is looking for the voltage at node x crossing 2, and the 1 denotes a rising crossing.

1 always begin

2 @(cross(V(x) − 2 ,1))

3 q = 1;

4 end

In this case, the transition is looking for a falling cross and in this case the logic signal q is set to 0:

1 always begin

2 @(cross(V(x) − 2 ,−1))

3 q = 0;

4 end

In the opposite direction, the transition function is used to look for changes in logic values and then to use that to set an analog variable, as in this example where the logic input (din) is checked and, if high, sets the voltage on pin p to 3.3 or 0 V if low.

1 V(p) <+ transition((din == 1) ? 3.3 : 0.0);

Using these two operators, mixed-signal elements such as comparators, ADCs, or DACs can be implemented.

  • XC5VLX155-2FFG1760I

    Manufacturer:Xilinx

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

    Lifecycle:Active Active

    RoHS:

  • XC5VLX155T-1FF1136I

    Manufacturer:Xilinx

  • FPGA Virtex-5 LXT Family 65nm Technology 1V 1136-Pin FCBGA
  • Product Categories: Boîtier de connecteur

    Lifecycle:Active Active

    RoHS: No RoHS

  • XCS30XL-5PQG208C

    Manufacturer:Xilinx

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

    Lifecycle:Obsolete -

    RoHS: -

  • XC4028XLA-9HQ240C

    Manufacturer:Xilinx

  • XC4000XLA/XV Field Programmable Gate Arrays
  • Product Categories:

    Lifecycle:Obsolete -

    RoHS: No RoHS

  • XCV300-6PQG240C

    Manufacturer:Xilinx

  • FPGA Virtex Family 322.97K Gates 6912 Cells 333MHz 0.22um Technology 2.5V 240-Pin PQFP
  • Product Categories:

    Lifecycle:Obsolete -

    RoHS:

Need Help?

Support

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