24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

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.

Usage flow for mixed-language simulations<br />

The usage flow for mixed-language designs is as follows:<br />

Usage flow for mixed-language simulations UM-189<br />

1 Analyze HDL source code using vcom (CR-311) or vlog (CR-358) <strong>and</strong> SystemC C++<br />

source code using sccom (CR-254). Analyze all modules in the design following orderof-analysis<br />

rules.<br />

For SystemC designs with HDL instances:<br />

Create a SystemC foreign module declaration for all Verilog <strong>and</strong> VHDL instances (see<br />

"SystemC foreign module declaration" (UM-209) or (UM-217)).<br />

For Verilog/VHDL designs with SystemC instances:<br />

Export any SystemC instances that will be directly instantiated by Verilog/VHDL using<br />

the SC_MODULE_EXPORT macro. Exported SystemC modules can be instantianted<br />

just as you would instantiate any Verilog/VHDL module or design unit.<br />

2 For designs containing SystemC:<br />

Link all objects in the design using sccom (CR-254) -link.<br />

3 If you have Verilog modules in your mixed design that you would like to optimize, you<br />

would run the vopt comm<strong>and</strong> (CR-371) on the top-level design unit. See "Optimizing<br />

mixed designs" (UM-190).<br />

4 Simulate the design with the vsim comm<strong>and</strong> (CR-373).<br />

5 Issue run (CR-252) comm<strong>and</strong>s from the <strong>ModelSim</strong> GUI.<br />

6 Debug your design using <strong>ModelSim</strong> GUI features.<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!