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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 410
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 362
System Generator for DSP User Guide www.xilinx.com 363
UG640 (v 12.2) July 23, 2010
Black Box Examples
4. The black box is able to adjust to changes in input width because of its configuration
M-function. To make this work, the M-function must be augmented by hand. Open the
M-function file transpose_fir_parametric.m. The important points are described
below.
• Obtaining data input width:
input_bitwidth = this_block.port('din').width;
• Calculating output width:
output_bitwidth = ceil(log2(2^(input_bitwidth-1)*2^(coef_bitwidth-1) *
number_of_coef));
• Setting output data type:
dout_port.makeSigned;
dout_port.width = output_bitwidth;
dout_port.binpt = 12;
• Passing input and output bit widths to VHDL as generics:
this_block.addGeneric('input_bitwidth',this_block.port('din').width);
this_block.addGeneric('output_bitwidth',output_bitwidth);
For details concerning the black box configuration M-function, seethe topic Black Box
Configuration M-Function.
If you examine the black box VHDL file transpose_fir_parametric.vhd you see generics
input_bitwidth and output_bitwidth that specify input and output width. These
are passed to lower-level VHDL components.
Simulating Several Black Boxes Simultaneously
Several System Generator black boxes can co-simulate simultaneously, using only one
ModelSim license while doing so. The example shown below illustrates this. The files for
the example are contained in the directory
<ISE_Design_Suite_tree>/sysgen/examples/black_box/example2.
The files contained in this directory are:
• black_box_ex2.mdl: A Simulink model containing two black boxes.
• parity_block.vhd: VHDL for a simple state machine that tracks the running
parity of an 8-bit input word.
• parity_block_config.m: The configuration M-function for the black boxes. The
code has barely been changed from what was produced by the Configuration Wizard:
the line that tagged the block as having a combinational feed-through path
(this_block.tagAsCombinational) has been removed.
Black Box Tutorial Example 6: Simulating Several Black Boxes
Simultaneously
Navigate into the example2 directory and open the example model. This is a simple
model with two identical black boxes, each implementing a state machine. The state
machines compute the running parity of their inputs. One black box is fed the input stream
of the model and the other is fed the input stream after it has been serialized and de-
serialized. Notice that no simulation model is provided for either state machine. Instead,
HDL co-simulation is used to produce simulation results. The ModelSim block provides
Page view 362
1 2 ... 358 359 360 361 362 363 364 365 366 367 368 ... 409 410

Comments to this Manuals

No comments

American-car-craft Camaro Doorsills Brushed_Polished "Super Spor manuály

Uživatelské manuály a uživatelské příručky pro Pro auto American-car-craft Camaro Doorsills Brushed_Polished "Super Spor.
Poskytujeme 1 manuály pdf American-car-craft Camaro Doorsills Brushed_Polished "Super Spor ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro Pro auto American-car-craft

Modely Typ Dokumentu
Corvette Exhaust Filler Panel Corsa 3.5 Quad Tips Uživatelský manuál   American Car Craft Corvette Exhaust Filler Panel Corsa 3.5 Quad Tips Perforated 2005-2013 C6 User Manual, 6 stránky
Camaro Rear Valance Laser Mesh Fits the GM RS Grou Uživatelský manuál   American Car Craft Camaro Rear Valance Laser Mesh Fits the GM RS Ground Effects 2010-2013 User Manual [es] , 2 stránky
Corvette Stingray Rear Valance Vent Grilles Laser Uživatelský manuál   American Car Craft Corvette Stingray Rear Valance Vent Grilles Laser Mesh 2Pc Polished 2014+ C7 User Manual, 3 stránky
Camaro Rear Valance Trim Kit 25Pc Polished 2012-20 Uživatelský manuál   American Car Craft Camaro Rear Valance Trim Kit 25Pc Polished 2012-2013 ZL1 only User Manual [es] , 2 stránky
Pontiac G8 A_C Door Vent Trim Plates 2Pc GT Brushe Uživatelský manuál   American Car Craft Pontiac G8 A_C Door Vent Trim Plates 2Pc GT Brushed_Polished 2008-2009 User Manual [es] , 2 stránky
Corvette Exhaust Filler Panel for Stock Exhaust wi Uživatelský manuál   American Car Craft Corvette Exhaust Filler Panel for Stock Exhaust with C5 Flag Emblem Polished 1997-2004 C5 &amp; Z06 User Manual [es] , 3 stránky
Camaro Executive Series Fluid Cap Cover 5Pc Set Sy Uživatelský manuál   American Car Craft Camaro Executive Series Fluid Cap Cover 5Pc Set Synergy Green 2010-2013 V8 Auto User Manual [es] , 2 stránky
Corvette Wiper Cowl Cover 2Pc Perforated 1997-2004 Uživatelský manuál   American Car Craft Corvette Wiper Cowl Cover 2Pc Perforated 1997-2004 C5 &amp; Z06 User Manual [es] , 3 stránky
Dodge Charger _ Chrysler 300 Door Badges with HEMI Uživatelský manuál   American Car Craft Dodge Charger _ Chrysler 300 Door Badges with HEMI Carbon Fiber inaly 2Pc Front Brushed 2011-2013 User Manual [es] , 2 stránky
Camaro Hood Panel Set Polished 3Pc 2010-2013 Uživatelský manuál   American Car Craft Camaro Hood Panel Set Polished 3Pc 2010-2013 User Manual [en] , 4 stránky
Camaro Wire Harness Cover Perforated 2010-2013 Uživatelský manuál   American Car Craft Camaro Wire Harness Cover Perforated 2010-2013 User Manual, 1 stránky
Camaro Fuel Rail Covers Perforated "SS Style Uživatelský manuál   American Car Craft Camaro Fuel Rail Covers Perforated &quot;SS Style 2010-2012&quot; User Manual [es] , 3 stránky
Camaro Door Handle Pull Trim Brushed Interior 2Pc Uživatelský manuál   American Car Craft Camaro Door Handle Pull Trim Brushed Interior 2Pc 2010-2012 User Manual, 2 stránky
Corvette Stingray Back-Up Light Grilles Matrix Ser Uživatelský manuál   American Car Craft Corvette Stingray Back-Up Light Grilles Matrix Series Alumi-Steel 4Pc Polished 2014+ C7 User Manual, 3 stránky
Corvette Side Marker Trim Rear 2Pc Laser Mesh Poli Uživatelský manuál   American Car Craft Corvette Side Marker Trim Rear 2Pc Laser Mesh Polished 1997-2004 C5 &amp; Z06 User Manual [fr] [en] [pl] , 2 stránky
Mustang Door Panel Kit Brushed Without Padded Door Uživatelský manuál   American Car Craft Mustang Door Panel Kit Brushed Without Padded Door 4Pc V6 & GT 2005-2009 User Manual, 3 stránky
Corvette Side Vent Grilles Perforated 2Pc 1991-199 Uživatelský manuál   American Car Craft Corvette Side Vent Grilles Perforated 2Pc 1991-1994 C4 User Manual, 2 stránky
Corvette Exhaust Filler Panel Corsa 3.5 Quad Tips Uživatelský manuál   American Car Craft Corvette Exhaust Filler Panel Corsa 3.5 Quad Tips Laser Mesh Polished 2005-2013 C6 User Manual [es] , 6 stránky
Dodge Challenger 5.7 and SRT 8 Headlight Surrounds Uživatelský manuál   American Car Craft Dodge Challenger 5.7 and SRT 8 Headlight Surrounds Brushed 2008-2013 User Manual [es] , 2 stránky
Corvette Rear Bumper Grilles 2Pc Laser Mesh Polish Uživatelský manuál   American Car Craft Corvette Rear Bumper Grilles 2Pc Laser Mesh Polished 1997-2004 C5 &amp; Z06 User Manual [es] , 2 stránky