mirror of https://github.com/zachjs/sv2v.git
remove iverilog workaround from typeof_scope.sv
With steveicarus/iverilog#483 resolved, this workaround is no longer necessary.
This commit is contained in:
parent
429dc5afec
commit
70ec448a31
|
|
@ -1,7 +1,5 @@
|
||||||
`define TYPEOF(x) wire [$bits(x) - 1:0]
|
`define TYPEOF(x) wire [$bits(x) - 1:0]
|
||||||
|
|
||||||
// The `REF` sections of this test are workarounds for steveicarus/iverilog#483
|
|
||||||
|
|
||||||
module top;
|
module top;
|
||||||
genvar i;
|
genvar i;
|
||||||
if (1) begin : blk
|
if (1) begin : blk
|
||||||
|
|
@ -25,11 +23,7 @@ module top;
|
||||||
`TYPEOF(prev[z].x) x;
|
`TYPEOF(prev[z].x) x;
|
||||||
if (1) begin : e
|
if (1) begin : e
|
||||||
localparam i = 0;
|
localparam i = 0;
|
||||||
`ifdef REF
|
|
||||||
localparam j = 3;
|
|
||||||
`else
|
|
||||||
localparam j = $bits(blk.loop[i].a.b.c.d.x);
|
localparam j = $bits(blk.loop[i].a.b.c.d.x);
|
||||||
`endif
|
|
||||||
wire [j-1:0] y;
|
wire [j-1:0] y;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -39,16 +33,6 @@ module top;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
`ifdef REF
|
|
||||||
wire [1*2:0] a;
|
|
||||||
wire [2*2:0] b;
|
|
||||||
wire [1*2:0] c;
|
|
||||||
wire [2*2:0] d;
|
|
||||||
wire [1*2:0] e;
|
|
||||||
wire [2*2:0] f;
|
|
||||||
wire [1*2:0] g;
|
|
||||||
wire [1*2:0] h;
|
|
||||||
`else
|
|
||||||
`TYPEOF(blk.loop[0].x) a;
|
`TYPEOF(blk.loop[0].x) a;
|
||||||
`TYPEOF(blk.loop[1].x) b;
|
`TYPEOF(blk.loop[1].x) b;
|
||||||
`TYPEOF(blk.loop[0].a.b.x) c;
|
`TYPEOF(blk.loop[0].a.b.x) c;
|
||||||
|
|
@ -57,7 +41,6 @@ module top;
|
||||||
`TYPEOF(blk.loop[1].a.b.c.d.x) f;
|
`TYPEOF(blk.loop[1].a.b.c.d.x) f;
|
||||||
`TYPEOF(blk.loop[0].a.b.c.d.e.y) g;
|
`TYPEOF(blk.loop[0].a.b.c.d.e.y) g;
|
||||||
`TYPEOF(blk.loop[1].a.b.c.d.e.y) h;
|
`TYPEOF(blk.loop[1].a.b.c.d.e.y) h;
|
||||||
`endif
|
|
||||||
|
|
||||||
`define DUMP(x) assign x = 1; initial $display(`"x: %b (%0d bits)`", x, $bits(x));
|
`define DUMP(x) assign x = 1; initial $display(`"x: %b (%0d bits)`", x, $bits(x));
|
||||||
`DUMP(a) `DUMP(b) `DUMP(c) `DUMP(d) `DUMP(e) `DUMP(f) `DUMP(g) `DUMP(h)
|
`DUMP(a) `DUMP(b) `DUMP(c) `DUMP(d) `DUMP(e) `DUMP(f) `DUMP(g) `DUMP(h)
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
`define REF 1
|
|
||||||
`include "typeof_scope.sv"
|
|
||||||
Loading…
Reference in New Issue