The amsd block supports Verilog 2001 configuration (specified using the -libmap and -compcnfg xrun options). If the configuration information is specified in the amsd block as well as the Verilog 2001 configuration file, then the following rules apply:
- Configuration information specified in the
amsdblock takes higher priority than Verilog 2001 configuration.
- For instances that are not specified as
use=spicein theamsdblock, Verilog 2001 configuration is considered.
Consider an example where you have the following:
|
|
//rtl description endmodule |
//gate-level description endmodule |
The Verilog 2001 configuration file config01.v is specified as follows:
config cfg1;
design rtlLib.top
default liblist rtlLib;
instance top.a3 liblist gateLib:
endconfig
In a pure digital run, the binding result would be as follows:
a1; a2=>rt1Lib; a3=>gateLib
If you want to configure instance a1 as spice view, you can use the config statement in the amsd block as follows:
include "clock.scs"
amsd{
portmap subckt=clockconfig inst= top.a1 use=spice
}
When the simulation is run, the binding result would be as follows:
a1=>spice ; a2=>rt1Lib ; a3=>gateLib
For more information on how to configure the contents of a design, refer to Section 13 of the Verilog 2005 LRM.
