]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
*** empty log message ***
authorhadeshyp <hadeshyp>
Thu, 24 May 2012 11:31:23 +0000 (11:31 +0000)
committerhadeshyp <hadeshyp>
Thu, 24 May 2012 11:31:23 +0000 (11:31 +0000)
trb_net16_hub_streaming_port_sctrl.vhd

index babd31f0aac7cf3217c1e86af5660e0068d77988..c327c574b4754b872ccc899e0b8d377e2094019d 100644 (file)
@@ -42,7 +42,7 @@ entity trb_net16_hub_streaming_port_sctrl is
     USE_ONEWIRE             : integer range 0 to 2 := c_YES;
     BROADCAST_SPECIAL_ADDR  : std_logic_vector(7 downto 0) := x"FF";
   --media interfaces
-    MII_NUMBER              : integer range 2 to c_MAX_MII_PER_HUB := 12;
+    MII_NUMBER              : integer range 2 to c_MAX_MII_PER_HUB := 5;
     MII_IS_UPLINK           : hub_mii_config_t := (others => c_YES);
     MII_IS_DOWNLINK         : hub_mii_config_t := (others => c_YES);
     MII_IS_UPLINK_ONLY      : hub_mii_config_t := (others => c_NO)
@@ -330,16 +330,16 @@ begin
 ---------------------------------------------------------------------
 -- I/O Buffers
 ---------------------------------------------------------------------
-
+--iobuf towards CTS, lvl1 channel
   THE_IOBUF_0 : trb_net16_iobuf
     generic map(
       IBUF_DEPTH             => 6,
       USE_ACKNOWLEDGE        => cfg_USE_ACKNOWLEDGE(0),
       USE_CHECKSUM           => cfg_USE_CHECKSUM(0),
-      INIT_CAN_SEND_DATA     => c_YES,
+      INIT_CAN_SEND_DATA     => c_NO,
       INIT_CAN_RECEIVE_DATA  => c_YES,
       REPLY_CAN_SEND_DATA    => c_YES,
-      REPLY_CAN_RECEIVE_DATA => c_YES
+      REPLY_CAN_RECEIVE_DATA => c_NO
       )
     port map(
       --  Misc
@@ -394,16 +394,16 @@ begin
       TIMER_TICKS_IN            => timer_ticks
       );
 
-
+--iobuf on streaming api, towards CTS, data channel
   THE_IOBUF_1 : trb_net16_iobuf
     generic map(
       IBUF_DEPTH             => 6,
       USE_ACKNOWLEDGE        => cfg_USE_ACKNOWLEDGE(1),
       USE_CHECKSUM           => cfg_USE_CHECKSUM(1),
-      INIT_CAN_SEND_DATA     => c_YES,
+      INIT_CAN_SEND_DATA     => c_NO,
       INIT_CAN_RECEIVE_DATA  => c_YES,
       REPLY_CAN_SEND_DATA    => c_YES,
-      REPLY_CAN_RECEIVE_DATA => c_YES
+      REPLY_CAN_RECEIVE_DATA => c_NO
       )
     port map(
       --  Misc
@@ -458,6 +458,7 @@ begin
       TIMER_TICKS_IN            => timer_ticks
       );
 
+--who cares about an unused channel?      
   THE_IOBUF_2 : trb_net16_term_buf
     port map (
       --  Misc
@@ -479,15 +480,16 @@ begin
       MED_READ_OUT       => io_read_out(2)
       );
 
+--iobuf towards CTS, slow control channel      
   THE_IOBUF_3 : trb_net16_iobuf
     generic map(
       IBUF_DEPTH             => 6,
       USE_ACKNOWLEDGE        => cfg_USE_ACKNOWLEDGE(3),
       USE_CHECKSUM           => cfg_USE_CHECKSUM(3),
-      INIT_CAN_SEND_DATA     => c_YES,
-      INIT_CAN_RECEIVE_DATA  => c_YES,
-      REPLY_CAN_SEND_DATA    => c_YES,
-      REPLY_CAN_RECEIVE_DATA => c_YES
+      INIT_CAN_SEND_DATA     => MII_IS_DOWNLINK(MII_NUMBER),
+      INIT_CAN_RECEIVE_DATA  => MII_IS_UPLINK(MII_NUMBER),
+      REPLY_CAN_SEND_DATA    => MII_IS_UPLINK(MII_NUMBER),
+      REPLY_CAN_RECEIVE_DATA => MII_IS_DOWNLINK(MII_NUMBER)
       )
     port map(
       --  Misc