Skip to content

Commit e47f2df

Browse files
committed
Merge branch 'kondys_fix_tsdemo_inf_widths' into 'devel'
fix: adjust width of signals/ports for TS Demo See merge request ndk/ndk-fpga!188
2 parents c09d38d + f14b8fc commit e47f2df

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

core/comp/app/application_ent.vhd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ port (
239239

240240
-- This interface is to transmit Channel IDs and Timestamps of packets
241241
-- from the APP Core to the demo/testing logic in the Network Mod Core (E-Tile).
242-
ETH_TX_MVB_CHANNEL : out std_logic_vector(ETH_STREAMS* MFB_REGIONS*log2(DMA_TX_CHANNELS)-1 downto 0);
242+
ETH_TX_MVB_CHANNEL : out std_logic_vector(ETH_STREAMS* MFB_REGIONS*log2(DMA_TX_CHANNELS/(ETH_STREAMS/DMA_STREAMS))-1 downto 0);
243243
ETH_TX_MVB_TIMESTAMP : out std_logic_vector(ETH_STREAMS* MFB_REGIONS*48-1 downto 0);
244244
ETH_TX_MVB_VLD : out std_logic_vector(ETH_STREAMS* MFB_REGIONS-1 downto 0) := (others => '0');
245245

core/comp/eth/network_mod/network_mod_ent.vhd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ generic(
8080
-- The measured data is presented to the user via a couple of dedicated registers.
8181
-- WARNING: works only for a single-channel (and single-Region) designs with E-Tile (Intel)!
8282
TS_DEMO_EN : boolean := false;
83+
-- TX_DMA_CHANNELS per Eth Stream!
8384
TX_DMA_CHANNELS : natural := 16;
8485
-- Enable low latency optimalization
8586
LL_MODE : boolean := false;

core/top/fpga_common.vhd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ architecture FULL of FPGA_COMMON is
639639
signal eth_tx_mfb_src_rdy : std_logic_vector(ETH_STREAMS-1 downto 0);
640640
signal eth_tx_mfb_dst_rdy : std_logic_vector(ETH_STREAMS-1 downto 0) := (others => '1');
641641

642-
signal eth_tx_mvb_channel : std_logic_vector(ETH_STREAMS*ETH_MFB_REGIONS*log2(DMA_TX_CHANNELS)-1 downto 0);
642+
signal eth_tx_mvb_channel : std_logic_vector(ETH_STREAMS*ETH_MFB_REGIONS*log2(DMA_TX_CHANNELS/(ETH_STREAMS/DMA_STREAMS))-1 downto 0);
643643
signal eth_tx_mvb_timestamp_vld : std_logic_vector(ETH_STREAMS*ETH_MFB_REGIONS*48-1 downto 0);
644644
signal eth_tx_mvb_vld : std_logic_vector(ETH_STREAMS*ETH_MFB_REGIONS-1 downto 0);
645645

@@ -1591,7 +1591,7 @@ begin
15911591

15921592
LL_MODE => LL_MODE ,
15931593
TS_DEMO_EN => TS_DEMO_EN ,
1594-
TX_DMA_CHANNELS => DMA_TX_CHANNELS,
1594+
TX_DMA_CHANNELS => DMA_TX_CHANNELS/(ETH_STREAMS/DMA_STREAMS),
15951595

15961596
LANE_RX_POLARITY => ETH_LANE_RXPOLARITY,
15971597
LANE_TX_POLARITY => ETH_LANE_TXPOLARITY,

0 commit comments

Comments
 (0)