主页
> 支持
> 软件
> 综合工具
> LeonardoSpectrum
> Example of Creating a Black Box for a Verilog HDL Custom Megafunction Variation with the Leonardo Spectrum Software
Example of Creating a Black Box for a Verilog HDL Custom Megafunction Variation with the Leonardo Spectrum Software
To specify that the LeonardoSpectrum software should treat the cam_wrapper_v.v file, which you created in Example of Creating a Verilog HDL Custom Variation of the altcam Function, as a black box, refer to the following code sample from the top-level design file. In this example, the top-level design file is camsource.v. To modify the source code for the camsource.v file to define the module name and port type and to specify that the module is a black box, you can use the cam_wrapper_bb.v empty module declaration and add it to the camsource.v top-level design file as shown in the following code sample: