diff --git a/rtl/arp_eth_rx.v b/rtl/arp_eth_rx.v index 1bac60c6f..4366ede3a 100644 --- a/rtl/arp_eth_rx.v +++ b/rtl/arp_eth_rx.v @@ -86,11 +86,13 @@ module arp_eth_rx # output wire error_invalid_header ); -parameter CYCLE_COUNT = (28+KEEP_WIDTH-1)/KEEP_WIDTH; +parameter HDR_SIZE = 28; + +parameter CYCLE_COUNT = (HDR_SIZE+KEEP_WIDTH-1)/KEEP_WIDTH; parameter PTR_WIDTH = $clog2(CYCLE_COUNT); -parameter OFFSET = 28 % KEEP_WIDTH; +parameter OFFSET = HDR_SIZE % KEEP_WIDTH; // bus width assertions initial begin diff --git a/rtl/arp_eth_tx.v b/rtl/arp_eth_tx.v index cd5400505..535c397c3 100644 --- a/rtl/arp_eth_tx.v +++ b/rtl/arp_eth_tx.v @@ -82,11 +82,13 @@ module arp_eth_tx # output wire busy ); -parameter CYCLE_COUNT = (28+KEEP_WIDTH-1)/KEEP_WIDTH; +parameter HDR_SIZE = 28; + +parameter CYCLE_COUNT = (HDR_SIZE+KEEP_WIDTH-1)/KEEP_WIDTH; parameter PTR_WIDTH = $clog2(CYCLE_COUNT); -parameter OFFSET = 28 % KEEP_WIDTH; +parameter OFFSET = HDR_SIZE % KEEP_WIDTH; // bus width assertions initial begin diff --git a/rtl/eth_axis_rx.v b/rtl/eth_axis_rx.v index 3501841d1..2c713935b 100644 --- a/rtl/eth_axis_rx.v +++ b/rtl/eth_axis_rx.v @@ -77,11 +77,13 @@ module eth_axis_rx # output wire error_header_early_termination ); -parameter CYCLE_COUNT = (14+KEEP_WIDTH-1)/KEEP_WIDTH; +parameter HDR_SIZE = 14; + +parameter CYCLE_COUNT = (HDR_SIZE+KEEP_WIDTH-1)/KEEP_WIDTH; parameter PTR_WIDTH = $clog2(CYCLE_COUNT); -parameter OFFSET = 14 % KEEP_WIDTH; +parameter OFFSET = HDR_SIZE % KEEP_WIDTH; // bus width assertions initial begin diff --git a/rtl/eth_axis_tx.v b/rtl/eth_axis_tx.v index fa742a62b..f0ee5f16a 100644 --- a/rtl/eth_axis_tx.v +++ b/rtl/eth_axis_tx.v @@ -76,11 +76,13 @@ module eth_axis_tx # output wire busy ); -parameter CYCLE_COUNT = (14+KEEP_WIDTH-1)/KEEP_WIDTH; +parameter HDR_SIZE = 14; + +parameter CYCLE_COUNT = (HDR_SIZE+KEEP_WIDTH-1)/KEEP_WIDTH; parameter PTR_WIDTH = $clog2(CYCLE_COUNT); -parameter OFFSET = 14 % KEEP_WIDTH; +parameter OFFSET = HDR_SIZE % KEEP_WIDTH; // bus width assertions initial begin