diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-09-08 11:16:12 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-09-08 11:16:12 +0200 |
commit | 14bfd3c5c159626a2b3b8dec3a446e0f7c4c7e0c (patch) | |
tree | 2172481d66d33929dba269dcbe8905a3b81d9221 /examples/smtbmc/demo7.v | |
parent | 209a3d9ffcb5f7efbe60b0e0d45755329532535e (diff) | |
download | yosys-14bfd3c5c159626a2b3b8dec3a446e0f7c4c7e0c.tar.gz yosys-14bfd3c5c159626a2b3b8dec3a446e0f7c4c7e0c.tar.bz2 yosys-14bfd3c5c159626a2b3b8dec3a446e0f7c4c7e0c.zip |
yosys-smtbmc meminit support
Diffstat (limited to 'examples/smtbmc/demo7.v')
-rw-r--r-- | examples/smtbmc/demo7.v | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/smtbmc/demo7.v b/examples/smtbmc/demo7.v new file mode 100644 index 000000000..75b3865c5 --- /dev/null +++ b/examples/smtbmc/demo7.v @@ -0,0 +1,18 @@ +// Demo for memory initialization + +module demo7 (input [2:0] addr); + reg [15:0] memory [0:7]; + + initial begin + memory[0] = 1331; + memory[1] = 1331 + 1; + memory[2] = 1331 + 2; + memory[3] = 1331 + 4; + memory[4] = 1331 + 8; + memory[5] = 1331 + 16; + memory[6] = 1331 + 32; + memory[7] = 1331 + 64; + end + + assert property (1000 < memory[addr] && memory[addr] < 2000); +endmodule |