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.

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Appendix A: Using LMTV with <strong>Synopsys</strong> <strong>Models</strong>// Such a model would typically have one window called UMEM.// This window is a 4K deep array of 8 bit registers. In// particular, the user is interested in these 3 locations:// Interrupt service routine, LOW ADDRESS: 100// Interrupt service routine, HIGH ADDRESS: 101// Control store : 200// that are significant to the design.reg [7:0] ISR_LOW; // variable to map to location 100reg [7:0] ISR_HIGH; // variable to map to location 101reg [7:0] CONTROL; // variable to map to location 200// enable monitoring of these variables$lm_monitor_vec_map( ISR_LOW, U1, "UMEM", 100 );$lm_monitor_vec_map( ISR_HIGH, U1, "UMEM", 101 );$lm_monitor_vec_map( CONTROL, U1, "UMEM", 200 );// ... at this time, you can read, write, or trace these// variables. For example, assign the address of the interrupt// service routine to be 0x5000ISR_LOW = 0x00 ;ISR_HIGH = 0x50 ;// or the same assignment can be done as follows:define ISR {ISR_HIGH,ISR_LOW}ISR = 16h5000 ;// this one statement will access two different// and independent memory locations at once.// later in the simulation, you can disable monitoring// <strong>for</strong> the ‘CONTROL' register:$lm_monitor_vec_unmap( CONTROL, U1 );// or you can disable monitoring of all windows in that instance:$lm_monitor_vec_unmap( U1 );October 6, 2003 <strong>Synopsys</strong>, Inc. 279

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

Saved successfully!

Ooh no, something went wrong!