Download 18. Mentor Graphics Precision Synthesis Support
Transcript
18–18 Chapter 18: Mentor Graphics Precision Synthesis Support Guidelines for Altera Megafunctions and Architecture-Specific Features Instantiating Black Box IP Functions With Generated Verilog HDL Files You can use the syn_black_box or black_box compiler directives to declare a module as a black box. The top-level design files must contain the IP port mapping and a hollow-body module declaration. You can apply the directive to the module declaration in the top-level file or a separate file included in the project so that the Precision Synthesis software recognizes the module is a black box. 1 The syn_black_box and black_box directives are supported only on module or entity definitions. Example 18–10 shows a sample top-level file that instantiates my_verilogIP.v, which is a simplified customized variation generated by the MegaWizard Plug-In Manager and IP Toolbench. Example 18–10. Top-Level Verilog HDL Code with Black Box Instantiation of IP module top (clk, count); input clk; output[7:0] count; my_verilogIP verilogIP_inst (.clock (clk), .q (count)); endmodule // Module declaration // The following attribute is added to create a // black box for this module. module my_verilogIP (clock, q) /* synthesis syn_black_box */; input clock; output[7:0] q; endmodule Instantiating Black Box IP Functions With Generated VHDL Files You can use the syn_black_box or black_box compiler directives to declare a component as a black box. The top-level design files must contain the megafunction variation component declaration and port mapping. Apply the directive to the component declaration in the top-level file. 1 The syn_black_box and black_box directives are supported only on module or entity definitions. Quartus II Handbook Version 13.1 Volume 1: Design and Synthesis June 2012 Altera Corporation