Skip to content
Snippets Groups Projects
Commit c1eceba0 authored by Dimitris Lampridis's avatar Dimitris Lampridis
Browse files

hdl: add label and fix sensitivity list for p_rd_ptr_mux process in inferred sync fifo

parent c8205156
No related branches found
No related tags found
No related merge requests found
...@@ -81,12 +81,12 @@ architecture syn of inferred_sync_fifo is ...@@ -81,12 +81,12 @@ architecture syn of inferred_sync_fifo is
signal guard_bit : std_logic; signal guard_bit : std_logic;
signal q_comb : std_logic_vector(g_data_width-1 downto 0); signal q_comb : std_logic_vector(g_data_width-1 downto 0);
begin -- syn begin -- syn
we_int <= we_i and not full; we_int <= we_i and not full;
rd_int <= rd_i and not empty; rd_int <= rd_i and not empty;
U_FIFO_Ram : generic_dpram U_FIFO_Ram : generic_dpram
generic map ( generic map (
g_data_width => g_data_width, g_data_width => g_data_width,
...@@ -104,7 +104,7 @@ begin -- syn ...@@ -104,7 +104,7 @@ begin -- syn
ab_i => std_logic_vector(rd_ptr_muxed(c_pointer_width-1 downto 0)), ab_i => std_logic_vector(rd_ptr_muxed(c_pointer_width-1 downto 0)),
qb_o => q_comb); qb_o => q_comb);
process(rd_ptr, rd_i, rd_int) p_rd_ptr_mux: process(rd_int, rd_ptr)
begin begin
if(rd_int = '1' and g_show_ahead) then if(rd_int = '1' and g_show_ahead) then
rd_ptr_muxed <= rd_ptr + 1; rd_ptr_muxed <= rd_ptr + 1;
...@@ -113,7 +113,7 @@ begin -- syn ...@@ -113,7 +113,7 @@ begin -- syn
else else
rd_ptr_muxed <= rd_ptr - 1; rd_ptr_muxed <= rd_ptr - 1;
end if; end if;
end process; end process p_rd_ptr_mux;
q_o <= q_comb; q_o <= q_comb;
...@@ -173,7 +173,7 @@ begin -- syn ...@@ -173,7 +173,7 @@ begin -- syn
p_reg_flags : process(clk_i) p_reg_flags : process(clk_i)
begin begin
if rising_edge(clk_i) then if rising_edge(clk_i) then
if(rst_n_i = '0') then if(rst_n_i = '0') then
full <= '0'; full <= '0';
empty <= '1'; empty <= '1';
...@@ -190,7 +190,7 @@ begin -- syn ...@@ -190,7 +190,7 @@ begin -- syn
full <= '0'; full <= '0';
end if; end if;
end if; end if;
end if; end if;
end process; end process;
end generate gen_registered_flags; end generate gen_registered_flags;
......
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