blob: e2c331be1b0997804fdd963b0845dbcb9c9f77a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module top;
localparam W = 5;
typedef logic [W-1:0] T;
T x; // width 5
if (1) begin : blk
localparam W = 10;
typedef T U;
typedef logic [W-1:0] V;
U y; // width 5
V z; // width 10
end
endmodule
|