Skip to content
Snippets Groups Projects
Commit 0aaa7af0 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix:Filter table alignment

* Table is now properly aligned
* Remove legacy tready (not used)
parents 73ef0ccf 48e5f8d5
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,6 @@ entity combpm_protocol_electron is ...@@ -18,7 +18,6 @@ entity combpm_protocol_electron is
-- AXIS interface -- AXIS interface
m_axis_m2s : out t_bpmpacket_axis_m2s; m_axis_m2s : out t_bpmpacket_axis_m2s;
m_axis_s2m : in t_bpmpacket_axis_s2m;
-- Status and control interface -- Status and control interface
soft_reset : in std_logic; -- Reset all counters. soft_reset : in std_logic; -- Reset all counters.
...@@ -260,15 +259,9 @@ begin ...@@ -260,15 +259,9 @@ begin
-- AXIS TVALID -- AXIS TVALID
m_axi_tvalid <= '1'; m_axi_tvalid <= '1';
else else
-- Acknowledge transfer
if m_axis_s2m.tready = '1' then
m_axi_tvalid <= '0'; m_axi_tvalid <= '0';
end if; end if;
end if; end if;
end if;
end process p_axis; end process p_axis;
------------------------ ------------------------
......
...@@ -95,7 +95,6 @@ architecture struct of top_combpm_electron is ...@@ -95,7 +95,6 @@ architecture struct of top_combpm_electron is
signal cdc_control_array_bpm : std_logic_vector(2 downto 0); -- CDC, clock bpm side signal cdc_control_array_bpm : std_logic_vector(2 downto 0); -- CDC, clock bpm side
signal m_axis_decoded_m2s : t_bpmpacket_axis_m2s; signal m_axis_decoded_m2s : t_bpmpacket_axis_m2s;
signal m_axis_decoded_s2m : t_bpmpacket_axis_s2m; -- warning: TREADY is ignored !
begin begin
...@@ -237,7 +236,6 @@ begin ...@@ -237,7 +236,6 @@ begin
gt_datarx => gt_datarx, gt_datarx => gt_datarx,
m_axis_m2s => m_axis_decoded_m2s, m_axis_m2s => m_axis_decoded_m2s,
m_axis_s2m => m_axis_decoded_s2m,
mc_time => mc_time, mc_time => mc_time,
soft_reset => addrmap_w.PROTOCOL.SOFTRESET.data(0), soft_reset => addrmap_w.PROTOCOL.SOFTRESET.data(0),
...@@ -350,12 +348,12 @@ begin ...@@ -350,12 +348,12 @@ begin
m_axis_tvalid => m_axis_tvalid, m_axis_tvalid => m_axis_tvalid,
-- Table configuration interface -- Table configuration interface
pi_table_en => addrmap_r.table.en, pi_table_en => addrmap_r.filtertable.en,
pi_table_we => addrmap_r.table.we, pi_table_we => addrmap_r.filtertable.we,
pi_table_addr => addrmap_r.table.addr(C_W_ADDR_TABLE-1 downto 0), pi_table_addr => addrmap_r.filtertable.addr(C_W_ADDR_TABLE-1 downto 0),
pi_table_data => addrmap_r.table.data, pi_table_data => addrmap_r.filtertable.data(7 downto 0),
po_table_data => addrmap_w.table.data po_table_data => addrmap_w.filtertable.data(7 downto 0)
); );
addrmap_w.filtertable.data(31 downto 8) <= (others => '0');
end architecture struct; end architecture struct;
...@@ -116,8 +116,8 @@ addrmap combpm { ...@@ -116,8 +116,8 @@ addrmap combpm {
external mem { external mem {
desc = "BPM filter table"; desc = "BPM filter table";
memwidth = 8; memwidth = 32;
mementries = 2**`C_W_ADDR_TABLE; mementries = 2**`C_W_ADDR_TABLE;
} TABLE @0x200; } FILTERTABLE;
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment