From 65a035e6cad45b531b9439e32316b9b409fbbed3 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 26 Sep 2017 10:32:52 +0200 Subject: [PATCH] Allow hub with less ports than 2 --- trb_net16_hub_streaming_port_sctrl_cts.vhd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trb_net16_hub_streaming_port_sctrl_cts.vhd b/trb_net16_hub_streaming_port_sctrl_cts.vhd index 34edb67..d86f376 100644 --- a/trb_net16_hub_streaming_port_sctrl_cts.vhd +++ b/trb_net16_hub_streaming_port_sctrl_cts.vhd @@ -64,7 +64,7 @@ entity trb_net16_hub_streaming_port_sctrl_cts is RDO_HEADER_BUFFER_DEPTH : integer range 9 to 14 := 9; RDO_HEADER_BUFFER_FULL_THRESH : integer range 2**8 to 2**14-2 := 2**8; --media interfaces & hub ports - MII_NUMBER : integer range 2 to c_MAX_MII_PER_HUB := 5; + MII_NUMBER : integer range 1 to c_MAX_MII_PER_HUB := 5; MII_IS_UPLINK : hub_mii_config_t := (0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0); MII_IS_DOWNLINK : hub_mii_config_t := (1,1,1,1,0,1,0,0,0,0,0,0,0,0,0,0,0); MII_IS_UPLINK_ONLY : hub_mii_config_t := (0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0); @@ -388,7 +388,7 @@ begin -- MED_CTRL_OP(15+mii*16) <= hub_make_network_reset; - hub_make_network_reset <= external_send_reset_long or MED_STAT_OP(15+4*16); --MED_STAT_OP(15) or MED_STAT_OP(15+(mii-1)*16); + hub_make_network_reset <= external_send_reset_long;-- or MED_STAT_OP(15+4*16); --MED_STAT_OP(15) or MED_STAT_OP(15+(mii-1)*16); make_gbe_reset : process begin wait until rising_edge(CLK); @@ -1143,4 +1143,4 @@ COMMON_STAT_REGS <= common_stat; -- STAT_DEBUG(7) <= '0'; -end architecture; \ No newline at end of file +end architecture; -- 2.43.0