Communication device and communication system

The communication system addresses delays in SerDes device ACK signaling by using LINKs for efficient signal conversion and ACK/NACK management, ensuring high-speed data transfer between master and slave devices.

JP7539968B2Active Publication Date: 2024-08-26SONY SEMICON SOLUTIONS CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022508289
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-03-18
Filing Date
2021-03-11
Publication Date
2024-08-26
Estimated Expiration
2041-03-11

Smart Images

  • Figure 0007539968000025
    Figure 0007539968000025
  • Figure 0007539968000012
    Figure 0007539968000012
  • Figure 0007539968000009
    Figure 0007539968000009
Patent Text Reader

Abstract

[Problem] To perform data communication in an efficient manner. [Solution] This communication device is provided with LINK that generates a first output signal on the basis of a first external signal from a first external device and outputs the first output signal to a second external device and that generates a second output signal on the basis of a second external signal from the second external device and outputs the second output signal to the first external device. The first output signal and the second external signal each include: command information indicating details of a command transmitted from the first external device; final destination device identification information for identifying a device that is the final destination of data transmitted from the first external device; internal destination information indicating an internal destination of the final destination device; data length information indicating the length of data transmitted from the first external device; and data end position information indicating the end position of data transmitted from the first external device.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a communication device and a communication system. [Background technology]

[0002] 2. Description of the Related Art When data communication is performed between a master device and a slave device, a technique has been proposed for performing serial communication between a SerDes device for the master device and a SerDes device for the slave device. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2011-239011 A Summary of the Invention [Problem to be solved by the invention]

[0004] When a slave device receives data transmitted from a master device, it is common for the slave device to send an ACK signal to the master device indicating that it has received the data. However, if there are two SerDes devices between the master and slave devices, the ACK signal must pass through these SerDes devices, and so it takes a considerable amount of time from when the slave device sends the ACK signal until the master device receives it.

[0005] If the master device is configured such that it cannot transmit a new signal to the slave device until it receives an ACK signal from the slave device, there is a risk that the processing of the master device will be delayed because it takes time to receive the ACK signal.

[0006] Therefore, the present disclosure provides a communication device and a communication system capable of performing data communication efficiently. [Means for solving the problem]

[0007] In order to solve the above problems, according to the present disclosure, there is provided a method for controlling a communication device, comprising: a LINK that generates a first output signal based on a first external signal from a first external device, and outputs the first output signal to a second external device, and generates a second output signal based on a second external signal from the second external device, and outputs the second output signal to the first external device; Each of the first output signal and the second external signal is command information indicating the content of a command transmitted from the first external device; final destination device identification information that identifies a final destination device of data transmitted from the first external device; internal address information indicating an internal address of the final destination device; data length information indicating a length of data transmitted from the first external device; and data end position information indicating an end position of data transmitted from the first external device.

[0008] the final destination device identification information is placed next to the command information; the internal address information is placed next to the final destination device identification information; The data length information may be located following the internal address information.

[0009] The command information may include command format information that defines a command format on a predetermined communication standard between the communication device and the second external device.

[0010] The command information may include data end determination condition information that specifies a condition for determining the end of data transmitted from the first external device.

[0011] Each of the first output signal and the second external signal may further include communication frequency information specifying a communication frequency between the second external device and the final destination device.

[0012] The first output signal and the second external signal may include a command obtained by protocol-converting an I2C (Inter-Integrated Circuit) communication command into a predetermined communication standard between the communication device and the second external device.

[0013] The LINK may transmit an ACK signal indicating a positive response or a NACK signal indicating a negative response to the first external device each time it receives each information unit constituting the first external signal from the first external device.

[0014] the LINK has a storage unit that stores a signal corresponding to the first external signal and a signal corresponding to the second external signal; When the LINK finishes receiving the first external signal from the first external device, the LINK may collectively perform protocol conversion on the first external signals received and stored in the memory unit, and then generate the first output signal.

[0015] The protocol conversion by the LINK may be a TDD (Time Division Duplex) protocol conversion.

[0016] The LINK may transmit the first output signal to the second external device, and upon receiving information from the second external device indicating that processing of the first output signal has been completed, store a signal indicating completion of processing in the memory unit.

[0017] The LINK may release a storage area of ​​the storage unit based on a command from the first external device.

[0018] The LINK may output processing completion information for the second external signal transmitted from the second external device to the first external device in response to a request signal from the first external device, or may output an interrupt request flag for interrupt processing for the first external device to the first external device.

[0019] The LINK may receive the first external signal from the first external device, the first external signal including output instruction information instructing the output of the first output signal and transmission end information indicating the end of transmission of the first external signal.

[0020] When a first value is received as data end determination condition information specifying a condition for determining the end of data transmitted from the first external device, the LINK may recognize that the first external signal transmitted from the first external device has ended when transmission end information indicating the end of transmission of the first external signal is received.

[0021] When a second value is received as data end determination condition information specifying a condition for determining the end of data transmitted from the first external device, the LINK may recognize that the first external signal transmitted from the first external device has ended when output instruction information instructing the output of the first output signal and transmission end information indicating the end of transmission of the first external signal are received, regardless of the value of the data end determination condition information received thereafter.

[0022] The LINK may release the storage area of ​​the storage unit after transmitting the first output signal to the second external device.

[0023] The above-mentioned LINK is outputting a signal obtained by performing protocol conversion for a second output signal on a signal based on the second external signal stored in the storage unit to the first external device for each information unit; and receiving each information unit constituting the first external signal output from the first external device a predetermined number of times or within a predetermined period of time.

[0024] According to the present disclosure, there is provided a Master SerDes having a first LINK; a Slave SerDes having a second LINK; The first LINK generates a first output signal based on a first external signal from a Master and outputs the first output signal to the Slave SerDes, and generates a third output signal based on a second output signal from the Slave SerDes and outputs the third output signal to the Master; the second LINK generates the second output signal based on a second external signal from the Slave and outputs the second output signal to the Master SerDes, and generates a fourth output signal based on the first output signal from the Master SerDes and outputs the fourth output signal to the Slave; Each of the first output signal, the second output signal, the first external signal, and the second external signal is Command information indicating the content of a command transmitted from the Master; Final destination device identification information for identifying the Slave; Internal address information indicating an internal address of the Slave; Data length information indicating the length of data transmitted from the Master; and data end position information indicating an end position of the data transmitted from the Master. [Brief description of the drawings]

[0025] [Figure 1] 1 is a block diagram showing a schematic configuration of a communication system including a communication device according to an embodiment. [Diagram 2] The diagram shows the packet write format when writing data via I2C communication between Master and Slave via a general SerDes device. [Diagram 3] ,Equivalent block diagram when Master SerDes performs I2C communication between Master and Slave SerDes. [Figure 4] Equivalent block diagram when Slave SerDes performs I2C communication between Slave and Master SerDes. [Diagram 5] FIG. 2 is a diagram showing an example of a frame structure of a signal of the communication standard X protocol. [Figure 6] A diagram showing the I2C communication protocol during Random Write. [Figure 7] FIG. 2 shows signals transmitted and received between the Master and Master SerDes. [Figure 8] A diagram showing an example of data stored in table1 in mem1. [Figure 9] A diagram showing the meaning of each bit in one byte of Cmd_mode. [Figure 10] A diagram showing the types of commands and bit strings transmitted over the communications standard X protocol. [Figure 11] FIG. 13 is a diagram showing the process of transmitting a Random Write Command from the Master SerDes to the Slave SerDes according to communication standard X. [Figure 12] A diagram showing an example of table3 in mem2 during Random Write operation. [Figure 13] A diagram showing the process of transmitting data from the Slave SerDes to the Slave via I2C communication. [Figure 14] FIG. 13 is a diagram showing the process of sending a reply to a Random Write Command from the Slave SerDes to the Master SerDes using communication protocol X. [Figure 15] FIG. 13 is a diagram showing the state of the memory area of ​​mem2 before the memory area is released in response to a Random Write Command. [Figure 16] A diagram showing the operation of Master SerDes. [Figure 17] A diagram showing state table1 in mem1 after receiving response data from the Slave SerDes in response to a Random Write Command. [Figure 18] This diagram shows the process when the Master polls the Master SerDes for a Random Write Command and reads out the execution result. [Figure 19]13 is a diagram showing transmission of a signal from the Master to the Master SerDes to release the storage area of ​​mem1 as a process for terminating a Random Write operation. [Figure 20] A diagram showing the stored data in mem1 before the memory area for the Random Write Command is released. [Figure 21] A diagram showing batch command transmission with Cmd_mode[7]=1. [Figure 22] Continued from Figure 21. [Figure 23] A diagram showing details of the data stored in table1 in mem1 during batch command transmission with cmd_mode[7]=1. [Figure 24] A diagram showing the Random Read operation. [Diagram 25] A diagram showing the data stored in table1 in mem1 during a Random Read operation. [Figure 26] FIG. 13 is a diagram showing the process of sending a Random Read command from the Master SerDes to the Slave SerDes using communication protocol X. [Figure 27] A diagram showing the data stored in table3 in mem2 during a Random Read operation. [Figure 28A] A diagram showing the process of sending a random read command from the Slave SerDes to the Slave. [Figure 28B] A diagram showing the I2C communication protocol during Random Read operation. [Figure 29] A diagram showing the stored data in table3 in mem2 after a Random Read operation. [Diagram 30] A diagram showing the reply process for a Read command from a Slave SerDes to a Master SerDes using communication standard X. [Diagram 31] This diagram shows the processing of the Master SerDes when a reply to a Random Read Command is received from the Slave SerDes. [Diagram 32]FIG. 13 is a diagram showing an example of data in mem1 after receiving response data from a Slave SerDes in response to a Random Read Command. [Diagram 33] This diagram shows the process when the Master polls the Master SerDes for a Random Read Command and reads out the execution result. [Diagram 34] FIG. 13 is a diagram showing an example of data stored in table1 in mem1 before the memory area for the Random Read Command is released. [Figure 35A] FIG. 13 is a diagram showing a process when a current read is performed. [Figure 35B] A diagram showing the I2C communication protocol when performing a current read. [Diagram 36] FIG. 13 is a diagram showing an example of data stored in table 3 in mem2 when a current read is performed. [Figure 37] FIG. 2 is an equivalent block diagram of a communication system according to the present embodiment; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0026] Hereinafter, an embodiment of a communication device and a communication system 3 will be described with reference to the drawings. The following description will focus on the main components of the communication device and the communication system 3, but the communication device and the communication system 3 may include components and functions that are not shown or described. The following description does not exclude components and functions that are not shown or described.

[0027] FIG. 1 is a block diagram showing a schematic configuration of a communication system 3 including a communication device 1 according to an embodiment. The communication system 3 in FIG. 1 is, for example, a camera image recognition system that is a part of an ADAS (Advanced Driver Assistance System). The communication system 3 in FIG. 1 includes an ECU 4 and an SoC 5 that can operate as a Master 21, an image sensor 12 and a temperature sensor 14 that can operate as a Slave 22, a Master SerDes 7, and a Slave SerDes 13. The Master SerDes 7 and the Slave SerDes 13 are connected to each other so as to be able to communicate with each other by a predetermined communication standard (hereinafter, referred to as a "communication standard X"). The predetermined communication standard X may be, for example, FPD-Link III, A-phy, ASA, or the like, but is not limited thereto. Each of the Master SerDes 7 and the Slave SerDes 13 corresponds to the communication device 1 according to this embodiment. In this specification, the Master SerDes 7 may be referred to as SerDes1, and the Slave SerDes 13 may be referred to as SerDes2.

[0028] The Master 21 and the Master SerDes 7 are connected to be able to communicate with each other, for example, by I2C (Inter-Integrated Circuit) communication. Note that the communication between the Master 21 and the Master SerDes 7 is not limited to I2C communication, and may be communication using, for example, GPIO (General Purpose Input / Output).

[0029] Similarly, the Slave 22 and the Slave SerDes 13 are connected to be able to communicate with each other, for example, by I2C communication. Note that the communication between the Slave 22 and the Slave SerDes 13 is not limited to I2C communication, and may be communication using, for example, GPIO.

[0030] The ECU 4 controls the entire communication system 3 and has an I2C 4a. The ECU 4 receives an image signal from the Master SerDes 7 and performs I2C communication with the Master SerDes 7 via the I2C 4a.

[0031] The SoC 5 performs, for example, image recognition and video processing, and has an I2C 5a. The SoC 5 receives an image signal from the Master SerDes 7, and performs I2C communication with the ECU 4 and the Master SerDes 7 via the I2C 5a.

[0032] The image sensor 12 captures an image and has an I2C 12a and a mem 19. The image sensor 12 outputs image data of the captured image to the Slave SerDes 13, and performs I2C communication with the Slave SerDes 13 via the I2C 12a. In this specification, the image sensor 12 may be referred to as a CIS (CMOS image sensor). The mem 19 can store pixel data captured by the image sensor 12 and can store data transmitted from the Master 21. In this specification, the mem 19 may be referred to as a mem3.

[0033] The temperature sensor 14 measures the temperature of an arbitrary target (for example, the image sensor 12) and has an I2C 14a. The temperature sensor 14 communicates with the Slave SerDes 13 via the I2C 14a and transmits temperature data related to the measured temperature to the Slave SerDes 13.

[0034] The Master SerDes 7 converts the format of an I2C protocol signal received from the Master 21 into a communication standard X protocol signal and transmits it to the Slave SerDes 13, and also converts the format of a communication standard X protocol signal received from the Slave SerDes 13 as appropriate to generate image data and an I2C protocol signal, which are output to the Master 21. This Master SerDes 7 has a LINK 11, a forward receiver (Fw.Rx) 9, a reverse transmitter (Rv.Tx) 10, and an I2C 7a.

[0035] The LINK 11 converts the format of an I2C protocol signal received from the Master 21 via the I2C 7a into a communication standard X protocol signal and transmits it to the Slave SerDes 13 via the Rv.Tx 10. The LINK 11 also generates image data from the communication standard X protocol signal received from the Slave SerDes 13 via the Fw.Rx 9 and transmits it to the Master 21, or generates an I2C protocol signal including information other than image data and outputs it to the Master 21 via the I2C 7a.

[0036] The Slave SerDes 13 converts the format of I2C protocol signals and image signals received from the Slave 22 into signals conforming to the communication standard X protocol and transmits them to the Master SerDes 7, and also converts the format of communication standard X protocol signals received from the Master SerDes 7 appropriately into signals conforming to the I2C protocol and outputs them to the Slave 22. The Slave SerDes 13 has an I2C 13a, a LINK 17, a forward transmitter (Fw.Tx) 16, a reverse receiver (Rv.Rx) 15, and an I2C 13a.

[0037] The LINK 17 converts the format of I2C protocol signals and image data received from the Slave 22 via the I2C 13a into signals conforming to the communication standard X protocol, and transmits them to the Master SerDes 7 via the Fw.Tx 16. The LINK 17 also converts communication standard X protocol signals received from the Master SerDes 7 via the Rv.Rx 15 into signals conforming to the I2C standard, and transmits them to the Slave 22 via the I2C 13a. At this time, the following problems 1) and 2) may occur.

[0038] 1) When the ECU 4 or SoC 5 constituting the Master 21 uses I2C communication to control the image sensor 12 or temperature sensor 14 constituting the Slave 22, the Master 21 needs to receive an ACK signal or NACK signal from the Slave 22 every time it transmits an information unit such as one byte. At this time, the propagation delay of the I2C communication via the Master SerDes 7 and the Slave SerDes 13 may generally be larger than one clock period of the I2C communication (one clock frequency is 400 kHz or 1 MHz, for example). In this case, the Master SerDes 7 receives the ACK signal or NACK signal from the Slave 22 from the Slave SerDes 13, and holds the clock (SCL) of the I2C protocol signal at a low level until the I2C protocol conversion is completed and the Master SerDes 7 is ready to output the ACK signal or NACK signal to the Master 21 via the I2C 7a. After the Master SerDes 7 is ready to output the ACK or NACK signal sent by the Slave 22 to the Master 21, it releases the low level of the clock (SCL) of the I2C protocol signal that it has been holding. As a result, the Master 21 is able to resume I2C communication and receive the ACK or NACK signal. While the Master SerDes 7 holds the SCL at a low level, the Master 21 cannot perform I2C communication, which causes problems such as a long time required for command transfer or inability to communicate with other Slaves 22 connected to the I2C bus (for example, the temperature sensor 14 when waiting for an ACK or NACK signal from the image sensor 12).

[0039] 2 shows I2C communication when writing data from a HOST I2C (e.g., Master 21) to a REMOTE I2C (e.g., Slave 22) by I2C communication via the Master SerDes 7 and Slave SerDes 13. Here, the SCL low period of the HOST I2C indicates that the Master SerDes 7 holds the SCL at a low level until it is ready to output an ACK or NACK signal from the Slave 22, and during this period, the HOST I2C is unable to perform I2C communication.

[0040] 2) It is also preferable that various devices other than the image sensor 12 and the temperature sensor 14 can be connected to the Slave SerDes 13 as Slaves 22. These various Slaves 22 may have different I2C operating clocks. For this reason, it is expected that the Slave SerDes 13 will perform I2C communication with various Slaves 22, and the I2C operating clock of the Slave 22 (the operating clock for I2C communication between the Slave 22 and the Slave SerDes 13) may be set lower than necessary.

[0041] In FIG. 2, if the I2C operating clock frequency of Slave 22 is set lower than necessary as described above, it means that the I2C operating interval of REMOTE I2C (the interval other than SCL low on the REMOTE I2C side in FIG. 2) will be longer. This, together with the issue that the SCLLow interval on the HOST I2C side will be longer, will result in an even longer time required to complete I2C communication.

[0042] In order to solve the above problem 1), the communication system 3 in Fig. 1 provides a storage device (mem 11a in Fig. 1) in the Master SerDes 7, and when the Master SerDes 7 receives one byte from the Master 21, the Master SerDes 7 stores the one byte in the storage device and returns an ACK signal or NACK signal to the Master 21 instead of the Slave 22. This makes it possible to shorten the period of SCL low that the Master 21 extends.

[0043] 1, in order to solve the above-mentioned 2), the Master 21 sets the CLK_value(Data[0]) described below, and the Slave SerDes 13 performs I2C communication with the Slave 22 at the frequency specified by the CLK_value(Data[0]). Therefore, the Slave 22 and the Slave SerDes 13 can realize I2C communication at the specified frequency.

[0044] The LINK 11 in FIG. 1 has an I2C Cmd Unit 8 and a mem 11a. The I2C Cmd Unit 8 stores table 2 in a ROM (not shown), and the mem 11a stores table 1. The mem 11a is a volatile memory. In this specification, the mem 11a may be referred to as mem1. Every time the LINK 11 receives one byte from the Master 21 via the I2C 7a, the LINK 11 writes the one byte to table 1 of the mem 11a, and returns an ACK signal or a NACK signal to the Master 21 instead of the Slave 22. When a predetermined condition is met (e.g., data has been written up to the End of Data), the LINK 11 reads table 1 and transmits it to the Slave SerDes 13 via the Rv.Tx10. In addition, LINK 11 writes the signal received from Slave SerDes 13 via Fw.Rx to table 1 of mem 11a, and when a certain condition is met (e.g., writing up to the end of data), it reads table 1 and performs I2C communication with Master 21 via I2C 7a, and at the same time transmits image data captured by Image Sensor 12 received from Slave SerDes 13 via Fw.Rx 9 to Master 21.

[0045] The LINK 17 in FIG. 1 has an I2C Cmd Unit 18 and a mem 17a. The I2C Cmd Unit 18 stores table 2 in a ROM (not shown), and the mem 17a stores table 3. In this specification, the mem 17a may be referred to as mem2. The LINK 17 writes a signal received from the Master SerDes 7 via the Rv.Rx 15 to table 3 of the mem 17a, and when a certain condition is satisfied (e.g., writing has been completed up to the end of data), it reads out table 3 and transmits it to the Slave 22 via the I2C 13a. In addition, when the LINK 17 receives a signal by performing I2C communication with the Slave 22 via the I2C 13a, or receives temperature data converted into the I2C protocol from the temperature sensor 14 via the I2C 13a, it writes the data to table 3 of the mem 17a, and when a certain condition is met (for example, data has been written up to the end of data), it reads table 3 and transmits the data to the Master SerDes 7 via the Fw.Tx 16.

[0046] Fig. 3 is an equivalent block diagram when the Master SerDes 7 performs I2C communication between the Master 21 and the Slave SerDes 13 in the communication system 3 in Fig. 1. In Fig. 3, the Master SerDes 7 is the communication device 1, the Master 21 is the first external device, and the Slave SerDes 13 is the second external device.

[0047] 3 generates a first output signal based on a first external signal from a first external device (Master 21) and outputs the first output signal to a second external device (Slave SerDes 13). Also, the communication device 1 (Master SerDes 7) generates a second output signal based on a second external signal from the second external device (Slave SerDes 13) and outputs the second output signal to the first external device (Master 21).

[0048] Fig. 4 is an equivalent block diagram when Slave SerDes 13 performs I2C communication between Slave 22 and Master SerDes 7 in communication system 3 in Fig. 1. In Fig. 4, Slave SerDes 13 is communication device 1, Slave 22 is a first external device, and Master SerDes 7 is a second external device.

[0049] 4 generates a first output signal based on a first external signal from a first external device (Slave 22) and outputs the first output signal to a second external device (Master SerDes 7). Also, the communication device 1 (Slave SerDes 13) generates a second output signal based on a second external signal from the second external device (Master SerDes 7) and outputs the second output signal to the first external device (Slave 22).

[0050] Each of the first output signal and the second external signal in Figures 3 and 4 includes command information Cmd_mode indicating the content of the command transmitted from the first external device, final destination device identification information Slave_Adr identifying the final destination device of the data transmitted from the first external device, internal address information Sub_Adr of the final destination device, data length information Length of the data transmitted from the first external device, and data end position information End of Data transmitted from the first external device.

[0051] Slave_Adr may be placed next to Cmd_mode, Sub_Adr may be placed next to Slave_Adr, and Length may be placed next to Sub_Adr.

[0052] Cmd_mode may include command format information Cmd_mode[2:0] that defines a command format on communication standard X including a function for distinguishing between a Write command and a Read command. In other words, Cmd_mode may include Cmd_mode[2:0] that defines a command format on a predetermined communication standard between the communication device 1 and a second external device.

[0053] Cmd_mode includes at least Cmd_mode[0]-Cmd_mode[7], and the data end determination condition information Cmd_mode[7] may specify a condition for determining the end of data transmitted from the first external device.

[0054] Each of the first output signal and the second external signal may further include communication frequency information CLK_value specifying a communication frequency between the second external device and the final destination device.

[0055] The first output signal and the second external signal may include a command obtained by protocol-converting an I2C (Inter-Integrated Circuit) communication command into a predetermined communication standard between the communication device and the second external device.

[0056] Each time LINK 11, 17 receives each information unit constituting the first external signal from the first external device, it may transmit an ACK signal indicating a positive response or a NACK signal indicating a negative response to the first external device.

[0057] LINK 11, 17 has a memory unit for storing a signal corresponding to a first external signal and a signal corresponding to a second external signal,

[0058] When LINK 11, 17 finishes receiving the first external signal from the first external device, it may collectively convert the protocol of the first external signal that has been received and stored in the memory unit, and then generate a first output signal.

[0059] The protocol conversion by LINK 11, 17 may be protocol conversion compatible with TDD (Time Division Duplex).

[0060] LINK 11, 17 may transmit a first output signal to a second external device, and upon receiving information from the second external device indicating that processing of the first output signal has been completed, may store a signal indicating completion of processing in a memory unit.

[0061] The LINK 11, 17 may release the storage area of ​​the storage unit based on a command from the first external device.

[0062] LINK 11, 17 may output processing completion information for a second external signal transmitted from the second external device to the first external device in response to a request signal from the first external device, or may output an interrupt request flag to the first external device for performing interrupt processing for the first external device.

[0063] LINK 11, 17 may receive a first external signal from a first external device, the first external signal including output instruction information cmd_done instructing the output of a first output signal and transmission end information P (STOP condition) indicating the end of transmission of the first external signal.

[0064] When a first value is received as data end determination condition information specifying the condition for determining the end of data transmitted from a first external device, LINK 11, 17 may recognize that the first external signal transmitted from the first external device has ended when transmission end information P (STOP condition) indicating the end of transmission of the first external signal is received.

[0065] When a second value is received as data end determination condition information specifying the conditions for determining the end of data transmitted from the first external device, LINK 11, 17 may recognize that the first external signal transmitted from the first external device has ended when output instruction information instructing the output of the first output signal and transmission end information indicating the end of transmission of the first external signal are received, regardless of the value of data end determination condition information received thereafter.

[0066] The LINK 11, 17 may release the storage area of ​​the storage unit after transmitting the first output signal to the second external device.

[0067] LINK 11, 17 may perform at least one of the following operations within a predetermined number of times or time: outputting a signal based on a second external signal stored in a memory unit to a first external device for each information unit after performing protocol conversion for a second output signal, and receiving each information unit constituting the first external signal output from the first external device.

[0068] FIG. 5 is a diagram showing an example of a frame structure of a signal of the communication standard X protocol transmitted and received between the Master SerDes 7 and the Slave SerDes 13. In FIG.

[0069] The frame structure in Fig. 5 includes multiple containers between a Sync pattern and Parity. The Sync pattern is a signal pattern for synchronizing the physical layers of the Master SerDes 7 and the Slave SerDes 13. The multiple containers include, for example, about 2 to 100 containers. The number of containers included in the frame structure changes depending on the signal transmission state. Parity is a bit or a bit string for error detection or error correction processing.

[0070] The container structure includes a header, payload, and parity. The header includes address information indicating the destination of the payload. The payload is the main part of the signal being transmitted and received. In addition to the video signal, the payload includes OAM (Operations, Administration, Maintenance) for SerDes control. Parity is a bit or bit string for error detection or error correction processing of the payload.

[0071] Palyload includes the following information: CLK value, Cmd_mode, Slave Adr, length, data, and End of data. CLK value is the operating clock of Slave 22, i.e., the SCL frequency used by Slave SerDes 13 for I2C communication with Slave 22. Cmd_mode indicates the content of the command sent from Master 21. Slave Adr is address information that identifies Slave 22. length is the length of the data sent from Master 21. End of data is the end position of the data sent from Master 21.

[0072] When the Cmd_mode is extended to two bytes, the most significant byte of the Cmd_mode may be assigned to the Cmd_ID. The Cmd_ID is identification information for distinguishing and identifying commands transmitted from the master 21.

[0073] When data communication is performed between the Master 21 and the Slave 22 in the TDD method, the signal ratio of the signal Rv from the Master 21 to the Slave 22 and the signal ratio of the signal Fw from the Slave 22 to the Master 21 in one TDD cycle can be changed by changing the number of containers included in each frame structure. Note that the container sizes of the signal Rv and the signal Fw may be the same or different.

[0074] Next, a case where the Master 21 performs a random write to the Slave 22 will be described. When the Master 21 performs a random write to the Slave 22, the Master 21 transmits a command set to the Master SerDes 7 by I2C communication. The protocol of the I2C communication during random write is shown in FIG. 6, and the Master 21 transmits a command set to the Master SerDes 7 in accordance with this protocol.

[0075] Fig. 7 is a diagram showing signals transmitted and received between the Master 21 and the Master SerDes 7. In this specification, the I2C protocol signal from the Master 21 to the Master SerDes 7 is called the M I2C protocol (M2SerDes). As shown in Fig. 7, the M I2C protocol includes S (START condition), SerDes1 St_adr, W, mem1 Sub_adr, mem1 Sub_adr, I2C setting CLK, Cmd_mode, last target Slave adr, last target Sub adrH, last target Sub adrL, Data lengthH, Data lengthL, Data x 2, and P (STOP condition). Details of this information will be described later.

[0076] Data in the I2C protocol transmitted from the Master 21 is stored in table 1 in mem1 of the Master SerDes 7. Figure 8 is a diagram showing an example of data stored in table 1 in mem1. For each piece of data, the CLK_value, which is the setting value of the I2C setting clock CLK, is stored in the address of mem1 indicated by the Sub_Adr transmitted by the M I2C protocol, and thereafter, data transmitted by the M I2C protocol is stored in incrementing addresses of mem1. As described above, the CLK_value is 1 byte of information indicating the SCL frequency, and the Slave 22 performs I2C communication with the Slave SerDes 13 at the operating frequency specified by the CLK_value.

[0077] Cmd_mode in Sub_Adr[1] is 1-byte information indicating the contents of the command received by the Master SerDes 7 from the Master 21. FIG. 9 is a diagram showing the meaning of each bit in the 1-byte of Cmd_mode. The lower 3 bits [2:0] in the 1-byte of Cmd_mode indicate the following information according to the value of the bit string. 000 indicates the transmission format of a write command. 001 indicates the transmission format of a read command. 010 indicates the transmission format of an ACK / NACK signal. 011 indicates the transmission format of a read or response. 1XX indicates the transmission format of a special command, and the operation is determined by the value of 1-byte data transmitted following Cmd_mode. In this embodiment, writing 0xFF indicating cmd_done, which is defined as a special command and will be described later, indicates that a batch transmission will be performed by cmd_done, as will be described later.

[0078] If Cmd_mode[3] is 0, it indicates random location. For example, if the Slave 22 is the image sensor 12, it indicates (random) access to any Sub_adr of mem3 in the image sensor 12 or any Sub_adr of the memory in the temperature sensor 14.

[0079] If Cmd_mode[3] is 1, it indicates the current location. In other words, it indicates (sequential) access to the last Sub_adr+1 of the memory written or read, for example, if the target Slave 22 is the image sensor 12, and the Sub_adr last written or read to mem3 in the image sensor 12 is "M", it indicates (sequential) access to "M+1".

[0080] Cmd_mode[4] is reserved and is not specified at this time.

[0081] If Cmd_mode[6] is 0, it indicates normal. If Cmd_mode[6] is 1, it indicates retry. In this case, when the Slave SerDes 13 receives a NACK signal from the Slave 22, it instructs the Slave 22 to resend the Write or Read command set.

[0082] If Cmd_mode[7] is 0, it indicates that when the end determination P (STOP condition) is received at the end of data, it is determined that the I2C protocol signal transmitted from the Master 21 has ended. If Cmd_mode[7] is 1, it indicates that the end determination is made at the end of data and cmd_done. More specifically, it indicates that when P (STOP condition) is received after cmd_done, it is determined that the I2C protocol signal transmitted from the Master 21 has ended.

[0083] The Slave Adr of Sub_Adr[2] in table 1 in FIG. 8 is 1-byte information indicating the address of the Slave 22 to be written to or read from (for example, 0x02 for the image sensor 12).

[0084] Sub_adrH of Sub_Adr[3] is the upper 1 byte information of the address indicating which Sub_adr in mem 19 (mem 3) in the image sensor 12 is to be accessed, or which Sub_adr in mem 20 in the temperature sensor 14 is to be accessed.

[0085] Sub_adrL of Sub_Adr[4] is the lowest byte of address information indicating which Sub_adr in mem 19 (mem 3) in the image sensor 12 is to be accessed, or which Sub_adr in mem 20 in the temperature sensor 14 is to be accessed.

[0086] LengthH of Sub_Adr[5] is the upper byte of the data length of wdata (Data[N-2:7]). LengthL of Sub_Adr[6] is the lower byte of the data length of wdata (Data[N-2:7]).

[0087] The wdata in Sub_Adr[N-2:7] is data to be written to the Slave 22 or data to be read from the Slave 22. One byte of data is stored in each bit of Sub_Adr.

[0088] The End of Data of Sub_Adr[N-1] is written with 0x9F when P (STOP condition) is received from Master 21. By default, an initial value such as 0x00 is written.

[0089] Figure 10 shows the types and bit strings of I2C commands transmitted on the communication standard X protocol. In Figure 10, ACK is a positive response and indicates that the process has been completed successfully. NACK is a negative response and indicates that the process has not been completed successfully.

[0090] Repeated_start is a start flag indicating that the I2C protocol signal is continuing. Specifically, it corresponds to Sr in the I2C combined format shown in Figure 6. This flag is issued before starting the next I2C communication when the next I2C communication is to be started without terminating the previous I2C communication (without issuing a P (STOP condition)) after starting the I2C communication from the Master 21 to the Master SerDes 7 (after issuing an S (START condition)).

[0091] The end of data in the I2C command transmitted on the communication standard X protocol indicates P (STOP condition). When Cmd_mode[7] = 0, it indicates that the I2C protocol signals from S (START condition) to P (STOP condition) are sent to the Slave SerDes 13.

[0092] The cmd_done in the I2C command transmitted on the communication standard X protocol is a special command when the next data is 0xFF when Cmd_mode[7]=1. The cmd_done is information that instructs the Slave SerDes 13 to send one or more sets of I2C protocol signals from S (START condition) to P (STOP condition) as one set.

[0093] The Rsv_command in the I2C command transmitted on the communication standard X protocol is reserved and is not specified at present. The data in the I2C command indicates data to be written to the slave 22 or data read from the slave 22.

[0094] 10 shows an example in which the I2C command transmitted on the communication standard X protocol is expressed in 8 bits, but it is not limited to this and may be expressed in 9 bits or more. For example, when expressed in 9 bits, if the I2C protocol signal is "data", the 1 bit on the MSB side is set to "0", and if the I2C protocol signal is other than "data", the 1 bit on the MSB side is set to "1", making it easy to distinguish whether the I2C protocol signal is "data" or something else.

[0095] In this specification, as a prerequisite for data communication between the Master 21 and the Slave 22 in the communication system 3 in Fig. 1, the addresses of the devices are assigned as follows, for example: the address of the ECU 4 is 0x00, the address of the SoC 5 is 0x01, the address of the Master SerDes 7 is 0x10, the address of the Slave SerDes 13 is 0x11, the address of the image sensor 12 is 0x02, and the address of the temperature sensor 14 is 0x03.

[0096] In this specification, the transmission of an I2C protocol signal from the Master 21 to the Master SerDes 7 is referred to as the M I2C protocol (M2SerDes) (step S1). As shown in Fig. 7, S (START condition) in the M I2C protocol (M2SerDes) indicates the start of an I2C protocol signal from the Master 21 to the Slave 22. In the I2C protocol, it is specified that "S", "Sl_adr", "W (Write) or R (Read)", and "Sub_adr" are transmitted in this order.

[0097] SerDes1 St_adr(Sl_adr(0x10)) means that the address is specified as 0x10, which is the address of Master SerDes 7. W indicates that this is a write command.

[0098] mem1 Sub_adr(Sub_adr(0x00)) indicates that "0x00" is specified as the upper bits of Sub_adr of mem11a.

[0099] Mem1 Sub_adr(Sub_adr(0x00)) is information specifying "0x00" as the lower bits of the Sub_adr of mem 11a. In other words, it indicates that the Master 21 specifies that "0x0000" of mem 11a is to be accessed.

[0100] The I2C setting CLK(DATA(0x04)) indicates that "0x04 (400kHz)" is specified as the CLK_value.

[0101] Cmd_mode(DATA(0x00)) indicates that Cmd_mode[7:0]=0x00 is specified.

[0102] The final Slave adr(DATA(0x02)) indicates that “0x02” is specified as the address of the target Slave 22. The value “0x02” indicates that the Master 21 has selected the image sensor 12.

[0103] Final target Sub adrH(DATA(0x00)) indicates that "0x00" is specified as the upper bits of Sub_adr of mem3 (the target to be finally accessed) in image sensor 12.

[0104] Final target Sub adrL(DATA(0x00)): This indicates that "0x00" is specified as the lower bits of Sub_adr of mem3 (the final target to be accessed) in image sensor 12. In other words, this indicates that Master 21 has specified that "0x0000" of mem3 is to be accessed.

[0105] Data lengthH(DATA(0x00)) indicates that "0x00" is specified as the upper bits of the value indicating the length of the data that follows.

[0106] Data lengthL(DATA(0x10)) indicates that the lower bits of the value that indicates the length of the data that follows are set to "0x10". In other words, length[15:0]=0x0010, which indicates that Master 21 has specified 16 bytes.

[0107] (DATA x 2): 16 bytes of data are sent.

[0108] P (STOP condition) indicates a signal indicating the end of the I2C protocol from Master 21 to Slave 22.

[0109] In parallel with the data transmission from the Master 21 to the Master SerDes 7 in the M I2C protocol, the Master SerDes 7 starts transmitting the information of table 1 in Fig. 8 stored in the memory 11a to the Slave SerDes 13 and transmits an ACK signal to the Master 21 in the S I2C protocol (SerDes2M) (step S1). Every time the Master SerDes 7 receives each byte constituting the I2C protocol signal from the Master 21, it returns an ACK signal to the Master 21.

[0110] As the Master 21 receives an ACK signal immediately, it can shorten the SCL low period shown in Figure 2, which is extended by the Master SerDes 7. However, there is a lower limit to the SCL low period, and it cannot be set to zero. This is because SCL low is the period during which the SCL (I2C clock signal) is low, and if SCL low falls below the lower limit, it will no longer function as an I2C clock signal.

[0111] The Master SerDes 7 converts a signal based on the I2C protocol signal from the Master 21 to the Master SerDes 7, i.e., the I2C protocol signal transmitted from the Master 21 to the Master SerDes 7, into an I2C command packet using table 2 in Fig. 10, and writes the converted packet into table 1 in Fig. 8. For example, the Master SerDes 7 writes the following data conversion information into table 1 in Fig. 8. This is called mem1 (Save I2C command packet) (step S2).

[0112] (data)CLK_value(0x04) writes "0x04 (400kHz)" as the CLK_value. (data)Cmd_mode(0x00) writes Cmd_mode[7:0]=0x00. (data)sl_adr(0x02) writes "0x02" as the address of the target Slave 22. Since it is "0x02", image sensor 12 is selected. (data)Sub_adrH(0x00) writes "0x00" as the upper bits of Sub_adr of mem3 (the final target to be accessed) in image sensor 12. (data)Sub_adrL(0x00) writes "0x00" as the lower bits of Sub_adr of mem3 (the final target to be accessed) in image sensor 12. (data)lengthH(0x00) writes "0x00" as the upper bit of the value indicating the length of the data that follows. (data)lengthL(0x10) writes "0x10" as the lower bit of the value indicating the length of the data that follows. For example, length[15:0]=0x0010, which writes 16 bytes. (data)wdata×2 writes 16 bytes of data. End of data writes "0x9F".

[0113] 11 is a continuation of FIG. 7 and shows a process of transmitting a Random Write Command from the Master SerDes 7 to the Slave SerDes 13 in accordance with the communication standard X. The S I2C protocol (Sedes2M) and mem1 (Save I2C command Packet) (steps S1 and S2) in FIG. 11 are the same as those described in FIG. 7.

[0114] The Master SerDes 7 reads the data in table 1 in FIG. 8, converts the data into a signal conforming to the communication standard X protocol, and transmits the data to the Slave SerDes 13 via a Packetized I2C on PHY (depends on the respective PHY specifications) forward channel (step S3).

[0115] When Cmd_mode=0x00, Cmd_mode[7]=0 and "End judgment for each End of data" are set. Therefore, when LINK 11 of Master SerDes 7 receives "End of data (0x9F)", it writes "End of data (0x9F)" to table 1 in Fig. 8 and also reads table 1 in Fig. 8 and transmits it to Slave SerDes 13 via Rv.Tx 10.

[0116] In the case of Cmd_mode=0x80, when End of data and cmd_done are written, the data in mem1 (table1 in Figure 8) is collectively converted into an I2C command and sent to the Slave SerDes 13 via Rv.Tx10.

[0117] The Slave SerDes 13 extracts an I2C command packet from the received communication standard X protocol signal and writes it to table 3 in mem2. In FIG. 11, this is called mem2 (Save I2C command Packet) (step S4). FIG. 12 is a diagram showing an example of table 3 in mem2 during a Random Write operation. The same information as that in table 1 in FIG. 8 is written to table 3.

[0118] The Slave SerDes 13 performs protocol conversion on the data received on the reverse link and restores the data originally stored in mem1 within mem2. The Slave SerDes 13 determines the end of restoration of the I2C command packet by restoring the end of data.

[0119] Fig. 13 is a continuation of Fig. 11, and shows the process of transmitting data by I2C communication from the Slave SerDes 13 to the Slave 22. mem2 (Save I2C command Packet) (step S4) in Fig. 11 is the one described in Fig. 11.

[0120] When the Slave SerDes 13 writes End of data to table 3 in mem2 shown in FIG. 12, it reads table 3, converts the format to an I2C protocol signal, and transmits it to the Slave 22 via the I2C 13a by M I2C protocol (Sedes2Slave) (step S5).

[0121] (data) Cmd_mode(0x00) issues an S (START condition) and generates a W (Write) command or an R (Read) command according to the value of Cmd_mode[0] after the next Sl_adr is issued.

[0122] (data)Sl_adr(0x02) indicates that "0x02" is specified as the Sl_adr mentioned above. As it is "0x02", image sensor 12 is selected. (data)Sub_adrH(0x00) indicates that "0x00" is specified as the upper bits of the address of mem3 (the final target to be accessed) within image sensor 12. (data)Sub_adrL(0x00) indicates that "0x00" is specified as the lower bits of the address of mem3 (the final target to be accessed) within image sensor 12. (data)wdata×2 indicates 16 bytes of data.

[0123] The Slave 22 sequentially returns an ACK signal indicating that the signal has been normally received to the Slave SerDes 13 using the SIC protocol (Slave2SerDes) (step S5).

[0124] While data is being transmitted from the Slave SerDes 13 to the Slave 22 by I2C communication, information similar to that shown in FIG. 12 is stored in table 3 in mem2.

[0125] When the Slave SerDes 13 has Cmd_mode[6]=0 and all signals returned from the Slave 22 are ACK signals, it writes ACK to Sub_Adr=N of table 3, and when there are one or more NACK signals, it writes NACK.

[0126] When the Slave SerDes 13 has Cmd_mode[6]=1, if all signals returned from the Slave 22 are ACK signals, it writes ACK to Sub_Adr=N in table 3, and if there is one or more NACK signals, it performs a re-write. If the second signal is also a NACK signal, it writes NACK to Sub_Adr=N in table 3. Figure 15 shows the state of the memory area of ​​mem2 before the memory area is released in response to a Random Write Command, when I2C communication between the Slave SerDes 13 and Slave 22 is completed and ACK or NACK is written to Sub_Adr=N.

[0127] As a method of generating the ACK or NACK to be written to Sub_Adr=N in table 3 in mem2, for example, a logical AND of the ACK signal and NACK signal returned from Slave 22 may be taken.

[0128] Fig. 14 is a continuation of Fig. 13, and shows a process of sending a reply to the Random Write Command from the Slave SerDes 13 to the Master SerDes 7 using the communication protocol X. The S I2C protocol (Slave2SerDes) (step S5) in Fig. 14 is the one described in Fig. 13.

[0129] The Slave SerDes 13 converts the I2C communication result with the Slave 22 into a signal of the communication standard X protocol and transmits it to the Master SerDes 7 through the Packetized I2C on PHY (depends on the PHY specification) forward channel (step S6). When the Slave SerDes 13 writes ACK or NACK to Sub_Adr=N of table 3 in mem2, it reads table 3 (Sub_Adr 0 to N) and transmits necessary information (in this embodiment, Data[7:0] when Sub_Adr is 2 and N, and also includes Cmd_ID when Cmd_mode is extended to 2 bytes) to the Master SerDes 7. When the transmission is completed, the Slave SerDes 13 releases the storage area of ​​mem2 shown in FIG. 15.

[0130] Here, since mem1 and mem2 occupy the same memory area (Sub_Adr = 0 to N-1), Slave SerDes 13 knows the Sub_Adr of mem1 to which it should write next (the Sub_Adr in mem2 is free and to which it has written ACK / NACK). Slave SerDes 13 also understands that when it writes to Slave 22, it must send back two bytes (the Slave adr that performed I2C communication and the result of the I2C communication) to Master SerDes 7.

[0131] Figure 16 is a sequel to Figure 14, and shows the operation of the Master SerDes 7. The Packetized I2C on PHY (depends on the each PHY specification) forward channel (step S6) in Figure 16 is the one explained in Figure 14. The Master SerDes 7 extracts an I2C command packet from the communication standard X protocol signal received from the Slave SerDes 13, and writes it to Sub_Adr N to N+9 of table1 in mem1.

[0132] Figure 17 is a diagram showing table 1 in mem1 after receiving reply data from the Slave SerDes in response to the Random Write Command. Sub_Adr N to N+6 and N+9 in table 1 store the I2C command packet generated by the I2C Cmd Unit in the Slave SerDes 13 in Figure 14. Sub_Adr N+7 and N+8 in table 1 in Figure 17 store the Slave Adr of sub_Adr(2) in mem2 and the ACK or NACK of sub_Adr(N) that are read and transferred.

[0133] 18 is a diagram showing the process when the Master 21 polls the Master SerDes 7 for a Random Write Command and reads out the execution result. The Master 21 polls the SerDes 1 for the request command result using the MI2C protocol (M2SerDes) (step S7). The Master 21 polls Sub_Adr=N+9 in table 1, and if it is 0x9F, it reads Sub_Adr=N+8 and judges whether it is ACK or NACK.

[0134] For example, when the "16-byte write to Slave 22" requested to Master SerDes 7 is completed, End of Data (0x9F) and the resulting ACK (0x81) can be read. Note that in this example, 1 byte is read, the End of Data result is checked to determine whether polling should be performed, and 1 byte is read again to read ACK or NACK, but 2 bytes may be read at once to determine the polling result and the I2C communication result to Slave 22. If a NACK is returned, Master 21 can check whether the corresponding Slave 22 sent the NACK by reading the Slave adr of Sub_adr (N+7).

[0135] 17 is a diagram showing an example of data stored in mem1. Since the Master 21 issues a write command to the Master SerDes 7 by itself, it knows the access point of mem1 of the Master SerDes 7. Similarly, since the Master SerDes 7 stores data in mem1 by itself, it knows the access point of mem1. For example, when writing to the Slave 22, if the reply is 2B, the Header will be 7Byte+2BByte+EoD(1Byte)=10Byte, and the next Sub_Adr will be N+10=34.

[0136] Fig. 19 is a diagram showing the transmission of a signal from the Master 21 to the Master SerDes 7 to release the storage area of ​​mem1 as a Random Write operation end process. Fig. 20 is a diagram showing the data stored in mem1 before the storage area for the Random Write Command is released. The Master 21 performs M I2C protocol processing, S I2C protocol processing, and mem1 (Save I2C command packet) processing, reads Sub_Adr=N+8 of table1, and if ACK, writes Clear to Sub_Adr=N+10 of table1 in mem1 as shown in Fig. 20 (step S8). When this Clear is written, the Master SerDes 7 releases the memory area of ​​table1 in mem1.

[0137] When 0xFF is written to Sub_adr (N+10) in mem1, the Master SerDes 7 releases the memory area of ​​mem1 that it has been using as the end process of the request command. Alternatively, the Master 21 may release the memory area of ​​mem1 in accordance with a write command that initializes the memory area used by the Master 21.

[0138] 21 to 23 are diagrams showing an I2C command batch transmission operation. FIGS. 21 and 22 are diagrams showing batch command transmission with Cmd_mode[7]=1. FIG. 23 is a diagram showing details of data stored in table 1 in mem1 during batch command transmission with Cmd_mode[7]=1. The I2C command batch transmission operation is a write operation when Cmd_mode [2:0]=000 and Cmd_mode [7]=1. Specifically, this shows a case where Master 21 writes 8 bytes of data to image sensor 12 (Sl_adr=0x02) and temperature sensor 14 (Sl_adr=0x03) in a batch.

[0139] 21 shows a write operation of 8 bytes of data to the image sensor 12 (Sl_adr=0x02), and block b2 shows a write operation of 8 bytes of data to the temperature sensor 14 (Sl_adr=0x03). Block b3 shows the end of the batch operation with cmd_done and P (STOP condition).

[0140] 21 and 22, in the operation of b1, the Master 21 issues a command to the Master SerDes 7 in the MI2C protocol (M2SerDes) to request I2C communication with the Slave 22 (step S11). When the Master SerDes 7 receives data from the Master 21, it returns an ACK in the MI2C protocol at its own timing (step S11). This request command indicates a batch operation of I2C commands with Cmd_mode [2:0] = 000 and Cmd_mode [7] = 1, so even if End of Data is saved in mem1, transfer to Slave SerDes 13 will not start. The operation of the following b2 is the same as b1 except that Slave_adr is different from temperature sensor 14 (Sl_adr = 0x03). The final b3 indicates that Cmd_code[2]=1 is a special code, and the following Data indicates a special code. In this example, by successively receiving a special cmd_done (0xFF) indicating the end of the command and the STOP condition (step S12), the Master SerDes7 transmits the received data (Fig. 23) stored in mem1 in a batch to the Slave SerDes13 as a batch I2C command transmission.

[0141] In this embodiment, when the Master 21 sets Cmd_mode[7]=1, it is prohibited to set Cmd_mode[7]=0 thereafter until 0xFF is written to cmd_done.

[0142] 24 to 34 show the Random Read operation (the Read operation when Cmd_mode [3:0]=0001 and [7]=0). The Random Read operation differs significantly from the Random Write operation in the following ways.

[0143] In a Read operation, as shown in FIGS. 24 to 27, first, the Master 21 writes a Read request to the Master SerDes 7 (FIGS. 24 to 25), and the Master SerDes 7 writes this Read request to the Slave SerDes 13 (FIGS. 26 to 27).

[0144] Then, as shown in the processing of the M I2C protocol (Sedes2Slave) in step S25 of Figures 28A and 29, it is written that the processing target is mem3 of image sensor 12 using "S", "SL_adr", "W", and "Sub_adr", and then a read is performed from the processing target using "Sr", "SL_adr", and "R".

[0145] The procedure of the Random Read process will be described below in order with reference to Figs. 24 to 34. Fig. 24 shows the procedure of transmitting an I2C command packet from the Master 21 to the Master SerDes 7. First, as shown in step S21 of Fig. 24, the M I2C protocol (M2SerDes) process is performed. Here, the Master 21 issues a command to the Master SerDes 7 to request I2C communication with the Slave 22. The command set transmitted from the Master 21 includes SerDes1 St_adr, mem1 Sub_adr, mem1 Sub_adr, I2C setting CLK, Cmd_mode, final target Slave adr, final target Sub_adrH, final target Sub_adr, Data lengthH, Data lengthL, and P (STOP condition).

[0146] The Master SerDes 7 returns an ACK signal to the Master 21 using the SI2C protocol (SerDes2M) every time it receives an information unit from the Master 21 (step S21). The Master SerDes 7 also stores the received I2C command packet in mem1 (step S22). As shown in FIG. 25, (data) CLK_value, (data) Cmd_mode, (data) Sl_adr, (data) Sub_adrH, (data) Sub_adrL, (data) length, (data) lengthL, and End of data are stored in mem1.

[0147] Fig. 26 is a diagram showing a process performed following Fig. 24, in which the Master SerDes 7 transmits a Random Read command to the Slave SerDes 13 using the communication protocol X. The Master SerDes 7 converts the protocol of the data in mem1 and transmits it to the Slave SerDes 13 using the Packetized I2C on PHY (depends on the respective PHY specifications) forward channel (step S23). More specifically, when End of data is stored in mem1 with Cmd_mode=0x00, the data in mem1 is collected, converted into an I2C command, and transmitted to the Slave SerDes 13 via the reserved link. On the other hand, when End of data is stored in mem1 with Cmd_mode=0x10 and cmd_done is written, the data in mem1 is collected, converted into an I2C command, and transmitted to the Slave SerDes 13 via the reserved link. The Slave SerDes 13 converts the protocol of the received data of the reserve link and stores the original data stored in mem1 in mem2 (step S24). The Slave SerDes 13 determines that the restoration of the I2C command packet is completed when the End of Data is restored. Figure 27 is a diagram showing an example of the stored data in mem2.

[0148] Fig. 28A is a diagram showing a process of transmitting a random read command from the Slave SerDes 13 to the Slave 22, which is performed following Fig. 26. The Slave SerDes 13 transmits an I2C command packet to the Slave 22 by the M I2C protocol (SerDes2Slave) (step S25). The Slave 22 returns an ACK signal to the Slave SerDes 13 by the S I2C protocol (Slave2SerDes) for each received information unit, and transmits rdata to the Slave SerDes 13 sequentially from the addresses specified by Sub_adrH and Sub_adrL. As shown in Fig. 29, the Slave SerDes 13 transmits an ACK signal indicating that the rdata has been received to the Slave 22 for each byte, and stores the rdata from the Slave 22 in mem2.

[0149] It can be seen that the Slave SerDes 13 and the Slave 22 in FIG. 28A are communicating using a protocol conforming to the I2C communication protocol during the Random Read operation shown in FIG. 28B.

[0150] Fig. 30 is a diagram showing a process performed following Fig. 28, in which the Slave SerDes 13 sends a reply to the Read command to the Master SerDes 7 using the communication standard X. The Slave SerDes 13 sends rdata via a packetized I2C on PHY (depend on the respective PHY specification) forward channel (step S26). More specifically, the Slave SerDes 13 converts the I2C communication result with the Slave 22 (Rdata, ACK) + End of data, and sends it to the Master SerDes 7 via the forward link. Fig. 29 shows the data stored in table 3 in mem2 after the Random Read operation.

[0151] Fig. 31 is a diagram showing the processing of the Master SerDes 7 when a reply to the Random Read Command is received from the Slave SerDes 13, which follows Fig. 30. The Master SerDes 7 converts the protocol of the received data of the forward link, and stores the received data including the I2C communication result (ACK / NACK) with the Slave 22 in mem1. Fig. 32 is a diagram showing an example of data in mem1 after receiving reply data from the Slave SerDes 13 to the Random Read Command.

[0152] 33 is a diagram showing a process in which the Master 21 polls the Master SerDes 7 for a Random Read Command and reads out the execution result. The Master 21 polls the Master SerDes 7 for the request command result using the MI2C protocol (M2SerDes) (step S27). The Master 21 returns an ACK to the Master 21 at its own timing without waiting for an ACK from the Slave 22 side (step S27).

[0153] When the result of the "16-byte read to Slave 22" that Master 21 requested Master SerDes 7 is finished, it can read End of data (0x9F) and the resulting ACK (0x81). If the End of data read result is anything other than 0x9F, it continues polling. In this example, it checks the End of data result with a 1-byte read to determine whether polling is necessary, and then reads rdata (16 bytes) + ACK / NACK with a 17-byte read. However, it is also possible to read 18 bytes at once to determine the polling result and the I2C communication result to Slave 22. If the result is a NACK, Master 21 can check whether the NACK is from the relevant Slave 22 by reading the Slave adr of Sub_Adr (15).

[0154] 34 is a diagram showing an example of data stored in table1 in mem1 before the memory area for the Random Read Command is released. A 16-byte read from Slave 22 is Header (7 bytes)+Sl_adr (1 byte)+rdata (16 bytes)+A (1 byte)+End of data (1 byte)=26 bytes, so Sub_adr=8 to 33 are used, and the next Sub_adr is N=34.

[0155] 19 is a diagram showing transmission of a signal from the Master 21 to the Master SerDes 7 to release the storage area of ​​mem1 as a Random Read operation end process. The Master 21 completes reading the request command result using the MI2C protocol (M2SerDes) and issues a clear process command to the Master SerDes 7 (step S28). When 0xFF is written to mem1 Sub_adr (N), the Master SerDes 7 may release the area of ​​mem1 that was used as the end process of the request command, or the Master 21 may issue a write command to initialize the memory area that was being used.

[0156] Fig. 34 is a diagram showing an example of data stored in table 1 in mem1. Clear is written to Sub_adr (N). Fig. 35A is a diagram showing the process when a current read is performed. Fig. 35B is a diagram showing the I2C protocol when a current read is performed. Fig. 36 is a diagram showing an example of data stored in table 3 in mem2 when a current read is performed.

[0157] FIG. 28A describes the process in which Slave SerDes 13 performs a random read on Slave 22. However, as shown in FIG. 35A, a random read must be performed the first time mem3 in Slave 22 is accessed, but a current read may be used from the second time onwards.

[0158] When End of data or End of data and cmd_done are written to mem2, the Slave SerDes 13 converts the data written to mem2 into an I2C protocol and performs I2C communication with the Slave 22. When performing a current read (when Cmd_mode[3:0]=1001), Sub_adrH and Sub_adrL in mem2 shown in Fig. 36 are not used. Therefore, the I2C command protocol sent from the Slave SerDes 13 to the Slave 22 is reduced by 2 bytes.

[0159] It can be seen that the Slave SerDes 13 and the Slave 22 in FIG. 35A communicate with each other using a protocol conforming to the I2C communication protocol shown in FIG. 35B.

[0160] In this manner, in this embodiment, when data communication is performed between the Master 21 and the Slave 22, the Master SerDes 7 and the Slave SerDes 13 are provided between the Master 21 and the Slave 22, and when the Master SerDes 7 receives a command sent by the Master 21 to the Slave 22, the Master SerDes 7 returns an ACK to the Master 21 at its own discretion without waiting for an ACK from the Slave 22. This allows the Master 21 to quickly receive the ACK and quickly perform processing after receiving the ACK. In other words, the Master 21 can shorten the period in which the clock is stretched until the Master 21 receives the ACK, and the processing efficiency of the Master 21 can be improved.

[0161] FIG. 37 is an equivalent block diagram of the communication system 3 according to this embodiment. In the communication system 3 of FIG. 37, when data communication is performed between a first external device corresponding to the Master 21 and a second external device corresponding to the Slave 22, a Master SerDes 7 and a Slave SerDes 13 are provided between the Master 21 and the Slave 22 to relay the data communication between the Master 21 and the Slave 22. The Master SerDes 7 has a first LINK (LINK 11). The Slave SerDes 13 has a second LINK (LINK 17). The first LINK generates a first output signal based on a first external signal from the Master 21 and outputs it to the Slave SerDes 13, and generates a third output signal based on a second output signal from the Slave SerDes 13 and outputs it to the Master 21. The second LINK generates a second output signal based on a second external signal from Slave 22 and outputs it to the Master SerDes 7, and also generates a fourth output signal based on the first output signal from the Master SerDes 7 and outputs it to the Slave.

[0162] Each of the first output signal, the second output signal, the first external signal and the second external signal includes Cmd_mode indicating the content of the command transmitted from Master 21, Slave_Adr identifying Slave 22, Sub_Adr internal address information of Slave 22, Length indicating the length of the data transmitted from Master 21, and End of Data indicating the end position of the data transmitted from Master 21.

[0163] By configuring the communication system 3 as shown in FIG. 37, high-speed data communication can be performed between the Master 21 and the Slave 22.

[0164] Between the Master SerDes 7 and the Slave SerDes 13, high-speed data communication can be performed, for example, by the TDD method or the FDD (Frequency Division Duplexing) method.

[0165] The present technology can be configured as follows. (1) A LINK that generates a first output signal based on a first external signal from a first external device and outputs the first output signal to a second external device, and generates a second output signal based on a second external signal from the second external device and outputs the second output signal to the first external device; Each of the first output signal and the second external signal is command information indicating the content of a command transmitted from the first external device; final destination device identification information that identifies a final destination device of data transmitted from the first external device; internal address information indicating an internal address of the final destination device; data length information indicating a length of data transmitted from the first external device; data end position information indicating an end position of the data transmitted from the first external device. (2) the final destination device identification information is placed next to the command information; the internal address information is placed next to the final destination device identification information; The communication device according to (1), wherein the data length information is placed following the internal address information. (3) A communication device according to (1) or (2), wherein the command information includes command format information that defines a command format on a predetermined communication standard between the communication device and the second external device. (4) A communication device according to any one of (1) to (3), wherein the command information includes data end determination condition information that specifies a condition for determining the end of data transmitted from the first external device. (5) A communication device described in any one of (1) to (4), wherein each of the first output signal and the second external signal further includes communication frequency information specifying a communication frequency between the second external device and the final destination device. (6) A communication device described in any one of (1) to (5), wherein the first output signal and the second external signal include a command that has been protocol-converted from an I2C (Inter-Integrated Circuit) communication command into a predetermined communication standard between the communication device and the second external device. (7) A communication device described in any one of (1) to (6), wherein the LINK transmits an ACK signal indicating a positive response or a NACK signal indicating a negative response to the first external device each time it receives each information unit constituting the first external signal from the first external device. (8) The LINK has a storage unit that stores a signal corresponding to the first external signal and a signal corresponding to the second external signal, The communication device described in any one of (1) to (7), wherein, when reception of the first external signal from the first external device is completed, the LINK performs protocol conversion on the first external signals received and stored in the memory unit together, and then generates the first output signal. (9) The communication device according to (8), wherein the protocol conversion by the LINK is a TDD (Time Division Duplex) protocol conversion. (10) The communication device described in (8) or (9), wherein the LINK transmits the first output signal to the second external device, and when it receives information from the second external device indicating that processing of the first output signal has been completed, stores a signal indicating completion of processing in the memory unit. (11) The communication device according to any one of (8) to (10), wherein the LINK releases the memory area of ​​the memory unit based on a command from the first external device. (12) A communication device described in any one of (1) to (11), wherein the LINK outputs processing completion information for the second external signal transmitted from the second external device to the first external device in response to a request signal from the first external device, or performs interrupt processing on the first external device and outputs the information to the first external device. (13) A communication device described in any one of (1) to (12), wherein the LINK receives the first external signal from the first external device, the first external signal including output instruction information instructing the output of the first output signal and transmission end information indicating the end of transmission of the first external signal. (14) A communication device described in any one of (1) to (13), wherein when a first value is received as data end determination condition information specifying a condition for determining the end of data transmitted from the first external device, the LINK recognizes that the first external signal transmitted from the first external device has ended when transmission end information indicating the end of transmission of the first external signal is received. (15) A communications device as described in any one of (1) to (14), wherein when a second value is received as data end determination condition information specifying the condition for determining the end of data transmitted from the first external device, the LINK recognizes that the first external signal transmitted from the first external device has ended when output instruction information instructing the output of the first output signal and transmission end information indicating the end of transmission of the first external signal are received, regardless of the value of the data end determination condition information received thereafter. (16) The communication device according to (8) or (9), wherein the LINK releases the storage area of ​​the storage unit after transmitting the first output signal to the second external device. (17) The above-mentioned LINK is outputting a signal obtained by performing protocol conversion for the second output signal on a signal based on the second external signal stored in the storage unit to the first external device for each information unit; and receiving each information unit constituting the first external signal output from the first external device a predetermined number of times or within a predetermined period of time. (18) a Master SerDes having a first LINK; a Slave SerDes having a second LINK; The first LINK generates a first output signal based on a first external signal from a Master and outputs the first output signal to the Slave SerDes, and generates a third output signal based on a second output signal from the Slave SerDes and outputs the third output signal to the Master; the second LINK generates the second output signal based on a second external signal from the Slave and outputs the second output signal to the Master SerDes, and generates a fourth output signal based on the first output signal from the Master SerDes and outputs the fourth output signal to the Slave; Each of the first output signal, the second output signal, the first external signal, and the second external signal is Command information indicating the content of a command transmitted from the Master; Final destination device identification information for identifying the Slave; Internal address information indicating an internal address of the Slave; Data length information indicating the length of data transmitted from the Master; and data end position information indicating an end position of the data transmitted from the Master.

[0166] The aspects of the present disclosure are not limited to the above-mentioned individual embodiments, but include various modifications that may be conceived by a person skilled in the art, and the effects of the present disclosure are not limited to the above-mentioned contents. In other words, various additions, modifications, and partial deletions are possible within the scope of the conceptual idea and intent of the present disclosure derived from the contents defined in the claims and their equivalents. [Explanation of symbols]

[0167] 1 Communication device, 3 Communication system, 4 ECU, 4a I2C, 5 SoC, 5a I2C, 7 Master SerDes, 8 I2C Cmd Unit, 9 Fw. Rx, 10 Rv. Tx, 11 LINK, 11a mem, 12 image sensor, 12a I2C, 13 Slave SerDes, 14 temperature sensor, 17 LINK, 19 mem, 20 mem, 21 Master, 22 Slave

Claims

1. a LINK that generates a first output signal based on a first external signal from a first external device and outputs the first output signal to a second external device, and that generates a second output signal based on a second external signal from the second external device and outputs the second output signal to the first external device; Each of the first output signal and the second external signal is command information indicating the content of a command transmitted from the first external device; final destination device identification information that identifies a final destination device of data transmitted from the first external device; internal address information indicating an internal address of the final destination device; data length information indicating a length of data transmitted from the first external device; data end position information indicating an end position of data transmitted from the first external device.

2. the final destination device identification information is placed next to the command information; the internal address information is placed next to the final destination device identification information; The communication device according to claim 1 , wherein the data length information is placed next to the internal address information.

3. The communication device according to claim 1 , wherein the command information includes command format information that defines a command format on a predetermined communication standard between the communication device and the second external device.

4. The communication device according to claim 1 , wherein the command information includes data end determination condition information that specifies a condition for determining an end of data transmitted from the first external device.

5. The communication device of claim 1 , wherein each of the first output signal and the second external signal further includes communication frequency information specifying a communication frequency between the second external device and the final destination device.

6. 2. The communication device according to claim 1, wherein the first output signal and the second external signal include a command obtained by protocol-converting an I2C (Inter-Integrated Circuit) communication command into a predetermined communication standard between the communication device and the second external device.

7. 2. The communication device according to claim 1, wherein the LINK transmits an ACK signal indicating a positive response or a NACK signal indicating a negative response to the first external device each time the LINK receives each information unit constituting the first external signal from the first external device.

8. the LINK has a storage unit that stores a signal corresponding to the first external signal and a signal corresponding to the second external signal; 2. The communication device according to claim 1, wherein when reception of the first external signal from the first external device is completed, the LINK performs protocol conversion on the first external signals received and stored in the memory unit together, and then generates the first output signal.

9. The communication device according to claim 8 , wherein the protocol conversion by the LINK is a TDD (Time Division Duplex) protocol conversion.

10. 9. The communication device according to claim 8, wherein the LINK transmits the first output signal to the second external device, and when the LINK receives information from the second external device indicating that processing of the first output signal has been completed, stores a signal indicating completion of processing in the memory unit.

11. The communication device according to claim 8 , wherein the LINK releases the storage area of ​​the storage unit based on a command from the first external device.

12. 2. The communication device according to claim 1, wherein the LINK outputs processing completion information for the second external signal transmitted from the second external device to the first external device in response to a request signal from the first external device, or outputs an interrupt request flag for interrupt processing for the first external device to the first external device.

13. 2. The communication device according to claim 1, wherein the LINK receives the first external signal from the first external device, the first external signal including output instruction information instructing the output of the first output signal and transmission end information indicating the end of transmission of the first external signal.

14. 2. The communication device of claim 1, wherein the LINK recognizes that the first external signal transmitted from the first external device has ended when a first value is received as data end determination condition information specifying a condition for determining the end of data transmitted from the first external device and when transmission end information indicating the end of transmission of the first external signal is received.

15. 2. The communication device of claim 1, wherein when a second value is received as data end determination condition information specifying a condition for determining the end of data transmitted from the first external device, the LINK recognizes that the first external signal transmitted from the first external device has ended when output instruction information instructing the output of the first output signal and transmission end information indicating the end of transmission of the first external signal are received, regardless of the value of the data end determination condition information received thereafter.

16. The communication device according to claim 8 , wherein the LINK releases the storage area of ​​the storage unit after transmitting the first output signal to the second external device.

17. The above-mentioned LINK is outputting a signal obtained by performing a protocol conversion for the second output signal on a signal based on the second external signal stored in the storage unit to the first external device for each information unit; 9. The communication device according to claim 8, further comprising: a first external device that outputs a first external signal to the first external device; and a second external device that outputs a first external signal to the first external device;

18. a Master SerDes having a first LINK; a Slave SerDes having a second LINK; The first LINK generates a first output signal based on a first external signal from a Master and outputs the first output signal to the Slave SerDes, and generates a third output signal based on a second output signal from the Slave SerDes and outputs the third output signal to the Master; The second LINK generates the second output signal based on a second external signal from the Slave and outputs the second output signal to the Master SerDes, and generates a fourth output signal based on the first output signal from the Master SerDes and outputs the fourth output signal to the Slave; Each of the first output signal, the second output signal, the first external signal, and the second external signal is Command information indicating the content of a command transmitted from the Master; Final destination device identification information for identifying the Slave; Internal address information indicating an internal address of the Slave; Data length information indicating the length of data transmitted from the Master; and data end position information indicating an end position of the data transmitted from the Master.

Citation Information

Patent Citations

  • Wireless base station apparatus

    JP2011239011A

  • Access control system, access control method, master station device, and slave station device

    JP2016149609A

  • Apparatus, system, and method for protocol conversion in transceiver modules

    US7317733B1