You must have Xilinx® ISE Design Suite 13.4 or later to generate a System Generator Black Box block.
To verify your System Generator setup, at the command line, enter:
xlVersion
To enable System Generator Black Box block generation using the HDL Workflow Advisor:
In the HDL Workflow Advisor, on the left, click Code Generation.
In the Advanced tab, select the Generate Xilinx System Generator Black Box option.
In the Clocks & Ports tab, set the following fields:
For Clock input port, enter clk
.
For Clock enable input port,
enter ce
.
For Drive clock enable at, select DUT base rate.
To enable System Generator Black Box block generation, at the command line, enter:
hdlcfg = coder.config('hdl'); hdlcfg.GenerateXSGBlock = true; hdlcfg.ClockInputPort = 'clk'; hdlcfg.ClockEnableInputPort = 'ce'; hdlcfg.EnableRate = 'DutBaseRate';
After you generate HDL code, you have:
An XSG subsystem.
A System Generator Black Box block within the XSG subsystem.
A System Generator Black Box configuration M-function.
You can use the XSG subsystem in a Simulink® model, or use the Black Box block and Black Box configuration M-function in a Xilinx System Generator design.
To learn more about generating a System Generator Black Box block, see Using Xilinx System Generator for DSP with HDL Coder.