Skip to content

Commit ada2100

Browse files
authored
Merge pull request #631 from diffblue/indexed-part-select4
SystemVerilog: KNOWNBUG test for indexed part select lhs
2 parents cca88cd + 0c34ed7 commit ada2100

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
indexed-part-select4.sv
3+
--bound 0
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
Synthesis-time constant folding for the index does not work.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module main(input my_input);
2+
3+
bit [7:0] some_wire;
4+
5+
always @my_input begin
6+
integer i;
7+
for(i=0; i<4; i++)
8+
// part select with index known at synthesis time
9+
some_wire[i * 2 +: 2] = 'b01;
10+
end
11+
12+
p0: assert final (some_wire == 'b01_01_01_01);
13+
14+
endmodule

0 commit comments

Comments
 (0)