mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-01 18:16:05 +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
14 lines
212 B
Systemverilog
14 lines
212 B
Systemverilog
package P;
|
|
localparam X = 1;
|
|
localparam Y = 2;
|
|
typedef enum {
|
|
A = X,
|
|
B = Y
|
|
} Enum;
|
|
endpackage
|
|
|
|
module top;
|
|
import P::*;
|
|
initial $display("%0d %0d %0d", X, A, B);
|
|
endmodule
|