mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-31 09:44:27 +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
17 lines
324 B
Systemverilog
17 lines
324 B
Systemverilog
// pattern: export of Bar::Foo differs from import of Foo::Foo
|
|
package Bar;
|
|
localparam Bar = 1;
|
|
localparam Foo = 3;
|
|
endpackage
|
|
package Foo;
|
|
localparam Foo = 2;
|
|
endpackage
|
|
package Pkg;
|
|
import Foo::Foo;
|
|
import Bar::Bar;
|
|
export Bar::Foo;
|
|
endpackage
|
|
module top;
|
|
initial $display(Pkg::Foo);
|
|
endmodule
|