Commit 221d1e40 authored by mcattin's avatar mcattin

Previous commit was data loss when writing to the DDR in burst smaller than…

Previous commit was data loss when writing to the DDR in burst smaller than c_DDR_BURST_LENGTH. Use wb_stb falling edge only on read cycles, use wb_we falling edge for write cycles.

git-svn-id: http://svn.ohwr.org/ddr3-sp6-core/trunk@85 739e5516-d4a2-47df-ba96-5610c1fa693f
parent 23cb58c1
......@@ -248,7 +248,8 @@ begin
else
ddr_cmd_en_d <= ddr_cmd_en;
if (((ddr_burst_cnt = c_DDR_BURST_LENGTH) or
(wb_stb_f_edge = '1')) and ddr_cmd_full_i = '0') and (ddr_cmd_en = '0')then
(wb_we_f_edge = '1') or
(wb_stb_f_edge = '1' and wb_we_d = '1')) and ddr_cmd_full_i = '0') and (ddr_cmd_en = '0')then
ddr_cmd_en <= '1'; -- might have problem if burst_cnt = BURST_LENGTH for more than 2 clk cycles
else
ddr_cmd_en <= '0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment