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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 9: Using VERA with <strong>Synopsys</strong> <strong>Models</strong><strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>model_1.write(address4, data4, ‘FLEX_WAIT_F, status);// Per<strong>for</strong>m a read cyclemodel_1.read_req(address1, ‘FLEX_WAIT_F, status);model_1.read_req(address2, ‘FLEX_WAIT_F, status);model_1.read_req(address3, ‘FLEX_WAIT_F, status);model_1.read_req(address4, ‘FLEX_WAIT_F, status);// Get the read results back to the testbenchmodel_1.read_rslt(address1, tag, result1, status);model_1.read_rslt(address2, tag, result2, status);model_1.read_rslt(address3, tag, result3, status);model_1.read_rslt(address4, tag, result4, status);// Synchronize Instance 1 & 2// Note that the generic commands are also sent to// through the model’s instance.}{model_1.synchronize(2, “synch_2”, ‘timeout, status);// Send commands to the FlexModel Instance 2model_2.write(address1, data1, ‘FLEX_WAIT_F, status);model_2.write(address2, data2, ‘FLEX_WAIT_F, status);model_2.write(address3, data3, ‘FLEX_WAIT_F, status);// Synchronize Instance 1 & 2model_2.synchronize(2, “synch_2”, ‘timeout, status);}join // End of <strong>for</strong>k} // End of program model_test212 <strong>Synopsys</strong>, Inc. October 6, 2003

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

Saved successfully!

Ooh no, something went wrong!