UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 17013

9.2i EDK - Is there a way to add the PowerPC registers included in the SmartModel to my simulation?

Description

Is there a way to add the PowerPC registers included in the SmartModel to my simulation?  

 

For additional information regarding these registers, see (Xilinx Answer 17088).

Solution

VHDL Only Solution 

 

You can use the following commands to enable and add a PPC register to your simulation: 

 

NOTE: The paths below are examples; you should update these paths to match your design. 

 

Use the following command to add a register to the simulation: 

lmcwin enable /testbench/uut/ppc405_0/ppc405_0_i/ppc405_i/ippc405_swift/ppc405_swift_inst/GPR0 

 

Use the following command to add a register to the MTI wave window: 

add wave /testbench/uut/ppc405_0/ppc405_0_i/ppc405_i/ippc405_swift/ppc405_swift_inst/GPR0 

 

To see a complete list of the registers available and the full path to the registers, use the following command: 

lmc -all reportstatus

 

Verilog Only 

 

The following commands must be added to the Verilog testbench: 

 

/////////////////////////////////////////////////////////////////////////// 

// Swift Model Simulation Related Commands 

/////////////////////////////////////////////////////////////////////////// 

 

initial $lm_monitor_enable(SYSTEM.ppc405_1.PPC405_i.IPPC405_SWIFT.I1); 

 

// VIEW_REG: display register updates in CPU swift model 

`include "view_reg.v" 

 

NOTE: The path to the SmartModel must be modified to match the path in your design. This path is specified in the "testbench.v", as well as in the "view_reg.do" files. 

 

An example of "view_reg.do" is available at: 

http://www.xilinx.com/txpatches/pub/documentation/misc/view_reg.zip

AR# 17013
Date Created 09/03/2007
Last Updated 05/15/2014
Status Archive
Type General Article