yosys/examples/smtbmc/demo7.v

20 lines
389 B
Verilog
Raw Normal View History

2016-09-08 04:16:12 -05:00
// Demo for memory initialization
2016-10-14 08:24:03 -05:00
module demo7;
wire [2:0] addr = $anyseq;
2016-09-08 04:16:12 -05:00
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