mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-03 08:33:46 +02:00
standardize pattern conversion
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package PKG;
|
||||
typedef struct packed {
|
||||
logic f;
|
||||
} foo_t;
|
||||
endpackage
|
||||
|
||||
module top;
|
||||
typedef struct packed {
|
||||
PKG::foo_t f;
|
||||
} local_t;
|
||||
local_t w[0:1];
|
||||
initial begin
|
||||
w <= '{default: 0};
|
||||
$display("%b", w);
|
||||
end
|
||||
endmodule
|
||||
@@ -0,0 +1,7 @@
|
||||
module top;
|
||||
reg [1:0] w;
|
||||
initial begin
|
||||
w <= 2'b00;
|
||||
$display("%b", w);
|
||||
end
|
||||
endmodule
|
||||
Reference in New Issue
Block a user