Skip to content

Commit a96935d

Browse files
author
lynn0p
committed
consolidated capture into one process and added comments
git-svn-id: http://opencores.org/ocsvn/sdram_controller/sdram_controller/trunk@11 19bbdc3a-1baa-45d8-9470-d67abc9650d9
1 parent 7cac5c2 commit a96935d

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

sdram.vhd

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -458,30 +458,14 @@ begin
458458
dram_cs <= '0';
459459
data_o <= data1_o when addr_save(0) = '1' else data0_o;
460460

461-
-- capture the addr when op is captured by cmd fsm
461+
-- capture addr, data_i and op for the cmd fsm
462+
-- op needs capture during AR or it might get dropped
462463
process (clk_000)
463464
begin
464465
if (rising_edge(clk_000)) then
465466
if (cap_en = '1') then
466467
addr_save <= addr;
467-
end if;
468-
end if;
469-
end process;
470-
471-
-- capture data_i when op is captured by cmd fsm
472-
process (clk_000)
473-
begin
474-
if (rising_edge(clk_000)) then
475-
if (cap_en = '1') then
476468
datai_save <= data_i;
477-
end if;
478-
end if;
479-
end process;
480-
481-
process (clk_000)
482-
begin
483-
if (rising_edge(clk_000)) then
484-
if (cap_en = '1') then
485469
op_save <= op;
486470
end if;
487471
end if;

0 commit comments

Comments
 (0)