12.07.2015 Views

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 7: Using QuickSim II with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Tracing Instruction ExecutionSmartModel Windows provides the ability to trace peripheral component activity in adesign. Most larger peripherals and microprocessors equipped <strong>for</strong> SmartModelWindows have a 1-bit element named TRACE_ENABLE. Setting TRACE_ENABLE toone (1) causes trace messages to display in the transcript window.Use the following command to enable instruction tracing <strong>for</strong> a model:FORCE model_instance/TRACE_ENABLE 1Some trace message examples follow:‘I$2752': ‘Trace: Logical Master writing to PMMU Operand Address CIR.‘I$2752': ‘SmartModel Instance /I$2752(U103:MC68851-12), sheet1 ofmy_design at time 819500.0‘I$2752': ‘Trace: MC68851 is starting a table search using CRP.‘I$2752': ‘SmartModel Instance /I$2752(U103:MC68851-12), sheet1 ofmy_design at time 822150.0Setting Breakpoints and Word TriggeringUse the ADD BREAKPOINT command to stop the simulation at critical points andexamine internal window elements. You can set breakpoints based on the contents ofspecific elements inside components within the design. For example, the followingcommand causes the simulation to stop at the breakpoint when the specified condition ismet.ADD BREAKPOINT (model_instance/TC==0B)You can use Boolean expressions with the Add Breakpoint command to set up complexword triggers that provide a logic analyzer during simulation. For example, thefollowing command causes the simulation to stop at the breakpoint when both of the twospecified conditions are met.ADD BREAKPOINT ((model_instance/SCC!=0)&&(model_instance/TC==B))Trigger terms do not have to refer to the same instance or model. In addition, net valuesand window element contents can be combined to make trigger terms.Single-Step SimulationThe ADD BREAKPOINT command defaults to stopping the simulator when a signal orexpression in a window element changes state. As a result, you can use the ADDBREAKPOINT command to single-step through a simulation.142 <strong>Synopsys</strong>, Inc. October 6, 2003

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!