Skip to content

Commit

Permalink
remove iverilog workaround from typeof_scope.sv
Browse files Browse the repository at this point in the history
With steveicarus/iverilog#483 resolved, this workaround is no longer
necessary.
  • Loading branch information
zachjs committed May 8, 2024
1 parent 429dc5a commit 70ec448
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions test/core/typeof_scope.sv → test/basic/typeof_scope.sv
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
`define TYPEOF(x) wire [$bits(x) - 1:0]

// The `REF` sections of this test are workarounds for steveicarus/iverilog#483

module top;
genvar i;
if (1) begin : blk
Expand All @@ -25,11 +23,7 @@ module top;
`TYPEOF(prev[z].x) x;
if (1) begin : e
localparam i = 0;
`ifdef REF
localparam j = 3;
`else
localparam j = $bits(blk.loop[i].a.b.c.d.x);
`endif
wire [j-1:0] y;
end
end
Expand All @@ -39,16 +33,6 @@ module top;
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[1].x) b;
`TYPEOF(blk.loop[0].a.b.x) c;
Expand All @@ -57,7 +41,6 @@ module top;
`TYPEOF(blk.loop[1].a.b.c.d.x) f;
`TYPEOF(blk.loop[0].a.b.c.d.e.y) g;
`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));
`DUMP(a) `DUMP(b) `DUMP(c) `DUMP(d) `DUMP(e) `DUMP(f) `DUMP(g) `DUMP(h)
Expand Down
2 changes: 0 additions & 2 deletions test/core/typeof_scope.v

This file was deleted.

0 comments on commit 70ec448

Please sign in to comment.