Hi,
I am trying to use RAMB16_S9 to store some data. Since this is my first time doing this, I am trying to test it to see how it works. I let wr_en = 1 for 256 cycle, and make wr_en = 0 for 256 clk cycle. But I am running into problem. It looks like the data never got written in or something. The data coming out is always 00000000. Can someone help? Thanks. This is what my code look like:
main module: counter mycounter (.clk(FPGA_CLK), .write_en(wr_en), .reset(1'b0));
RAMB16_S9 top_ram (.DO(user_DO), .ADDR(11'b00000001000), .CLK(FPGA_CLK), .DI(8'b00001000), .EN(1'b1), .SSR(1'b0), .WE(wr_en), .DIP(DIP), .DOP(DOP));
Counter module: parameter IDLE = 0, WRITE = 1, READ = 2, DONE = 3; always @(posedge clk) begin if (reset) begin count