mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-31 01:34:16 +02:00
- full import and export support - simplify AST representation of import and export - allow package-scoped identifiers invoked as subroutines - use scoped name resolution for identifiers in packages - merge package item nesting conversion into package conversion - fix handling of colliding enum items in separate modules - fix visiting enum item exprs in types
12 lines
235 B
Systemverilog
12 lines
235 B
Systemverilog
// pattern: export of PkgA::Bar, but Bar was never imported
|
|
package PkgA;
|
|
localparam Bar = 2;
|
|
endpackage
|
|
package PkgB;
|
|
export PkgA::Bar;
|
|
localparam Foo = 1;
|
|
endpackage
|
|
module top;
|
|
initial $display(PkgB::Foo);
|
|
endmodule
|