Open fischphob opened 2 years ago
Verilog::SigParser calls the import() callback on these, but presently Verilog::Netlist does not use that callback to remember the packages.
If you would like to submit a pull request to record this information, I'd welcome including it. It is unlikely it will get added otherwise, sorry.
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:
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?