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.

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Appendix B: Using Custom Memory <strong>Models</strong>Instantiating Custom Memory <strong>Models</strong>You instantiate custom memory models just as you would any other HDL models, asshown in the following examples using DRAM.Verilog Instantiationdram1x64 bank1( .ras ( rasr ),.ucas ( ucasr ),.lcas ( lcasr ),.we ( wer ),.oe ( oer ),.a ( adrr ),.dq ( dataw ));defparam bank1.model_id = 10,bank1.memoryfile = "dram.dat",bank1.message_level = `SLM_XHANDLING | `SLM_TIMING | `SLM_WARNING,bank1.default_data = 64'hxxx;VHDL InstantiationU1 : dram1x64generic map ( model_id => 10,memoryfile => "dram.dat",message_level => (SLM_TIMING + SLM_XHANDLING + SLM_WARNING),default_data => "XXXX");port map( a => adrw,dq=> dataw,ras=> rasw,lcas=> lcasw,ucas=> ucasw,we=> wew,oe => oew );October 6, 2003 <strong>Synopsys</strong>, Inc. 285

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

Saved successfully!

Ooh no, something went wrong!