-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Hi there,
we have a script based on Verilog::Netlist to parse existing SystemVerilog files and generate a black box (bbox) version of them. We can access the parameter and port lists to write them to the bbox file. No problems with that.
But, we often use the package import declaration in the header syntax, for example:
module test
import test_pkg::*; // g_dw definition
#(parameter integer c_param = 'd7)
(input [g_dw-1:0] data_in);
endmodule
I call the Verilog::Netlist read_file sub two times: first with the package file and second with the module file. No parsing problems so far.
But, how can I get a list with imported packages, so that I can write it to the bbox variant too?
Metadata
Metadata
Assignees
Labels
No labels