mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-29 17:17:44 +02:00
additional param type conversion bug fixes
- general refactoring throughout - improved metrics for dropping unneeded modules - fix re-visiting a converted instance in the same pass
This commit is contained in:
@@ -15,7 +15,8 @@ module mod #(
|
||||
endmodule
|
||||
|
||||
module top;
|
||||
typedef struct packed { byte y; } W;
|
||||
parameter type BASE = byte;
|
||||
typedef struct packed { BASE y; } W;
|
||||
W w;
|
||||
typedef struct packed { type(w) x, y; } V;
|
||||
V v;
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
module mod #(
|
||||
parameter type T = logic
|
||||
);
|
||||
initial $display("$bits(T) = %0d", $bits(T));
|
||||
endmodule
|
||||
|
||||
module top;
|
||||
parameter SIZE = 8;
|
||||
mod #(logic [SIZE-1:0]) m();
|
||||
endmodule
|
||||
@@ -0,0 +1,10 @@
|
||||
module mod #(
|
||||
parameter S = 1
|
||||
);
|
||||
initial $display("$bits(T) = %0d", S);
|
||||
endmodule
|
||||
|
||||
module top;
|
||||
parameter SIZE = 8;
|
||||
mod #(SIZE) m();
|
||||
endmodule
|
||||
@@ -28,4 +28,4 @@ module top_2; bar #(byte, 3) x(); endmodule
|
||||
module top_3; foo #(bit, 4) x(); endmodule
|
||||
module top_4; bar #(bit, 5) x(); endmodule
|
||||
|
||||
module top; endmodule
|
||||
module top; foo x(); endmodule
|
||||
|
||||
@@ -48,4 +48,4 @@ module top_2; bar_byte #(3) x(); endmodule
|
||||
module top_3; foo_bit #(4) x(); endmodule
|
||||
module top_4; bar_bit #(5) x(); endmodule
|
||||
|
||||
module top; endmodule
|
||||
module top; foo_bit #(0) x(); endmodule
|
||||
|
||||
Reference in New Issue
Block a user