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

fix(addr):Fix table aligment

* Also change the name of the table.
* DESYRDL right shift the address by 2 before passing it to the memory.
  This is equivalent of having element of 32bits.
parent 725b1123
No related branches found
No related tags found
No related merge requests found
...@@ -348,12 +348,12 @@ begin ...@@ -348,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.
Finish editing this message first!
Please register or to comment