Skip to content
Snippets Groups Projects
Commit 9a98b562 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Rename wr_flush into wr_flush_en.

parent d61c490e
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ ENTITY io_ddr_driver_flush_ctrl IS
wr_sosi : IN t_dp_sosi;
wr_flush : OUT STD_LOGIC
wr_flush_en : OUT STD_LOGIC
);
END io_ddr_driver_flush_ctrl;
......@@ -104,20 +104,20 @@ BEGIN
p_state : PROCESS(state, dvr_flush_en, dvr_done, dvr_en, dvr_wr_not_rd, flush_dis)
BEGIN
nxt_state <= state;
wr_flush <= '0';
wr_flush_en <= '0';
CASE state IS
WHEN s_idle =>
IF dvr_flush_en='1' AND dvr_done='1' THEN
wr_flush <= '1';
wr_flush_en <= '1';
nxt_state <= s_flush;
END IF;
WHEN s_flush =>
wr_flush <= '1';
wr_flush_en <= '1';
IF dvr_en='1' AND dvr_wr_not_rd='1' THEN
nxt_state <= s_stop;
END IF;
WHEN OTHERS => -- s_stop
wr_flush <= '1';
wr_flush_en <= '1';
IF flush_dis = '1' THEN
nxt_state <= s_idle;
END IF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment