Product Documentation
Spectre AMS Designer and Xcelium Simulator Mixed-Signal User Guide
Product Version 22.09, September 2022

9

Real Number Modeling

You can create designs using real number models (RNM) and simulate them using the AMS Designer simulator. Using either Verilog-AMS or VHDL-AMS languages, you can define real ports that are not electrical. You can use wreal connect modules to connect real number models to Spectre or SPICE or electrical blocks. The elaborator automatically inserts appropriate connect modules between electrical ports (analog domain) and wreal ports (digital domain).

You can use the -iereport or -ieinfo command-line options to generate a report summary for each type of connect module the elaborator inserts.

Real connect modules support analog/digital (discrete wreal) conversion with a custom variable rate, while wreal connect modules support variable rate signal conversion. The absdelta function drives the real connect module analog-to-digital conversion, while digital events drive the real connect module digital-to-analog conversion.

Basic wreal Features of the AMS Designer Simulator

Basic wreal features of the AMS Designer simulator consist of the following:

You can use these features to create real-numbered models.

For example, the following Verilog-AMS model for a DC source has an output port type that is wreal, which is like a wire with the ability to transfer a real number:

module rdcsource ( aout );
output aout;
wreal aout;     //output wreal
\logic aout;    //discrete domain

parameter real dc=0.0;
real aoutreg;

initial begin
    aoutreg=dc;
end
assign aout = aoutreg;

endmodule

The following Verilog-AMS model for a ramp source has an external clock that defines the sampling rate:

module step (clk, y );
input clk;
output y;
wreal y;
\logic y;

parameter real offset=0.0;
parameter real step=1;

real yval;

initial
    yval=offset;

always @(posedge clk)
begin
    yval = yval + step ;
    end

assign y = yval;
endmodule

Advanced wreal Features of the AMS Designer Simulator

Advanced wreal features of the AMS Designer simulator consist of the following:

Following are not supported:

Related Topics



 ⠀
X