To describe the power intent for the mixed-signal blocks using the IEEE 1801 format, use the -lps_ams_sim option at the xrun command line. Based on the power intent information, the built-in power-smart connect modules can be inserted at the mixed-signal boundary. The built-in power-smart connect modules:
- Propagate the power state over the mixed-signal boundary
- Monitor the working voltage conflicts of multiple drivers and loads
- Check the voltage compatibility between the driver side and load side
Power corruption is applied to the wreal signals in power-shutoff state and is controlled by the following options:
default: Forces the wreal signal to`wrealXStateduring the power-shutoff state
-lps_wreal_nocorrupt: Does not apply a corruption value on the wreal signal during power-shutoff state
-lps_wreal_corrupt_value <value>: Applies the specified value on the wreal signal during power-shutoff state. The value can be a real number,'wrealXState'/'x'or'wrealZState'/'z'
Additionally, you can use the AMSCCPF VPI task, $amslps_power_state_register(iPwrState, vPwrArgArray), to define your own power-aware connect module. This VPI task could be used to get the following information:
- the power state, by back tracing the drivers of input port of smart-ie
- the nominal voltages, which are specified in the CPF control file
- the power shut-off voltage on analog side
Where:
iPwrStateis a register, which is associated with power state of driver side (it could be logic, wreal or electrical), and it's value is updated automatically if power state changes happen during simulation.1'b1: driver is in power on state1'b0: driver is in power off state1'bX: driver is in standby state1'bZ: driver is in power transition
For Bidir, the iPwrState is a register vector [1:0]iPwrState. iPwrState[0] is used to track power state of digital driver and iPwrState[1] is used to track power state of analog side.
vPwrArgArrayis a real array variable, which is associated with power domain working voltage info, on digital side, that specified in LP(CPF or IEEE1801) files. And the value is changed automatically if power mode changed during simulation.vPwrArgArray[0]: power corruption value of electrical signalvPwrArgArray[1]: supply voltage of power domainvPwrArgArray[2]: ground voltage of power domainvPwrArgArray[3]: pmos bias voltage of power domainvPwrArgArray[4]: nmos bias voltage of power domainvPwrArgArray[5]: power corruption value of wreal signal
By default, the amslps-vpi task links the real array with voltage info of the digital side. However, you can use the -lps_ams_avref option to access the power supply of the power-smart connect modules from the power domain of the analog side.
