verilog: add sv_maps iterators
[ghdl-vlg.git] / testsuite / synth / assign01 / mem02.v
blob96d9c7f1a3506ca353cb378c115811b20b2f5e1c
1 module mem02(output [0:7] r, input [0:7] v,
2 input[0:3] addr, input clk);
3 reg [7:0] mem [3:0];
5 always @(posedge clk)
6 mem[addr] <= v;
8 assign r = mem[addr];
9 endmodule