Skip to content

Commit 8a8003e

Browse files
committed
Reset command state machine on reset
1 parent cc432b8 commit 8a8003e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdram.vhd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ begin
474474
process (clk_000)
475475
begin
476476
if (rising_edge(clk_000)) then
477-
if (dcm_locked = '1') then
477+
if (reset = '1') then
478+
cmd_state <= STATE_START;
479+
elsif (dcm_locked = '1') then
478480
case cmd_state is
479481
when STATE_START =>
480482
busy_n <= '0';

0 commit comments

Comments
 (0)