]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
Allow hub with less ports than 2
authorJan Michel <j.michel@gsi.de>
Tue, 26 Sep 2017 08:32:52 +0000 (10:32 +0200)
committerJan Michel <j.michel@gsi.de>
Tue, 26 Sep 2017 08:32:52 +0000 (10:32 +0200)
trb_net16_hub_streaming_port_sctrl_cts.vhd

index 34edb6720615edd3912f4cf4ede18af79b5043bb..d86f376c3573cdabfbb83c02913ffbbfb6ac2c6a 100644 (file)
@@ -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;