CN-121979831-A - Cross switch and application thereof in on-chip double-ring network
Abstract
The invention belongs to the technical field of chip design, and particularly relates to a cross switch and application thereof in an on-chip double-ring network. The invention discloses a control channel, which comprises a control virtual channel, a request arbitration module, an input port control module, an output port control module, a port state management module and a data selection module, wherein the control virtual channel is used for receiving a request of a transmitting end, the request arbitration module is used for arbitrating the request of the control virtual channel, the input port control module is used for feeding back an arbitration result of the request arbitration module and transmitting a data enabling signal to the transmitting end so as to control the transmitting end to transmit data to a cross switch matrix, the output port control module is used for controlling the data selection module to select a data path according to the arbitration result of the request arbitration module and control information of the virtual channel, and the data selection module is used for transmitting the data path selection result to the cross switch matrix.
Inventors
- BI LIQIANG
- WANG YAJUN
- ZHANG RUI
- HAN SAIFEI
- LIU FAN
Assignees
- 中电科申泰信息科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260325
Claims (10)
- 1. A crossbar switch, comprising: The control channel comprises a control virtual channel, a request arbitration module, an input port control module, an output port control module, a port state management module and a data selection module, wherein the control virtual channel is used for receiving a request of a transmitting end, the request arbitration module is used for arbitrating the request of the control virtual channel by adopting a fair round robin arbiter, the input port control module is used for feeding back an arbitration result of the request arbitration module and transmitting a data enabling signal to the transmitting end so as to control the transmitting end to transmit data to a cross switch matrix, and the output port control module is used for controlling the data selection module to select a data path according to the arbitration result of the request arbitration module and the control information of the virtual channel, and the data selection module is used for transmitting the data path selection result to the cross switch matrix; And the data channel comprises a cross switch matrix and is used for realizing point-to-point transmission of data from a sending end to a receiving end according to the data path selection result.
- 2. The crossbar switch according to claim 1, wherein the control channel receives control information of a transmitting end, the control information including a data transmission direction, that is, a number of receiving ends, the number of flits included in each packet pack, a virtual channel number, and a valid bit of the control information, and the control channel transmits data in units of packets pack according to the received control information.
- 3. The crossbar switch of claim 1 wherein the control virtual channel is divided according to the number of request types to implement different types of requests, and an arbitration request is initiated to the request arbitration module to implement fair and rapid transmission of data.
- 4. The crossbar switch of claim 1 wherein the request arbitration module is enabled by the port state management module, the port state management module determines whether to enable the request arbitration module according to the credit status of the virtual channel of the receiving end and the request status of the virtual channel, the credit of the receiving end is managed by the port state management module, when the crossbar switch matrix sends data to the receiving end, the credit of the receiving end is reduced, and when the data of the receiving end is used, the credit of the receiving end is increased.
- 5. A crossbar switch according to claim 4 wherein the direction of transmission of the sender is determined by the request arbitration module on the premise that all receivers are able to receive the sender's request.
- 6. The crossbar of claim 4 wherein the port state management module counts credits of the virtual channel at the receiving end, one credit being capable of storing one data Flit, the crossbar having data transmission units of data packets pack, the request arbitration module being enabled only if the credits of the virtual channel at the receiving end are capable of satisfying one data packet pack.
- 7. The crossbar switch of claim 1 wherein the input port control module reads the content of the virtual channel according to the arbitration result, the virtual channel content includes the Flit number of the current packet pack to be transmitted, the input port control module notifies the sender to transmit a corresponding number of packets pack, i.e., a packet pack, and simultaneously notifies the sender to update the credit of the virtual channel, the output port control module selects the transmission path of the data according to the arbitration result and the virtual channel number, the maintenance time of the data transmission path is determined by the Flit number of the packet pack, and the port state management module updates the credit of the virtual channel at the receiver during the data transmission.
- 8. A crossbar according to claim 1 wherein the output port control module determines the number of beats maintained by the selected data path based on virtual channel control information, i.e. the number of flits included in each packet.
- 9. A crossbar according to claim 7 wherein the transmission of the packet pack is implemented by a state machine, the input port control module and the output port control module controlling the transmission of the packet pack in accordance with the state of the state machine, the state of the state machine comprising an idle state and a multi Flit transmit state, the packet pack for a single Flit completing the pack transmission in the idle state of the state machine, the packet pack for a multi Flit transmitting the data for the first Flit in the idle state of the state machine, and the data for the remaining flits completing the transmission in the multi Flit transmit state.
- 10. An application of a crossbar switch in an on-chip dual-ring network is characterized by comprising a dual-ring network, wherein the dual-ring network is divided into a clockwise network and a counterclockwise network, representative data are selected to be routed through the clockwise network or the counterclockwise network according to a corresponding routing algorithm, the dual-ring network is provided with 8 nodes, each node is connected with a corresponding request source or a corresponding response source through the crossbar switch, the crossbar switch connected with each node is divided into an on-line crossbar switch and an off-line crossbar switch, the request source or the response source is a transmitting end for the on-line crossbar switch, the node of the dual-ring network is a receiving end for the off-line crossbar switch, and the node of the dual-ring network is the transmitting end and the request source or the response source is the receiving end.
Description
Cross switch and application thereof in on-chip double-ring network Technical Field The invention belongs to the technical field of chip design, and particularly relates to a cross switch and application thereof in an on-chip double-ring network. Background With the development of integrated circuit technology, the feature size of the transistor approaches a limit, and the reduction of the feature size is beneficial to the improvement of the integration level of the chip, so that a designer can design a plurality of high-performance chips. Multicore processors, as a typical representative of high performance chips, have on-chip interconnect structures that are one of the key properties that limit processor performance. Currently, the mainstream interconnection structure of the multi-core processor adopts a network on chip, wherein a dual ring network is the most typical network on chip, namely a set of clockwise network and a set of anticlockwise network. In a dual-ring network structure, in order to integrate more resources in the network, a crossbar is an indispensable part, and the crossbar can mount different request sending ends and receiving ends to the dual-ring network, so as to establish communication between devices and between the devices and cores. The cross switch is a key component of the on-chip dual-ring network, and the transmission efficiency of the cross switch seriously affects the communication efficiency of the dual-ring network, so that in order to improve the communication efficiency of the dual-ring network, the invention provides the cross switch suitable for the on-chip dual-ring network to ensure high-speed transmission of data. Disclosure of Invention The invention aims to provide a cross switch and application thereof in an on-chip dual-ring network, the invention aims to improve communication efficiency of the dual-ring network, the cross switch adopts a virtual channel technology to ensure high-speed transmission of data, in addition, the invention adopts a credit mechanism to avoid blocking of the data, and in order to avoid starvation of the data, the invention adopts a fair rotation mechanism to ensure that the data of different sending ends can be fairly transmitted to a receiving end. In order to solve the above technical problems, the present invention provides a crossbar switch, including: The control channel comprises a control virtual channel, a request arbitration module, an input port control module, an output port control module, a port state management module and a data selection module, wherein the control virtual channel is used for receiving a request of a transmitting end, the request arbitration module is used for arbitrating the request of the control virtual channel by adopting a fair round robin arbiter, the input port control module is used for feeding back an arbitration result of the request arbitration module and transmitting a data enabling signal to the transmitting end so as to control the transmitting end to transmit data to a cross switch matrix, and the output port control module is used for controlling the data selection module to select a data path according to the arbitration result of the request arbitration module and the control information of the virtual channel, and the data selection module is used for transmitting the data path selection result to the cross switch matrix; And the data channel comprises a cross switch matrix and is used for realizing point-to-point transmission of data from a sending end to a receiving end according to the data path selection result. Preferably, the control channel receives control information of the transmitting end, wherein the control information comprises a data transmission direction, namely a number of the receiving end, the number of flits contained in each data packet pack, a virtual channel number and valid bits of the control information, and the control channel transmits the data in units of the data packets pack according to the received control information. Preferably, the control virtual channel divides according to the number of request types to realize different types of requests, and simultaneously initiates an arbitration request to the request arbitration module to realize fair and rapid transmission of data. Preferably, the enabling of the request arbitration module is controlled by the port state management module, the port state management module judges whether to enable the request arbitration module according to the credit condition of the virtual channel of the receiving end and the request condition of the virtual channel, the credit of the receiving end is managed by the port state management module, when the crossbar matrix sends data to the receiving end, the credit of the receiving end is reduced, and when the data of the receiving end is used, the credit of the receiving end is increased. Preferably, on the premise that all the receiving ends can receive the request of the