mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-03 16:39:06 +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
19 lines
356 B
Systemverilog
19 lines
356 B
Systemverilog
module ExampleA;
|
|
typedef enum logic {
|
|
A = 1,
|
|
B = 0,
|
|
C = 2
|
|
} Enum;
|
|
Enum x = A;
|
|
initial $display("ExampleA: x=%b, A=%b, B=%b", x, A, B);
|
|
endmodule
|
|
|
|
module ExampleB;
|
|
typedef enum logic {
|
|
A = 0,
|
|
B = 1
|
|
} Enum;
|
|
Enum x = A;
|
|
initial $display("ExampleB: x=%b, A=%b, B=%b", x, A, B);
|
|
endmodule
|