Importing a SystemVerilog Package File
Before you import SystemVerilog package files into your design for netlisting, ensure that your design has a package file, for example, global_package.sv, and a systemVerilog view that has imported this package file.
-
In the Library Manager window:
-
Create a new
systemVerilogPackageview by choosing File – New – Cell View.
The New File form opens. - Specify the library and cell name in their respective fields.
-
In the View list, select
systemVerilogPackage. -
Click OK.
The New File form closes, and the View list in the Library Manager shows the new view. -
Double-click the
systemVerilogPackageview.
The view opens with an empty package module in Virtuoso Text Editor.
-
Create a new
-
In the Virtuoso Text Editor window:
-
Choose File – Open.
The Open File form opens. -
Select the
global_package.svpackage file and open it in a new tab. -
Copy the contents of the package file and paste them into the package module of the
systemVerilogPackageview. -
Click the Check and Save button on the toolbar.
Correct any errors that are reported. -
Open the
systemVerilogview in a new tab.
This is the view that has imported the package file. -
Click the Check and Save icon on the toolbar.
Ensure that no errors are reported.
-
Choose File – Open.
-
In the SystemVerilog Netlister window:
-
In the Setting group box, click Open Option Form.
This opens the SystemVerilog Netlister Options form and shows the Netlister tab. - On the Netlister page, select Enable auto package importing.
- Click OK to close the SystemVerilog Netlister Options form.
-
In the Action group box, click Netlist.
Ensure that no errors are reported.
-
In the Setting group box, click Open Option Form.
The package file is imported into your design.
Related Topics
SystemVerilog Netlister Graphical User Interface
Return to top