mirror of https://github.com/zachjs/sv2v.git
13 lines
264 B
Systemverilog
13 lines
264 B
Systemverilog
|
|
package P;
|
||
|
|
localparam int W = 4;
|
||
|
|
typedef logic [W - 1:0] T;
|
||
|
|
typedef enum T {
|
||
|
|
A = 4'b1010,
|
||
|
|
B = 4'b0101
|
||
|
|
} E;
|
||
|
|
endpackage
|
||
|
|
|
||
|
|
module top;
|
||
|
|
initial $display("%d %d %d %b %b", $bits(P::A), $bits(P::T), $bits(P::E), P::A, P::B);
|
||
|
|
endmodule
|