BUS ARBITRATION CIRCUIT AND DATA TRANSFER SYSTEM INCLUDING THE SAME

The bus arbitration circuit maintains data transmission speed in multi-layer systems by using switch and output circuits to isolate slave ICs from direct host bus connections, addressing the speed reduction issue in existing technologies.

JP7731479B2Active Publication Date: 2025-08-29SEIKO INSTR INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024110021
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2025-08-29
Estimated Expiration
2040-11-24

Smart Images

  • Figure 0007731479000001
    Figure 0007731479000001
  • Figure 0007731479000002
    Figure 0007731479000002
  • Figure 0007731479000003
    Figure 0007731479000003
Patent Text Reader

Abstract

To provide a bus arbiter circuit that does not reduce a transmission speed of a bus.SOLUTION: A bus arbiter circuit comprises: a first bus terminal connected to a host bus; a second bus terminal connected to a local bus; a first output circuit whose output terminal is connected to the first bus terminal; a second output circuit whose output terminal is connected to the second bus terminal; a control circuit which includes a first input terminal, a second input terminal, a control signal output terminal and an output terminal, and in which data of the first bus terminal is input to the first input terminal, data of the second bus terminal is input to the second input terminal, and data is output from the output terminal to the input terminal of the first output circuit; and a switch circuit in which the input terminal is connected to the first bus terminal, the control terminal is connected to the control signal output terminal of the control circuit, and host bus data is output from the output terminal to the input terminal of the second output circuit.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a bus arbitration circuit and a data transfer system equipped with the same. [Background technology]

[0002] The data transmission system is a serial data bus. 2 A system is known that transfers data between a master IC and multiple slave ICs via a C bus. Figure 3 shows the I 2 FIG. 1 is a block diagram showing a data transfer system conforming to the C protocol. In the data transfer system 200, a master IC 230 and a plurality of slave ICs 231 to 237 are connected by two bus lines, a serial data line 210 and a clock line 220. 2 Data transfer is performed in accordance with the C protocol (see, for example, Patent Document 1). However, I 2 The data transfer system conforming to the C protocol was developed as an internal bus system with a simple configuration, and was not designed to be a multi-layer system having a host bus and a local bus. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2002-189697 Summary of the Invention [Problem to be solved by the invention]

[0004] Multi-layer systems have a bus arbitration circuit between the host bus and the local bus. The bus arbitration circuit generally has a transmission gate, which is a bidirectional switch circuit that connects the host bus and the local bus. However, because the transmission gate is closed during arbitration, the slave ICs connected to each local bus are directly connected to the host bus. Therefore, there is an issue that the bus data transmission speed decreases as the number of slave ICs in the entire system increases.

[0005] SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and has as its object to provide a bus arbitration circuit that does not reduce the bus transmission speed. [Means for solving the problem]

[0006] The bus arbitration circuit of the present invention is characterized by comprising: a first bus terminal connected to a host bus; a second bus terminal connected to a local bus; a first output circuit having an output terminal connected to the first bus terminal; a second output circuit having an output terminal connected to the second bus terminal; a first input terminal, a second input terminal, a control signal output terminal, and an output terminal, wherein data from the first bus terminal is input to the first input terminal, data from the second bus terminal is input to the second input terminal, and data is output from the output terminal to an input terminal of the first output circuit; and a switch circuit having an input terminal connected to the first bus terminal, a control terminal connected to the control signal output terminal of the control circuit, and outputting host bus data from the output terminal to an input terminal of the second output circuit. [Effects of the Invention]

[0007] According to the present invention, a switch circuit and an output circuit are used for output from the host bus to the local bus, and an output circuit is used for output from the local bus to the host bus. Therefore, the slave IC of the local bus is not directly connected to the host bus, and it is possible to provide a bus arbitration circuit in which the data transmission speed does not decrease. [Brief explanation of the drawings]

[0008] [Figure 1] FIG. 2 is a circuit diagram illustrating a bus arbitration circuit according to the present embodiment. [Figure 2] 1 is a block diagram showing a multi-layer data transfer system including a bus arbitration circuit according to an embodiment of the present invention; [Figure 3] FIG. 1 is a block diagram illustrating a data transfer system conforming to the I2C protocol. DETAILED DESCRIPTION OF THE INVENTION

[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0010] FIG. 2 is a block diagram showing a multi-layer data transfer system 100 including a bus arbitration circuit according to this embodiment. The data transfer system 100 includes a host bus consisting of a serial data line 10 and a clock line 20, a first local bus consisting of a serial data line 11 and a clock line 21, a second local bus consisting of a serial data line 12 and a clock line 22, a master IC 30, hub ICs 41 to 42 which are bus arbitration circuits, and slave ICs 51 to 56. These bus lines are connected to the power supply line via pull-up resistors, but in the figure, pull-up resistors are only shown for the serial data line 10 and the clock line 20, and are omitted for the others.

[0011] Master IC 30 is connected to the host bus. Slave ICs 51 and 52 are connected to the host bus. Hub IC 41 is connected between the host bus and a first local bus. Hub IC 42 is connected between the host bus and a second local bus. Slave ICs 53 and 54 are connected to the first local bus. Slave ICs 55 and 56 are connected to the second local bus.

[0012] FIG. 1 is a circuit diagram showing a bus arbitration circuit according to this embodiment. The following explains hub IC41, which is a bus arbitration circuit. For simplicity, only serial data lines are shown for the host bus and local bus. The clock lines are connected in the same way as the serial data lines. Hub IC42 has the same configuration as hub IC41.

[0013] The hub IC 41 includes a first bus terminal connected to the serial data line 10 via a pull-up resistor, a second bus terminal connected to the serial data line 11 via a pull-up resistor, an NMOS transistor 411 serving as a first output circuit connected to the first bus terminal, an NMOS transistor 412 serving as a second output circuit connected to the second bus terminal, a control circuit 413, a switch circuit 414, a flip-flop circuit 415, and a multiplexer 416. In this embodiment, the switch circuit 414 is configured as a NOR circuit. The control circuit 413 includes an output terminal, a first input terminal, a second input terminal, a clock output terminal, a first control signal output terminal, a second control signal output terminal, and a data output terminal. The serial data lines 10 and 11 are connected to the same power supply line, but may be connected to different power supply lines.

[0014] The NMOS transistor 411 has a drain connected to a first bus terminal, a gate connected to an output terminal of the control circuit 413, and a source connected to a ground terminal. The NMOS transistor 412 has a drain connected to a second bus terminal, a gate connected to an output terminal of the multiplexer 416, and a source connected to a ground terminal. The control circuit 413 has a first input terminal connected to a first bus terminal, a second input terminal connected to an output terminal of the flip-flop circuit 415, a clock output terminal connected to a clock terminal of the flip-flop circuit 415, a first control signal output terminal connected to a control terminal of the switch circuit 414, a second control signal output terminal connected to the control terminal of the multiplexer 416, and a data output terminal connected to a first input terminal of the multiplexer 416. The switch circuit 414 has an input terminal connected to the first bus terminal, and an output terminal connected to a second input terminal of the multiplexer 416. The flip-flop circuit 415 has an input terminal connected to the second bus terminal via a NOT circuit. Since the output circuit is configured with NMOS transistors, a NOT circuit is provided at the second bus terminal for the purpose of matching the logic, but the logic may be matched anywhere, such as in the control circuit.

[0015] The hub IC 41 of this embodiment configures an open-drain output circuit for the serial data lines 10 and 11. Note that the other hub ICs and slave ICs also configure similar output circuits. This configuration is necessary during arbitration, and the multiplexer 416 is configured to function as a CMOS output circuit during periods other than arbitration, but this is not shown in the figure. Furthermore, the multiplexer 416 is controlled to output the signal of the switch circuit 414 to the NMOS transistor 412 during arbitration, and to output the signal of the data output terminal of the control circuit 413 otherwise. Therefore, in the following explanation of arbitration, it is assumed that the multiplexer 416 is controlled to output the signal of the switch circuit 414 to the NMOS transistor 412.

[0016] The master IC 30 outputs a start condition signal to the serial data line 10 to inquire about the presence or absence of a request from each IC. When the start condition signal is input, the slave ICs 51 to 52 output their own address signals in sync with the clock signal if there is a request.

[0017] When a start condition signal is input, hub ICs 41-42 output the start condition signal to their respective local buses. Hub ICs 41-42 then output the address signal of their respective local buses, or, if there is a request, their own address signal, to the host bus. At this time, they have the function of controlling the connection between the host bus and each local bus so that arbitration is carried out stably.

[0018] When the start condition signal is input, the slave ICs 53 to 56 output their own address signals in synchronization with the clock signal if there is a request.

[0019] Next, the arbitration operation of the multi-layer data transfer system equipped with the bus arbitration circuit of this embodiment will be described with reference to Figures 1 and 2. The operation will be described for the hub IC 41, but the hub IC 42 also operates in the same way.

[0020] The master IC 30 outputs a start condition signal to the serial data line 10 to inquire about the presence or absence of a request from each IC. The start condition signal is input to the hub ICs 41-42 and slave ICs 51-52 connected to the host bus. The start condition signal is generated when the serial data line 10 falls from high to low while the clock signal remains high.

[0021] A start condition signal is input to the hub IC 41 from the first bus terminal. The start condition signal is input to a first input terminal of the control circuit 413 and an input terminal of the switch circuit 414. In the standby state, the switch circuit 414 is controlled to a closed state by a control signal from the control circuit 413. In FIG. 1, the switch circuit 414 is configured as a NOR circuit, so the control circuit 413 outputs a Lo level to the control signal output terminal. Therefore, the start condition signal input to the first bus terminal from the serial data line 10 is output from the second bus terminal to the serial data line 11 via the switch circuit 414 and the NMOS transistor 412.

[0022] That is, the start condition signal output by the master IC 30 is also input to the slave ICs 53 to 54 connected to the serial data line 11, which is the local bus. Therefore, when the start condition signal output by the master IC 30 is input, the slave ICs 51 to 56 can determine that they have received an inquiry about the presence or absence of a request.

[0023] Next, when the clock signal falls, the hub IC and slave IC that have a request output their own address data to the serial data line in response to the input clock signal. At this time, the hub IC combines the address data of the local bus with its own address data and outputs the combined data to the host bus.

[0024] The operation of the hub IC 41 at this time will be described in detail below.

[0025] Control circuit 413 outputs a high level to the first control signal output terminal in synchronization with the falling edge of the clock signal, thereby controlling switch circuit 414 to the open state. By controlling switch circuit 414 to the open state, address data on serial data line 10 is not transmitted to serial data line 11. By controlling in this manner, arbitration can be performed only within serial data line 11, i.e., the local bus.

[0026] The control circuit 413 outputs a clock signal to the clock output terminal after a first predetermined time has elapsed since the falling edge of the clock signal. Here, the first predetermined time is the time it takes for the address data on the serial data line 11 to stabilize. When the clock signal is input to the clock terminal, the flip-flop circuit 415 latches a signal corresponding to the local bus arbitration result and outputs it to the output terminal. When the local bus arbitration result is input to the second input terminal from the flip-flop circuit 415, the control circuit 413 combines the result with its own address data if there is a request from the hub IC 41, and outputs the address data to the gate of the NMOS transistor 411.

[0027] Therefore, since the address data on the serial data line 11 is transmitted to the serial data line 10, arbitration is performed on the host bus using the address data of all hub ICs and slave ICs connected to the host bus and local bus.

[0028] After a second predetermined time has elapsed since the falling edge of the clock signal, control circuit 413 outputs a Lo level to the control signal output terminal to control switch circuit 414 to the closed state. When switch circuit 414 is closed, the address data on serial data line 10 is transmitted to serial data line 11, i.e., the arbitration results from all hub ICs and slave ICs are transmitted to slave ICs 53 and 54. Here, the second predetermined time is the time it takes for flip-flop circuit 415 to finish latching the signal corresponding to the arbitration result of the local bus.

[0029] Arbitration based on address data will be explained assuming that the hub IC or slave IC with the smallest address data has priority for requests. In other words, a hub IC or slave IC whose current address data is 0 (low level) can output address data at the falling edge of the next clock signal. A hub IC or slave IC whose current address data is 1 (high level) cannot output address data at the falling edge of the next or subsequent clock signals if the serial data line is low level. In other words, those ICs will not participate in arbitration from now on.

[0030] The master IC 30 then outputs a clock signal equal to the number of bits in the address data and repeats the above-mentioned operation, thereby performing arbitration on the serial data line 10. The master IC 30 then accepts the request of the IC determined by arbitration.

[0031] As described above, the bus arbitration circuit of this embodiment uses a switch circuit and an output circuit for output from the host bus to the local bus, and an output circuit for output from the local bus to the host bus, so that the slave ICs of the local bus are not directly connected to the host bus. Therefore, even if the number of slave ICs connected to the local bus increases, the data transmission speed will not decrease.

[0032] Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the present invention.

[0033] For example, although a flip-flop circuit 415 is provided between the second input terminal of the control circuit 413 and the second bus terminal, any circuit that latches a signal may be used, and is not limited to this. Furthermore, if the control circuit 413 is configured to control so that data at the second input terminal is enabled after a first predetermined time, the flip-flop circuit 415 may not be provided. Furthermore, for example, the switch circuit 414 is configured with a NOR circuit, but is not limited to this, as long as it is configured according to input logic and output logic. Furthermore, for example, while arbitration has been described as starting when the master IC transmits a start condition signal, it may be started by a signal output by a hub IC or a slave IC, or by another signal. [Explanation of symbols]

[0034] 10, 11, 12 Serial Data Lines 20, 21, 22 clock lines 30 Master IC 41, 42 Hub IC 51, 52, 53, 54, 55, 56 Slave IC 100 Data Transfer System 411, 412 NMOS transistors 413 Control Circuit 414 Switch Circuit 415 Flip-Flop Circuit 416 Multiplexer

Claims

1. a first bus terminal connected to a master IC via a host bus; a second bus terminal connected to a plurality of slave ICs via a local bus; a first output circuit having an output terminal connected to the first bus terminal; a second output circuit having an output terminal connected to the second bus terminal; a control circuit including a first input terminal, a second input terminal, a control signal output terminal, and an output terminal, wherein data from the first bus terminal is input to the first input terminal, data from the second bus terminal is input to the second input terminal, and data is output from the output terminal to an input terminal of the first output circuit; a switch circuit having an input terminal connected to the first bus terminal, a control terminal connected to a control signal output terminal of the control circuit, and an output terminal for outputting data of the host bus to an input terminal of the second output circuit; Equipped with When the master IC outputs a start condition signal to the host bus, the switch circuit outputs the start condition signal from the output terminal to the plurality of slave ICs via the local bus; The bus arbitration circuit is characterized in that the control circuit outputs a signal according to the result of arbitration of the local bus, including an address signal of the slave IC that has made the request, to the master IC via the host bus.

2. When the start condition signal is input to the first input terminal in the standby state, the control circuit uses a control signal to put the switch circuit into a state in which it does not output data from the host bus after a predetermined time has elapsed.

2. The bus arbitration circuit according to claim 1.

3. the predetermined time is the time it takes for the address signal on the local bus to become stable; 3. The bus arbitration circuit according to claim 2.

4. a flip-flop circuit connected between the second bus terminal and the second input terminal of the control circuit, for latching a signal corresponding to a result of arbitration of the local bus; 2. The bus arbitration circuit according to claim 1.

5. the control circuit, after the flip-flop circuit has finished latching the signal corresponding to the arbitration result of the local bus, puts the switch circuit into a state in which it can output data of the host bus by a control signal; 5. The bus arbitration circuit according to claim 4.

6. a master IC and a slave IC connected to a host bus; a bus arbitration circuit according to any one of claims 1 to 5, connected to the host bus; a local bus connected to the bus arbitration circuit; a slave IC connected to the local bus; A data transfer system comprising:

Citation Information

Patent Citations

  • Data transfer system and data transfer method

    JP2002189697A

  • Data transfer system

    JP2009069946A

  • Device for i2c bus communication, i2c bus communication system, and i2c bus communication method

    JP2014186500A