Skip to content
Snippets Groups Projects
Commit f22bf57b authored by Zanting's avatar Zanting
Browse files

Changed library for common_mult

parent de93efe6
No related branches found
No related tags found
No related merge requests found
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
-- --
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
LIBRARY IEEE, common_lib; LIBRARY IEEE, common_lib, common_mult_lib, technology_lib;
USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.NUMERIC_STD.ALL; USE IEEE.NUMERIC_STD.ALL;
USE technology_lib.technology_select_pkg.ALL;
USE common_lib.common_pkg.ALL; USE common_lib.common_pkg.ALL;
USE common_lib.common_field_pkg.ALL; USE common_lib.common_field_pkg.ALL;
...@@ -69,6 +70,8 @@ ARCHITECTURE str OF dp_offload_tx_len_calc IS ...@@ -69,6 +70,8 @@ ARCHITECTURE str OF dp_offload_tx_len_calc IS
CONSTANT c_shift_left_int : INTEGER := -1 * c_nof_bits_to_shift; CONSTANT c_shift_left_int : INTEGER := -1 * c_nof_bits_to_shift;
CONSTANT c_adder_in_w : NATURAL := 16; CONSTANT c_adder_in_w : NATURAL := 16;
CONSTANT c_technology : NATURAL := c_tech_select_default;
SIGNAL nof_data_words : STD_LOGIC_VECTOR(c_product_w-1 DOWNTO 0); SIGNAL nof_data_words : STD_LOGIC_VECTOR(c_product_w-1 DOWNTO 0);
SIGNAL nof_data_bytes : STD_LOGIC_VECTOR(c_product_w+c_nof_bits_to_shift-1 DOWNTO 0); SIGNAL nof_data_bytes : STD_LOGIC_VECTOR(c_product_w+c_nof_bits_to_shift-1 DOWNTO 0);
...@@ -83,8 +86,10 @@ BEGIN ...@@ -83,8 +86,10 @@ BEGIN
--------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------
-- Calculate number of payload words -- Calculate number of payload words
--------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------
u_common_mult: ENTITY common_lib.common_mult(rtl) u_common_mult: ENTITY common_mult_lib.common_mult
GENERIC MAP ( GENERIC MAP (
g_technology => c_technology,
g_variant => "RTL",
g_in_a_w => nof_words_per_block'LENGTH, g_in_a_w => nof_words_per_block'LENGTH,
g_in_b_w => nof_blocks_per_packet'LENGTH, g_in_b_w => nof_blocks_per_packet'LENGTH,
g_out_p_w => c_product_w, g_out_p_w => c_product_w,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment