From: Jan Michel Date: Tue, 26 Sep 2017 08:32:52 +0000 (+0200) Subject: Allow hub with less ports than 2 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=65a035e6cad45b531b9439e32316b9b409fbbed3;p=trbnet.git Allow hub with less ports than 2 --- 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;