From b5988c331d77c9405346e2f593d43d108909142a Mon Sep 17 00:00:00 2001 From: Eric Kooistra <kooistra@astron.nl> Date: Wed, 26 Oct 2022 16:42:35 +0200 Subject: [PATCH] Add c_eth_reg_addr_span. --- libraries/io/eth/src/vhdl/eth_pkg.vhd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/io/eth/src/vhdl/eth_pkg.vhd b/libraries/io/eth/src/vhdl/eth_pkg.vhd index f8df9fb044..eb4f556c1b 100644 --- a/libraries/io/eth/src/vhdl/eth_pkg.vhd +++ b/libraries/io/eth/src/vhdl/eth_pkg.vhd @@ -204,9 +204,10 @@ PACKAGE eth_pkg IS c_eth_reg_config_nof_words + c_eth_reg_control_nof_words + c_eth_reg_frame_nof_words + - c_eth_reg_status_nof_words; - CONSTANT c_eth_reg_addr_w : NATURAL := ceil_log2(c_eth_reg_nof_words + 1); -- + 1 for c_eth_continue_wi - + c_eth_reg_status_nof_words; -- 4 + 4 + 1 + 1 + 1 = 11 + CONSTANT c_eth_reg_addr_w : NATURAL := ceil_log2(c_eth_reg_nof_words + 1); -- 11 + 1 for c_eth_continue_wi = 12 + CONSTANT c_eth_reg_addr_span : NATURAL := 2**c_eth_reg_addr_w; -- = 16 + ------------------------------------------------------------------------------ -- Definitions for ETH Rx packet buffer and Tx packet buffer ------------------------------------------------------------------------------ -- GitLab