From 79ba1f6d17c78d1efa0a0c88cb5ea83d0c6114a9 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Thu, 24 May 2012 11:31:23 +0000 Subject: [PATCH] *** empty log message *** --- trb_net16_hub_streaming_port_sctrl.vhd | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/trb_net16_hub_streaming_port_sctrl.vhd b/trb_net16_hub_streaming_port_sctrl.vhd index babd31f..c327c57 100644 --- a/trb_net16_hub_streaming_port_sctrl.vhd +++ b/trb_net16_hub_streaming_port_sctrl.vhd @@ -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 -- 2.43.0