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

Selecting a wreal Resolution Function

You can define a resolution function for each net in a design on a per scope basis by using the Verilog-AMS discipline mechanism. You can also designate a global resolution function that can be used for undisciplined nets and for the nets with disciplines that do not define a wreal resolution function.

You can define resolution function in the following ways:

  • The resolution function defined through the -wreal_resolution command-line option has precedence over the one defined through the AMSCB connectmap card. So, if both methods are used and they specify different resolution functions, the global wreal resolution function takes its value from the command-line option and a warning is printed on the screen.
  • If no global wreal resolution function is specified using these two methods, it is set to the default wreal resolution function.

Order of Precedence for Determining the Resolution Function on a Net

If a discipline has a resolution function defined in the discipline definition and also has a resolution function defined in the AMS Control Block using the connectmap card, the connectmap card resolution function will take precedence and will be used as the resolution function for all nets of that discipline. This allows you to override the resolution function without changing the discipline definition.

Following is the order of precedence for determining the resolution function on a net:

  1. Explicitly declared resolution on a net it is connected to (typed wreal or SV-RNM nettype)
  2. Resolution function explicitly defined in the AMS Control Block using the connectmap card
  3. Resolution function explicitly defined in the nets discipline definition
  4. Resolution function of the discipline of the net to which a given net is connected
  5. Global resolution function specified with the -wreal_resolution command-line option
  6. Global resolution function specified with the connectmap card (without the discipline parameter)
  7. The default global resolution function

Rules to Determine the Resolved Resolution Function for Connected wreal Nets

During elaboration, the connected wreal nets are collapsed into a single simulated wreal net with a single resolution function. The resolved value of this simulated wreal net is determined by considering all its drivers and processing their values through the resolved resolution function.

The set of rules listed below are followed to determine the resolved resolution function.

The table below summarizes how the resolved resolution function is determined from the resolution functions of the three wreal nets: w1, w2, and w3.

w1

w2

w3

Resolved

avg

avg

avg

avg

avg

UNSPECIFIED

UNSPECIFIED

avg

avg

UNSPECIFIED

sum

ERROR

UNSPECIFIED

UNSPECIFIED

UNSPECIFIED

GLOBAL

Related Topic



 ⠀
X