aboutsummaryrefslogtreecommitdiffstats
path: root/tests/verilog/mem_bounds.ys
diff options
context:
space:
mode:
authorZachary Snow <zach@zachjs.com>2021-05-26 18:22:31 -0400
committerZachary Snow <zachary.j.snow@gmail.com>2021-06-08 15:02:57 -0400
commitc79fbfe0a130f1a2979413174c3e5688433bafe3 (patch)
tree4779bf4befa1f9459d96566a3ff70af287bb5aa4 /tests/verilog/mem_bounds.ys
parentd9f11bb7a631ad309b9328d33b2f41a4987b6222 (diff)
downloadyosys-c79fbfe0a130f1a2979413174c3e5688433bafe3.tar.gz
yosys-c79fbfe0a130f1a2979413174c3e5688433bafe3.tar.bz2
yosys-c79fbfe0a130f1a2979413174c3e5688433bafe3.zip
mem2reg: tolerate out of bounds constant accesses
This brings the mem2reg behavior in line with the nomem2reg behavior.
Diffstat (limited to 'tests/verilog/mem_bounds.ys')
-rw-r--r--tests/verilog/mem_bounds.ys6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/verilog/mem_bounds.ys b/tests/verilog/mem_bounds.ys
new file mode 100644
index 000000000..42623ad09
--- /dev/null
+++ b/tests/verilog/mem_bounds.ys
@@ -0,0 +1,6 @@
+read_verilog -sv -mem2reg mem_bounds.sv
+proc
+flatten
+opt -full
+select -module top
+sat -verify -seq 1 -tempinduct -prove-asserts -show-all -enable_undef