Download Xilinx XST User Guide

Transcript
R
Black Box Support
Verilog Code
Following is the Verilog code for a black box.
These coding examples are accurate as of the date of publication. You can download any
updates to these examples from
ftp://ftp.xilinx.com/pub/documentation/misc/examples_v7.zip.
//
// Black Box
//
module v_my_block (in1, in2, dout);
input in1, in2;
output dout;
endmodule
module v_black_box_1 (DI_1, DI_2, DOUT);
input DI_1, DI_2;
output DOUT;
v_my_block inst (
.in1(DI_1),
.in2(DI_2),
.dout(DOUT));
endmodule
.
Note: Please refer to the VHDL/Verilog language reference manuals for more information on
component instantiation.
XST User Guide
8.1i
www.xilinx.com
261