mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 09:28:12 +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
20 lines
353 B
Systemverilog
20 lines
353 B
Systemverilog
// pattern: import of Q::X conflicts with prior import of P::X
|
|
package P;
|
|
localparam X = 1;
|
|
endpackage
|
|
package Q;
|
|
localparam X = 2;
|
|
endpackage
|
|
package W;
|
|
import P::*;
|
|
export P::*;
|
|
task help;
|
|
$display("W::help() %0d", X);
|
|
endtask
|
|
import Q::X;
|
|
endpackage
|
|
module top;
|
|
import W::*;
|
|
initial $display(X);
|
|
endmodule
|