aboutsummaryrefslogtreecommitdiffstats
path: root/tests/memories/issue00710.v
blob: 7a5fad1c21c65ad9906f53aa0f04a9cbf23cf274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// expect-wr-ports 1
// expect-rd-ports 1
// expect-rd-clk \clk

module top(input clk, input we, re, reset, input [7:0] addr, wdata, output reg [7:0] rdata);

reg [7:0] bram[0:255];
(* keep *) reg dummy;

always @(posedge clk)
	if (reset)
		dummy <= 1'b0;
	else if (re)
		rdata <= bram[addr];
	else if (we)
		bram[addr] <= wdata;
endmodule