MATLAB DESIGN HDL CODER RELEASE NOTES User's Guide Page 366

  • Download
  • Add to my manuals
  • Print
  • Page
    / 410
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 365
366 www.xilinx.com System Generator for DSP User Guide
UG640 (v 12.2) July 23, 2010
Chapter 4: Importing HDL Modules
Black Box Tutorial Exercise 7: Advanced Black Box Example Using
ModelSim
1. Navigate into the example5 directory and open the example black_box_ex5.mdl
file. The model includes an adder that is driven by two input gateways. The gateways
are configured to produce signed 8-bit values, each with six bits to the right of the
binary point. Sine wave generators drive the gateways. The model also includes a
black box named waveform scope. This is driven by three signals. The first input is
driven by the adder. The other two are driven by the inputs to the adder. The
ModelSim block enables HDL co-simulation. The example model is shown below.
2. Simulate the black_box_ex5 model. A ModelSim window opens and ModelSim
compiles the files necessary for simulation. After the compilation is complete, both
MATLAB and ModelSim simulations begin. A ModelSim waveform viewer opens and
displays four signals. The first input to the block, sig1, is driven by the adder. This
Page view 365
1 2 ... 361 362 363 364 365 366 367 368 369 370 371 ... 409 410

Comments to this Manuals

No comments