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

Renamed wr_flush_en into ctlr_wr_flush_en.

parent b7ad1c0d
No related branches found
No related tags found
No related merge requests found
...@@ -50,14 +50,14 @@ ENTITY io_ddr_driver_flush_ctrl IS ...@@ -50,14 +50,14 @@ ENTITY io_ddr_driver_flush_ctrl IS
clk : IN STD_LOGIC; clk : IN STD_LOGIC;
rst : IN STD_LOGIC; rst : IN STD_LOGIC;
dvr_flush_en : IN STD_LOGIC := '1';
dvr_en : IN STD_LOGIC := '1'; dvr_en : IN STD_LOGIC := '1';
dvr_wr_not_rd : IN STD_LOGIC;
dvr_done : IN STD_LOGIC; dvr_done : IN STD_LOGIC;
dvr_wr_flush_en : IN STD_LOGIC := '1';
dvr_wr_not_rd : IN STD_LOGIC;
wr_sosi : IN t_dp_sosi; wr_sosi : IN t_dp_sosi;
wr_flush_en : OUT STD_LOGIC ctlr_wr_flush_en : OUT STD_LOGIC
); );
END io_ddr_driver_flush_ctrl; END io_ddr_driver_flush_ctrl;
...@@ -101,23 +101,23 @@ BEGIN ...@@ -101,23 +101,23 @@ BEGIN
END IF; END IF;
END PROCESS; END PROCESS;
p_state : PROCESS(state, dvr_flush_en, dvr_done, dvr_en, dvr_wr_not_rd, flush_dis) p_state : PROCESS(state, dvr_wr_flush_en, dvr_done, dvr_en, dvr_wr_not_rd, flush_dis)
BEGIN BEGIN
nxt_state <= state; nxt_state <= state;
wr_flush_en <= '0'; ctlr_wr_flush_en <= '0';
CASE state IS CASE state IS
WHEN s_idle => WHEN s_idle =>
IF dvr_flush_en='1' AND dvr_done='1' THEN IF dvr_wr_flush_en='1' AND dvr_done='1' THEN
wr_flush_en <= '1'; ctlr_wr_flush_en <= '1';
nxt_state <= s_flush; nxt_state <= s_flush;
END IF; END IF;
WHEN s_flush => WHEN s_flush =>
wr_flush_en <= '1'; ctlr_wr_flush_en <= '1';
IF dvr_en='1' AND dvr_wr_not_rd='1' THEN IF dvr_en='1' AND dvr_wr_not_rd='1' THEN
nxt_state <= s_stop; nxt_state <= s_stop;
END IF; END IF;
WHEN OTHERS => -- s_stop WHEN OTHERS => -- s_stop
wr_flush_en <= '1'; ctlr_wr_flush_en <= '1';
IF flush_dis = '1' THEN IF flush_dis = '1' THEN
nxt_state <= s_idle; nxt_state <= s_idle;
END IF; END IF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment