Skip to content

Commit 66a241c

Browse files
authored
Merge pull request #509 from diffblue/synth-part-select
Verilog: move translation of part select expressions into synthesis phase
2 parents 1976274 + 491a289 commit 66a241c

File tree

5 files changed

+321
-128
lines changed

5 files changed

+321
-128
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
part_select1.sv
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module main;
2+
3+
reg [31:0] t;
4+
5+
always @(*) begin
6+
t = 0;
7+
8+
// out of bounds accesses are ignored
9+
t[0:-1] = 'b10;
10+
11+
// should pass
12+
assert(t == 1);
13+
end
14+
15+
endmodule

0 commit comments

Comments
 (0)