Server, device for accessing dual in-line memory control module and integrated circuit

By designing data read and write control modules and transmission control modules in the I3C host, efficient communication with the central processor is achieved, and the clock stop of the I3C host and slave is solved, and data transmission efficiency is improved.

CN119003420APending Publication Date: 2024-11-22SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411252138.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In DDR5 DIMM, the data transmission rate between the I3C master and slave is high, which leads to a clock stop when the CPU fails to read data in time, resulting in a decrease in data transmission efficiency or failure in transmission.

Method used

Design an integrated circuit, including a data read and write control module, a transmission control module and a host control module, communicate with the central processor through the data read and write bus, ensuring that the data transmission rate is higher than that of the communication bus, and achieving high efficiency between the host and the slave Data transfer to avoid clock stopping.

Benefits of technology

It effectively solves the problem of the clock stop of the master read and write slave, improves the data transmission efficiency, and ensures the stability and efficiency of the I3C bus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003420A_ABST
    Figure CN119003420A_ABST
Patent Text Reader

Abstract

The invention discloses a server, a device for accessing a dual in-line memory control module and an integrated circuit, which are applied to the technical field of communication, a data read-write control module is used for performing data transmission between a storage medium of the data read-write control module and a memory outside a host through a data read-write bus based on read-write instruction information of a register module; the memory is in communication connection with the central processing unit, and the communication rate of the memory and the data read-write control module is higher than that of the communication bus; the transmission control module is used for data transmission between the data read-write control module and the host control module; and the host control module is used for completing data transmission between the slave and the data read-write control module through the transmission control module. By applying the scheme of the invention, the problem of clock stalling easily generated when the host reads and writes the slave is effectively solved. Based on the design of the transmission control module, the integrated circuit can be specially used for realizing access for the DIMM, and the processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a server, a device for accessing a dual in-line memory control module, and an integrated circuit. Background Art

[0002] I3C (Improved Inter Integrated Circuit) is an improvement of I2C (Inter-Integrated Circuit). I3C is a two-wire bidirectional serial bus that can only be controlled by one I3C host at a time. And I3C is backward compatible with many older I2C devices, and I3C devices support higher speeds. In DDR4 (Double Data Rate 4th Generation) memory, on each DIMM (Dual-Inline-Memory-Modules), there are two devices connected to the I2C bus, namely the DIMM's temperature sensor and the register clock driver. The frequency of I2C is generally between 100KHz and 1MHz. The slower transmission speed is not prominent in this case, but the arrival of DDR5 has changed the situation. In DDR5's DIMM, there are generally 7 I3C slaves, which increases the number of IxC slaves in a serial chain from 16 to 56, greatly increasing the burden. The frequency of I3C can reach 12.5MHz, which is 12.5 to 125 times higher than that of I2C, greatly improving the startup speed, especially the startup speed of the server BIOS (Basic Input Output System).

[0003] See also Figure 1 , is a schematic diagram of the structure of the current I3C host. The register configuration module converts the signals on the register read-write bus into the internal read-write logic, thereby reading or writing the values ​​of each register, and can update the values ​​of specific registers according to the internal logic of the host. The host control logic module is a module that controls the sending and receiving of data when acting as a host. It will set different state machines according to different bus states, and control the sending and receiving of data according to the changes in the state machines. The host control logic module will control the state changes between state machines according to the bus monitoring signal and the register value, and then write and read the signal values ​​of the host write control module, host read control module, and host SIR control module according to these states.

[0004] In the current scheme, the data read and written by the I3C host is transmitted between the register read-write bus and the CPU (Central Processing Unit). The transmission command register can only notify the CPU to configure a new transmission command after each transmission is completed. For a bus with a relatively fast data transmission rate such as I3C, when the CPU does not read the data in the I3C host in time, it is easy to read and write data in time and cause the clock to stop, resulting in low data transmission efficiency or transmission failure. In addition, for the I3C operation of reading slave data, the I3C bus may also cause the clock to stop, or even transmission failure.

[0005] In summary, how to effectively solve the problem of clock stalling that is easily generated when the host reads and writes to the slave is a technical problem that technicians in this field urgently need to solve. Summary of the invention

[0006] The object of the present invention is to provide a server, a device for accessing a dual in-line memory control module and an integrated circuit, so as to effectively solve the problem of clock stalling that is easily generated when a host reads and writes a slave.

[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0008] In a first aspect, the present invention provides an integrated circuit, the integrated circuit serves as a host, is connected to a slave through a communication bus, and comprises: a data read and write control module, a transmission control module, a register module, and a host control module;

[0009] The data read / write control module is used to: obtain the read / write instruction information written into the register module, and based on the read / write instruction information, perform data transfer between its own storage medium and the memory outside the host through the data read / write bus;

[0010] Wherein, the memory is communicatively connected to the central processing unit, and the communication rate between the data read-write control module and the memory is higher than the communication rate of the communication bus;

[0011] The transmission control module is used to: when the host performs a specified type of communication with the slave, based on the value in the register module, transfer data between the storage medium of the data read and write control module and the host control module;

[0012] The host control module is used to control the communication between the host and the slave based on the value in the register module and the preset communication protocol, so that when the host performs a specified type of communication with the slave, the data transfer between the slave and the data read and write control module is completed through the transmission control module.

[0013] On the other hand, the data read and write control module includes a data read and write bus control unit, a data read and write logic unit, a first first-in first-out memory and a second first-in first-out memory;

[0014] The data read-write bus control unit is used to: transfer data with the memory outside the host through the data read-write bus and based on the protocol type of the data read-write bus;

[0015] The data read and write logic unit is connected in communication with the data read and write bus control unit, and is specifically used for:

[0016] In an idle state, when a read / write enable signal in the read / write instruction information is detected to be enabled, judging whether it is an in-band interrupt transmission mode based on a data transmission length in the read / write instruction information;

[0017] If not, based on the read / write instruction information, data is transferred between the first FIFO memory or the second FIFO memory and the memory outside the host according to a default transmission mode;

[0018] If yes, data is transferred between the second first-in first-out memory and the memory outside the host based on the read-write instruction information and in accordance with the in-band interrupt transmission mode.

[0019] On the other hand, based on the read / write instruction information, data is transferred between the first first-in first-out memory or the second first-in first-out memory and a memory outside the host according to a default transmission mode, including:

[0020] Acquire the read / write control signal in the read / write instruction information;

[0021] When the read / write control signal is a read / write control signal indicating a write transfer and the first first-in first-out memory is not full, based on the external memory read / write start address in the read / write instruction information and the data transfer length, data is read from the memory external to the host and written into the first first-in first-out memory;

[0022] When the read-write control signal is a read-write control signal indicating a read transfer and the second first-in-first-out memory is not empty, based on the external memory read-write start address in the read-write instruction information and the data transfer length, the data in the second first-in-first-out memory is read and written into the memory outside the host.

[0023] On the other hand, based on the read / write instruction information, data is transferred between the second first-in first-out memory and the memory outside the host in accordance with the in-band interrupt transmission mode, including:

[0024] Determining whether the second first-in first-out memory is empty;

[0025] If the second FIFO memory is empty, keep waiting;

[0026] If the second FIFO memory is not empty, based on the external memory read / write start address in the read / write instruction information, read the data of the specified length in the second FIFO memory and write it into the memory outside the host;

[0027] Determine whether the read / write enable signal is 0;

[0028] If the read / write enable signal is 0, it jumps to the idle state.

[0029] If the read / write enable signal is not 0, the write address of the memory outside the host is updated, and the operation of determining whether the second first-in first-out memory is empty is returned to be executed.

[0030] On the other hand, the transmission control module includes: a cross-clock domain conversion unit, a peripheral address conversion unit, a register address conversion unit, a transmission execution unit, a response and interrupt status generation unit, and a transmission control unit;

[0031] The cross-clock domain conversion unit is communicatively connected with the register module, and is used to convert the transmitted signal in different clock domains when communicating with the register module; wherein the clock domain used by the cross-clock domain conversion module is the main clock domain, and the clock domain used by the register module is the register clock domain;

[0032] The peripheral address conversion unit is used to: when the host communicates with the slave, based on the memory bank number of the slave and the slave number of the slave, convert the address of the slave;

[0033] The register address conversion unit is used to: generate an address parameter of an accessed register of the slave based on a device type of the slave when the host communicates with the slave;

[0034] The transmission execution unit is used to: under the control of the transmission control unit, perform data transmission between the storage medium of the data read and write control module and the host control module, and generate a check code carried in the transmitted data;

[0035] a response and interrupt status generating unit, configured to output a response and interrupt status signal under the control of the transmission control unit and the host control module when the host communicates with the slave;

[0036] The transmission control unit is used to: when the host performs a specified type of communication with the slave, based on the value in the register module and the transmission execution unit, realize data transfer between the storage medium of the data read and write control module and the host control module.

[0037] On the other hand, the transmission control module also includes a general command code transmission parameter conversion unit, which is used to:

[0038] Based on the universal command code, select to convert the register data in the corresponding universal command code register into its own output parameter, so as to be transmitted to the communication bus through the transmission execution unit;

[0039] When data originating from the communication bus is received through the transmission execution unit, register data in a corresponding general command code register is updated based on the received data originating from the communication bus and the general command code.

[0040] On the other hand, the register address conversion unit includes:

[0041] A serial detection hub register address conversion subunit, used for generating address parameters of a serial detection hub register;

[0042] A power management integrated circuit register address conversion subunit, used to generate address parameters of the power management integrated circuit register;

[0043] A temperature sensor register address conversion subunit, used to generate address parameters of the temperature sensor register;

[0044] The registered clock driver register address conversion subunit is used to generate address parameters of the registered clock driver register.

[0045] On the other hand, the transmission control unit is also used for:

[0046] When the in-band interrupt enable signal is detected to be enabled, the in-band interrupt processing flow is executed;

[0047] When it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, it is determined whether it is a general command code transmission;

[0048] If it is a general command code transmission, execute the general command code transmission process;

[0049] If it is not a general command code transmission, the default transmission process is executed.

[0050] On the other hand, when the in-band interrupt enable signal is detected to be enabled, the in-band interrupt processing flow is executed, including:

[0051] In the first state, when the in-band interrupt enable signal is detected to be enabled, the second state is entered; wherein, in the first state, the transmission control unit is in an idle state;

[0052] In the second state, the in-band interrupt enable signal is sent to the response and interrupt state generating unit, and it is determined whether the in-band interrupt has a data packet error check code according to the received in-band interrupt address signal and the in-band interrupt check register; if yes, the data packet error check enable signal connected to the transmission execution unit is pulled high, if not, the data packet error check enable signal is pulled low; when an external transmission completion signal is received, the third state is entered;

[0053] In the third state, the transmission completion signal is sent to the response and interrupt status generation unit, and based on the in-band interrupt length sent by the transmission execution unit, the corresponding transmission length signal is sent to the response and interrupt status generation unit, and jumps to the first state.

[0054] On the other hand, when it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, it is determined whether it is a general command code transmission; if it is a general command code transmission, the general command code transmission process is executed, including:

[0055] In the first state, when it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, the fourth state is entered;

[0056] In the fourth state, determining whether it is a general command code transmission; if it is a general command code transmission, entering the fifth state;

[0057] In the fifth state, determining whether the general command code is less than a first threshold;

[0058] If it is less than the first threshold, a general command code broadcast write is performed, and after completion, the state is jumped to the first state;

[0059] If it is not less than the first threshold, the general command code is directly read and written, and after completion, the state is jumped to the first state.

[0060] On the other hand, performing a general command code broadcast write and jumping to the first state after completion includes:

[0061] Entering a sixth state after determining that the general command code is less than the first threshold;

[0062] In the sixth state, waiting for the transmission execution unit to perform a general command code broadcast write, and when receiving a transmission completion signal, entering the twelfth state;

[0063] In the twelfth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then the system jumps to the first state.

[0064] On the other hand, directly reading and writing the general command code, and jumping to the first state after completion, includes:

[0065] Entering the seventh state after determining that the general command code is not less than the first threshold;

[0066] In the seventh state, it is determined whether the read / write bit in the command register is a value indicating writing, if yes, the eighth state is entered; if no, the tenth state is entered;

[0067] In the eighth state, the transmission execution unit is waited for to directly write the general command code, and when a transmission completion signal is received, the ninth state is entered;

[0068] In the ninth state, waiting for the transmission execution unit to directly write the load data, and when receiving a transmission completion signal, entering the twelfth state;

[0069] In the tenth state, the transmission execution unit is waited for to directly read the general command code, and when a transmission completion signal is received, the eleventh state is entered;

[0070] In the eleventh state, waiting for the transmission execution unit to directly read the load data, and when receiving a transmission completion signal, entering the twelfth state;

[0071] In the twelfth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then the system jumps to the first state.

[0072] On the other hand, the default transfer process is executed, including:

[0073] Determining a device type of the slave based on a slave number of the slave;

[0074] A default transfer process is performed based on the device type.

[0075] On the other hand, a default transmission process is performed based on the device type, including:

[0076] When the device type is a serial detection hub, executing a default transmission process to read and write data to the serial detection hub;

[0077] When the device type is a power management integrated circuit or a temperature sensor, executing a default transmission process to read and write data to the power management integrated circuit or the temperature sensor;

[0078] When the device type is a registered clock driver, a default transmission process is executed to read and write data to the registered clock driver.

[0079] On the other hand, when the device type is a serial detection hub, a default transmission process is executed to read and write data to the serial detection hub, including:

[0080] When the device type is a serial detection hub, entering a fourteenth state;

[0081] In the fourteenth state, it is determined whether the read / write bit in the command register is a value indicating writing, if yes, the fifteenth state is entered; if no, the sixteenth state is entered;

[0082] In the fifteenth state, the transmission execution unit is waited for to perform private writing of the serial detection hub, and the length of the data packet error check check code is output to the transmission execution unit, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0083] In the sixteenth state, the transmission execution unit is waited for to perform a private read of the serial detection hub, and a function of performing a packet error check on the transmission execution unit is enabled; when a transmission completion signal is received, the seventeenth state is entered;

[0084] In the seventeenth state, the error check code length of the data packet is output to the transmission execution unit according to the transmission length signal, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0085] In the twenty-sixth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then jumps to the first state.

[0086] On the other hand, when the device type is a power management integrated circuit or a temperature sensor, a default transmission process is executed to read and write data to the power management integrated circuit or the temperature sensor, including:

[0087] When the device type is a power management integrated circuit or a temperature sensor, entering the eighteenth state;

[0088] In the eighteenth state, it is determined whether the read / write bit in the command register is a value indicating writing, if yes, the nineteenth state is entered; if no, the twentieth state is entered;

[0089] In the nineteenth state, the transmission execution unit is waited for to perform private writing of the power management integrated circuit or the temperature sensor, and the error check code length of the data packet is output to the transmission execution unit, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0090] In the 20th state, the transmission execution unit is waited for to perform a private read of the power management integrated circuit or the temperature sensor, and a function of performing a data packet error check on the transmission execution unit is enabled; when a transmission completion signal is received, the 21st state is entered;

[0091] In the twenty-first state, the error check code length of the data packet is output to the transmission execution unit according to the transmission length signal, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0092] In the twenty-sixth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then jumps to the first state.

[0093] On the other hand, when the device type is a registered clock driver, a default transmission process is executed to read and write data to the registered clock driver, including:

[0094] When the device type is a registered clock driver, entering a twenty-second state;

[0095] In the twenty-second state, it is determined whether the read-write bit in the command register is a value indicating writing, if yes, the twenty-third state is entered; if no, the twenty-fourth state is entered;

[0096] In the twenty-third state, the transmission execution unit is waited for to perform the private write of the register clock driver, and the length of the data packet error check check code is output to the transmission execution unit, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0097] In the twenty-fourth state, the transmission execution unit is waited for to perform a private read of the register clock driver, and a function of performing a packet error check on the transmission execution unit is enabled; when a transmission completion signal is received, the twenty-fifth state is entered;

[0098] In the twenty-fifth state, the packet error check code length is output to the transmission execution unit according to the transmission length signal, and the function of performing packet error check on the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0099] In the twenty-sixth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then jumps to the first state.

[0100] On the other hand, the transmission execution unit includes a data packet error check subunit, a third first-in first-out memory, a fourth first-in first-out memory, and a transmission parameter output subunit;

[0101] The data packet error check subunit is used to, under the control of the transmission control unit, use the third first-in first-out memory and the fourth first-in first-out memory to perform data transmission between the storage medium of the data read and write control module and the host control module, and to generate a check code carried in the transmitted data;

[0102] The transmission parameter output subunit is used to transfer parameters to the host control module under the control of the transmission control unit.

[0103] On the other hand, the host is specifically connected to the slave through an upgraded two-wire serial bus, and the memory outside the host is a double rate synchronous dynamic random access memory.

[0104] In a second aspect, the present invention provides a device for accessing a dual in-line memory control module, comprising the integrated circuit as described above.

[0105] In a third aspect, the present invention provides a server, comprising the device for accessing a dual in-line memory control module as described above.

[0106] By applying the technical solution provided in the embodiment of the present invention, by adding a data read and write control module, when the host performs a specified type of communication with the slave, data is transferred between the storage medium of the data read and write control module itself and the memory outside the host, thereby effectively solving the problem of clock stalling that is easy to occur when the host reads and writes the slave in the traditional solution.

[0107] Specifically, when the host performs a communication of a specified type with the slave, the transmission control module can transfer data between the storage medium of the data read-write control module and the host control module based on the value in the register module. The host control module can perform communication control between the host and the slave based on the value in the register module and the preset communication protocol, so as to complete the data transfer between the slave and the data read-write control module through the transmission control module. The data read-write control module can obtain the read-write instruction information written into the register module, and based on the read-write instruction information, transfer data between its own storage medium and the memory outside the host through the data read-write bus. Therefore, it can be seen that when it is necessary to write data to the slave, based on the principle of the present application scheme, the data can be read from the memory outside the host through the data read-write bus by the data read-write control module, and then transferred to the slave through the transmission control module and the host control module. When it is necessary to read slave data, after the read data is transferred to the data read-write control module through the transmission control module and the host control module, it can be stored in the memory outside the host through the data read-write bus by the data read-write control module. Of course, the memory outside the host needs to be connected to the central processing unit, and the communication rate between the data read and write control module and the memory needs to be high, which should be higher than the communication rate of the communication bus between the host and the slave. Therefore, the present application solution will not cause the situation in the traditional solution where the clock stops because the CPU fails to read the data in the I3C host in time.

[0108] In summary, the solution of the present application effectively solves the clock stalling problem that is easily generated when the host reads and writes the slave. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0110] Figure 1 This is a schematic diagram of the structure of the current I3C host;

[0111] Figure 2 A schematic diagram of the structure of an integrated circuit provided by a specific embodiment of the present invention;

[0112] Figure 3 A schematic diagram of the structure of a data read-write control module provided by a specific implementation mode of the present invention;

[0113] Figure 4A schematic diagram of the working logic of a data reading and writing logic unit provided in a specific embodiment of the present invention;

[0114] Figure 5 A schematic diagram of the structure of a transmission control module provided in a specific embodiment of the present invention;

[0115] Figure 6 A schematic diagram of the structure of a general command code transmission parameter conversion unit provided in a specific embodiment of the present invention;

[0116] Figure 7 A schematic diagram of the working logic of a transmission control unit provided by a specific embodiment of the present invention;

[0117] Figure 8 A schematic diagram of the structure of an integrated circuit provided in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0118] The core of the present invention is to provide an integrated circuit, which effectively solves the clock stop situation that is easy to occur when the host reads and writes the slave. And based on the design of the transmission control module, the integrated circuit of the present application can be dedicated to realizing the access to DIMM, and the processing efficiency can be improved, solving the problem of the need for software to check PEC bytes or add PEC bytes in the DIMM access of the traditional solution, the problem of the need for software or hardware registers to store a large number of slave addresses, and the problem of the need for software to parse CCC commands and fill and read the data after the command code.

[0119] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0120] Please refer to Figure 2 , Figure 2 This is a structural schematic diagram of an integrated circuit provided in a specific embodiment of the present invention. The integrated circuit can be used as a host and communicate with a slave based on a communication bus. The host can specifically be an I3C host, so the host is specifically connected to communicate with the slave based on the I3C bus.

[0121] Also see Figure 2 , the integrated circuit may include: a data read and write control module 10, a transmission control module 30, a register module 20 and a host control module 40;

[0122] The data read / write control module 10 is used to: obtain the read / write instruction information written into the register module 20, and based on the read / write instruction information, perform data transfer between its own storage medium and the memory outside the host through the data read / write bus;

[0123] The memory needs to be connected to the central processing unit for communication, and the communication rate between the data read and write control module 10 and the memory is higher than the communication rate of the communication bus.

[0124] The transmission control module 30 is used to: when the host performs a specified type of communication with the slave, based on the value in the register module 20, transfer data between the storage medium of the data read and write control module 10 and the host control module 40;

[0125] The host control module 40 is used to control the communication between the host and the slave based on the values ​​in the register module 20 and the preset communication protocol, so that when the host performs a specified type of communication with the slave, the data transfer between the slave and the data read and write control module 10 is completed through the transmission control module 30.

[0126] It can be seen that in the present application scheme, under the control of the transmission control module 30, the communication between the data read and write control module 10 and the host control module 40 is realized, and the host control module 40 can perform communication control between the host and the slave. Therefore, the data read and write control module 10 can realize data transmission with the slave through the host control module 40 and the transmission control module 30.

[0127] In the present application, in order to solve the clock stall problem that is easy to occur when the host reads and writes the slave in the traditional solution, when data needs to be written to the slave, the data read and write control module 10 can read the data from the memory outside the host through the data read and write bus, and then pass it to the slave through the transmission control module 30 and the host control module 40. When it is necessary to read the data of the slave, after the read data is passed to the data read and write control module 10 through the transmission control module 30 and the host control module 40, it can be stored in the memory outside the host by the data read and write control module 10 through the data read and write bus. Therefore, it can be seen that the present application solution, through the data read and write control module 10 provided, makes the read and write data not accumulate inside the host, and also effectively avoids the situation of clock stall.

[0128] It can be understood that, according to the above principle, to avoid the accumulation of read and write data inside the host, the memory outside the host needs to be connected to the central processing unit, and the communication rate between the data read and write control module 10 and the memory needs to be high, which should be higher than the communication rate of the communication bus between the host and the slave. For example, in a specific implementation, the memory outside the host is specifically DDR-SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory) to ensure a higher communication rate.

[0129] In addition, it can be understood that when using I3C communication, there are various forms of transmission between the host and the slave, including CCC (Common Command Code) transmission, and the CCC transmission process does not necessarily require reading and writing the memory outside the host. Therefore, the present application uses the data read and write control module 10 to transfer data between its own storage medium and the memory outside the host when the host performs a specified type of communication with the slave.

[0130] The specific structure of the data read-write control module 10 can be set and adjusted according to actual needs, as long as the functional requirements of the data read-write control module 10 of the present application scheme can be achieved. For example, in a specific implementation of the present invention, refer to Figure 3 , the data read-write control module 10 may specifically include: a data read-write bus control unit, a data read-write logic unit, a first first-in first-out memory and a second first-in first-out memory;

[0131] The data read-write bus control unit is used to: transfer data with a memory outside the host through the data read-write bus and based on the protocol type of the data read-write bus;

[0132] The data read and write logic unit is connected to the data read and write bus control unit for communication, and is specifically used for:

[0133] In the idle state, when the read / write enable signal in the read / write instruction information is detected to be enabled, it is determined whether the in-band interrupt transmission mode is used based on the data transmission length in the read / write instruction information;

[0134] If not, based on the read / write instruction information, data is transferred between the first FIFO memory or the second FIFO memory and the memory outside the host according to the default transmission mode;

[0135] If yes, data is transferred between the second first-in first-out memory and the memory outside the host based on the read-write instruction information and in accordance with the in-band interrupt transmission mode.

[0136] See also Figure 3 The data read-write control module 10 has two sets of clock and reset signals, which need to be processed across clock domains. The cross-clock domain processing is mainly performed in two FIFOs (First Input First Output), namely the first FIFO memory and the second FIFO memory. The data read-write bus control unit and the data read-write logic unit work under the data read-write clock. The input-related clock of Tx_data_fifo (the first FIFO memory) is the data read-write clock, and the output-related clock is the master clock. The output-related clock of Rx_data_fifo (the second FIFO memory) is the data read-write clock, and the input-related clock is the master clock.

[0137] As described above, the memory outside the host usually adopts DDR, and the data read and write bus can be a bus for reading and writing DDR data, for example, it can be specifically AHB (Advanced High Performance Bus) or AXI (Advanced eXtensible Interface) bus, etc. Of course, the data read and write bus control unit will perform corresponding logic design according to the different data read and write buses adopted.

[0138] The data read and write logic unit is a logic control unit for data read and write, and specifically performs its functions based on the read and write instruction information. In addition, the data read and write logic unit in this implementation mode can identify whether it is SIR (in-band interrupt) transmission, thereby determining whether to perform logical control of reading and writing according to the in-band interrupt transmission mode or the default transmission mode, so as to realize the data transmission between the corresponding FIFO and DDR.

[0139] The first FIFO is Tx_data_fifo, which stores data to be sent to the slave. The second FIFO is Rx_data_fifo, which stores data read from the slave, including slave data read by the host during SIR transmission.

[0140] The specific working logic of the data read and write logic unit in the default transmission mode and the in-band interrupt transmission mode can be set according to actual needs and meet the requirements of the above application for these two situations.

[0141] For example, in a specific implementation of the present invention, based on the read / write instruction information and in accordance with the default transmission mode, data transmission between the first FIFO memory or the second FIFO memory and a memory outside the host may include:

[0142] Obtaining the read / write control signal in the read / write instruction information;

[0143] When the read / write control signal is a read / write control signal indicating a write transfer and the first first-in first-out memory is not full, based on the external memory read / write start address and data transfer length in the read / write instruction information, data is read from the memory outside the host and written into the first first-in first-out memory;

[0144] When the read-write control signal is a read-write control signal indicating a read transfer and the second first-in-first-out memory is not empty, based on the external memory read-write start address and data transfer length in the read-write instruction information, the data in the second first-in-first-out memory is read and written into a memory outside the host.

[0145] For easier understanding, please refer to Figure 4 , is a working logic diagram of a data reading and writing logic unit in a specific implementation manner.

[0146] Figure 4 State 1 in the data read / write logic unit indicates that the data read / write logic unit is in an idle state, i.e., IDLE state. In the idle state, the data read / write logic unit can reset the first FIFO memory and the second FIFO memory, the data transfer count value can be cleared, and the DDR address signal is equal to the external memory read / write start address in the read / write instruction information. Figure 3 The DDR address signal line between the data read / write logic unit and the data read / write bus control unit is also shown. And, as described above, the data read / write logic unit needs to perform its function based on the read / write instruction information. Figure 3 and Figure 4 In the implementation manner, the read / write instruction information specifically includes the external memory read / write start address (referred to as the start address), data transmission length, read / write control signal, and read / write enable signal.

[0147] When the data read and write logic unit is in state 1, it will wait for the rising edge of the read and write enable signal (when reading and writing private data, once the command register in the register module 20 is configured, the read and write enable signal is pulled high, and the read and write enable signal is pulled low after the transmission is completed. For SIR transmission, an interrupt is generated to the software after receiving the SIR start. After the software configures the starting address, the register module 20 pulls the read and write enable signal high, and then pulls the read and write enable signal low after the transmission is completed. Of course, when the rising edge of the read and write enable signal is detected, it is determined that the read and write enable signal is enabled. At this time, if Figure 4 , you can enter state 2.

[0148] In state 2, it can be determined whether it is an in-band interrupt transmission mode based on the data transmission length in the read / write instruction information, specifically, whether the data transmission length is 0. If it is 0, it means it is SIR transmission, and the process can enter state 11. If it is not 0, it means it is not SIR transmission, that is, it is the default transmission mode described in this embodiment, and the process can enter state 3.

[0149] In the default transfer mode, it is necessary to determine whether it is a write transfer or a read transfer based on the read / write control signal. Figure 4 In the example, in state 3, it can be determined whether the read-write control signal is 0. If it is 0, it means it is a write transfer, that is, the read-write control signal is a read-write control signal indicating a write transfer, so the process enters state 4. Otherwise, it means it is a read transfer, that is, the read-write control signal is a read-write control signal indicating a read transfer, so the process enters state 7.

[0150] In state 4, it is necessary to determine whether the Fifo full signal of the first FIFO memory (Tx_data_fifo) is at a high level. If it is at a high level, it means that the first FIFO memory is full, so it is necessary to stay in the current state to wait. Of course, if the Fifo full signal of the first FIFO memory is not at a high level, it means that the first FIFO memory is not full, and state 5 can be entered at this time.

[0151] In state 5, for example, in a specific scenario, the data read and write logic unit sets the read and write length to 1 (assuming the data bit width is 4 bytes), the read and write signals are configured to 1, the read and write requests are pulled high, and the data transmission count value is increased by 4. When waiting for the response signal of the data read and write bus control unit to be pulled high, it means that the DDR data has been obtained, so it can enter state 6, otherwise it will stay in the current state.

[0152] In state 6, the data read and write logic unit can pull down the read and write request signal, assign the read DDR data to the Fifo write data pin and pull up the Fifo write signal pin for 1 clock cycle to determine whether the data transfer count value is greater than or equal to the data transfer length. If so, it jumps to the IDLE state, i.e., state 1. If not, the DDR address signal is increased by 4 and jumps to state 4. In addition to determining whether the data transfer count value is greater than or equal to the data transfer length, it is also necessary to determine whether the read and write enable signal is 0. If the read and write enable signal is 0, it will also jump directly to the IDLE state.

[0153] In state 7, it is necessary to determine whether the Fifo empty signal of the second FIFO memory (Rx_data_fifo) is at a high level. If it is at a high level, it means that the second FIFO memory has been read empty, so it is necessary to stay in the current state to wait. Of course, if the Fifo empty signal of the second FIFO memory is not at a high level, it means that there is data in the second FIFO memory, and then it can enter state 8.

[0154] In state 8, for example, in a specific case, the Fifo read signal pin can be pulled high for 1 clock cycle, the data transmission count value increases by 4, and then enters state 9.

[0155] In state 9, the read / write signal is configured to 0, and the read / write request is pulled high. After the waiting response signal is pulled high, it means that the data has been written into the DDR, so it can enter state 10, otherwise it stops at the current state.

[0156] In state 10, the read / write request signal is pulled low to determine whether the data transfer count value is greater than or equal to the data transfer length. If so, it jumps to the IDLE state, i.e., state 1. If not, the DDR address signal is increased by 4 and jumps to state 7. In addition to determining whether the data transfer count value is greater than or equal to the data transfer length, it is also necessary to determine whether the read / write enable signal is 0. If the read / write enable signal is 0, it will also jump directly to the IDLE state.

[0157] In a specific implementation of the present invention, based on the read / write instruction information, data transfer between the second first-in first-out memory and the memory outside the host is performed in accordance with the in-band interrupt transmission mode, including:

[0158] Determine whether the second first-in first-out memory is empty;

[0159] If the second FIFO memory is empty, keep waiting;

[0160] If the second FIFO memory is not empty, based on the external memory read / write start address in the read / write instruction information, read the data of the specified length in the second FIFO memory and write it into the memory outside the host;

[0161] Determine whether the read / write enable signal is 0;

[0162] If the read / write enable signal is 0, it will jump to the idle state.

[0163] If the read / write enable signal is not 0, the write address of the memory outside the host is updated, and the operation of determining whether the second first-in first-out memory is empty is returned to be executed.

[0164] In the above, Figure 3 and Figure 4As an example, the default transmission mode is described in detail. In this implementation, Figure 3 and Figure 4 Taking as an example, SIR transmission is described in detail.

[0165] As described above, in state 2, it is possible to determine whether it is in-band interrupt transmission mode based on the data transmission length in the read / write instruction information, specifically, whether the data transmission length is 0. If it is 0, it means it is SIR transmission, and state 11 can be entered.

[0166] In state 11, it can be determined whether the Fifo empty signal of the second FIFO memory (Rx_data_fifo) is high. If it is high, it means that the second FIFO memory has been read empty and needs to stay in the current state to wait, otherwise enter state 12.

[0167] In state 12, the Fifo read signal pin is pulled high for 1 clock cycle to read data of a specified length from the second first-in first-out memory. In this example, the data transfer count signal needs to be added by 4, and then enter state 13.

[0168] In state 13, the read / write signal is configured to 0, and the read / write request is pulled high. After the wait response signal is pulled high, it indicates that the data of the specified length read from the second FIFO memory has been written into the DDR, so it can enter state 14, otherwise it stops at the current state.

[0169] In state 14, the read / write request signal can be pulled low to determine whether the read / write enable signal is 0. If yes, it can jump to state 1. If not, the write address of the memory outside the host is updated, that is, the write address of the DDR is updated. In this example, Figure 3 The DDR address signal is increased by 4, and then jumps to state 11.

[0170] In the above implementation of the present application, by adding the data read and write control module 10, the clock stalling problem that is easily generated when the host reads and writes the slave is effectively solved.

[0171] In the implementation described below, based on the design of the transmission control module 30, the integrated circuit of the present application can be dedicated to accessing the DIMM, and the processing efficiency can be improved. In addition, for some implementations described below, some modified registers or newly added registers are required. In order to facilitate the description of the implementations below, the newly added and modified registers are first described uniformly here. Among them, the command register is a modified register, and the other registers described are all newly added registers.

[0172] Command register: This register needs to be configured before each transmission, and before the transmission is completed, if the software configures this register again, it will not work.

[0173] Table 1: Command register definition table

[0174]

[0175]

[0176] Transfer length register: This register needs to be configured before the command register configuration.

[0177] Table 2: Definition of transfer length register

[0178]

[0179] First register address register: This register needs to be configured before the command register configuration, and bits that are not related to this transmission can be left unconfigured.

[0180] Table 3: Definition table of the first register address register

[0181]

[0182]

[0183] Second register address register: This register needs to be configured before the command register configuration, and bits that are not related to this transmission can be left unconfigured.

[0184] Table 4: Definition table of the second register address register

[0185]

[0186] First CCC parameter register: This register needs to be configured before the command register is configured, and bits that are not related to this transmission can be left unconfigured.

[0187] Table 5: Definition table of the first CCC parameter register

[0188]

[0189] Second CCC parameter register: This register needs to be configured before the command register is configured, and bits that are not related to this transmission can be left unconfigured.

[0190] Table 6: Definition table of the second CCC parameter register

[0191]

[0192]

[0193] The third CCC parameter register: This register needs to be configured before the command register is configured, and bits that are not related to this transmission can be left unconfigured.

[0194] Table 7: Definition table of the third CCC parameter register

[0195] Bit name describe 31:24 Byte3 Byte3 parameter in the DEVCTRL command of CCC. 23:16 Byte2 byte2 parameter in the DEVCTRL command of CCC. 15:8 Byte1 byte1 parameter in the DEVCTRL command of CCC. 7:0 Byte0 Byte0 parameter in the DEVCTRL command of CCC.

[0196] First peripheral SIR PEC check register: This register needs to be configured before the command register is configured, and bits that are not related to this transmission can be left unconfigured.

[0197] Table 8: Definition of the first peripheral SIR PEC check register

[0198]

[0199] Second peripheral SIR PEC check register: This register needs to be configured before the command register is configured, and bits that are not related to this transmission can be left unconfigured.

[0200] Table 9: Definition of the second peripheral SIR PEC check register

[0201]

[0202]

[0203] EEPROM page length register: This register needs to be configured before the command register is configured, and bits that are not related to this transmission do not need to be configured.

[0204] Table 10: EEPROM page length register definition table

[0205] Bit name describe 31:16 Reserved reserve. 15:0 EE_length The EEPROM page length of Spdhub.

[0206] DDR read / write start address register: This register needs to be configured before the command register is configured, and bits that are not related to this transmission do not need to be configured.

[0207] Table 11: Definition of DDR read and write start address register

[0208] Bit name describe 31:0 Addr DDR read and write start address, which is also the external memory read and write start address described above.

[0209] In a specific embodiment of the present invention, the transmission control module 30 includes: a cross-clock domain conversion unit, a peripheral address conversion unit, a register address conversion unit, a transmission execution unit, a response and interrupt status generation unit, and a transmission control unit;

[0210] The cross-clock domain conversion unit is communicatively connected with the register module 20, and is used to convert the transmitted signal in different clock domains when communicating with the register module 20; wherein the clock domain used by the cross-clock domain conversion module is the main clock domain, and the clock domain used by the register module 20 is the register clock domain;

[0211] The peripheral address conversion unit is used to: when the host communicates with the slave, based on the memory bank number of the slave and the slave number of the slave, convert the address of the slave;

[0212] The register address conversion unit is used to: generate address parameters of the accessed register of the slave based on the device type of the slave when the host communicates with the slave;

[0213] The transmission execution unit is used to: under the control of the transmission control unit, perform data transmission between the storage medium of the data read and write control module 10 and the host control module 40, and generate the check code carried in the transmitted data;

[0214] A response and interrupt status generating unit, used to output a response and interrupt status signal under the control of the transmission control unit and the host control module 40 when the host communicates with the slave;

[0215] The transmission control unit is used to realize data transfer between the storage medium of the data read and write control module 10 and the host control module 40 based on the value in the register module 20 and the transmission execution unit when the host performs a specified type of communication with the slave.

[0216] This implementation takes into account that the prior art requires software or hardware registers to store a large number of slave addresses (for example, one CPU corresponds to 8 DIMMs, and one DIMM has 7 slaves), which will increase the software space occupied or increase the amount of hardware resources.

[0217] In this regard, in this implementation, a peripheral address conversion unit is provided in the transmission control module 30 to convert the address of the slave, thereby solving the problem of increasing the software space occupied or the amount of hardware resources in the traditional solution.

[0218] See also Figure 5 , is a structural diagram of the transmission control module 30 in a specific implementation manner. Figure 5 The DIMM-related register signals shown in the figure include all the newly added registers, response and interrupt status registers mentioned above, and also include the transmission start signal generated by the register module 20 after the command register is configured. Figure 5The peripheral register signals shown in the figure include: DIMM_num and DEV_num. The CCC register signals include: Cmd of the command register, the first CCC parameter register, the second CCC parameter register, and the third CCC parameter register. The Spd register signals include: the first register address register, Addr_mode of the command register, PEC_EN, Mem, Mode, PEC_cmd signal, and Rnw signal. The PMIC and TS register signals include: Addr0 of the first register address register, PEC_EN of the command register, PEC_cmd signal, and Rnw signal. The RCD register signals include the first register address register and the second register address register. Figure 5 The data signal shown in the figure can be consistent with the FIFO external connection signal of the data read and write control module 10, see Figure 3 The transmission control related register signals include: command register, transmission length register, first peripheral SIR PEC check register, second peripheral SIR PEC check register, EEPROM page length register, and command valid signal.

[0219] Specifically, the cross-clock domain conversion unit can convert the transmitted signal in different clock domains when the transmission control module 30 communicates with the register module 20. That is, the signal input from the register module 20 can be converted to the main clock domain, and the signal that the transmission control module 30 wants to output to the register module 20 can be transmitted from the main clock domain back to the register read-write clock domain, and then output to the register module 20. In practical applications, the cross-clock domain conversion unit can specifically adopt various asynchronous conversion methods, such as asynchronous fifo, handshake or Gray code.

[0220] When the host communicates with the slave, in the solution of the present application, the peripheral address conversion unit is used to convert the address of the slave based on the memory bank number of the slave and the slave number of the slave.

[0221] For example, in a specific implementation, the lower 3 bits of the peripheral address are DIMM_num (DIMM number, that is, the memory stick number of the slave machine). If DEV_num (slave machine number) is equal to 0, the upper 4 bits of the peripheral address are binary 1010. If DEV_num is equal to 1, the upper 4 bits of the peripheral address are binary 1011. If DEV_num is equal to 2, the upper 4 bits of the peripheral address are binary 1001. If DEV_num is equal to 3, the upper 4 bits of the peripheral address are binary 1000. If DEV_num is equal to 4, the upper 4 bits of the peripheral address are binary 1100. If DEV_num is equal to 5, the upper 4 bits of the peripheral address are binary 0010. If DEV_num is equal to 6, the upper 4 bits of the peripheral address are binary 0110.

[0222] Furthermore, in a specific embodiment of the present invention, the transmission control module 30 further includes a general command code transmission parameter conversion unit, that is, a CCC transmission parameter conversion unit, which is used to:

[0223] Based on the universal command code, select to convert the register data in the corresponding universal command code register into its own output parameter so as to be transmitted to the communication bus through the transmission execution unit;

[0224] When data from the communication bus is received through the transmission execution unit, register data in the corresponding general command code register is updated based on the received data from the communication bus and the general command code.

[0225] In the traditional solution, since the DIMM has relatively few CCC commands, the CCC command is parsed by software, and the data following the CCC command code is transmitted through the send or receive data port, which increases the software processing time.

[0226] In this regard, in this implementation, the parameter conversion unit is directly based on the general command code transmission, and the register data is converted into data transmitted on the I3C bus according to the configured CCC related registers. The data read on the I3C bus can also be converted into register data of the CCC related registers, which effectively improves the processing efficiency of the CCC transmission.

[0227] The specific structure of the CCC transmission parameter conversion unit can be set according to actual needs. For example, in a specific implementation of the present invention, refer to Figure 6 The CCC transmission parameter conversion unit specifically includes: ENEC (Enable SlaveEvents Command, enable slave event command) unit, DISEC (Disable Slave Events Command, disable slave event command) unit, GETSTATUS (Get device status, get device status) unit, DEVCAP (GetDevice Capabilities, get device capabilities) unit, SETHID (Set Host identifier, set host identifier) ​​unit, DEVCTRL (configuration unit), that is, configure the SPD hub and all devices behind the hub command, and the input and output selection unit.

[0228] Specifically, the six units ENEC, DISEC, GETSTATUS, DEVCAP, SETHID, and DEVCTRL can all determine whether the command code is the same as their own based on the data in Cmd (ENEC and DISEC both have two sets of command codes, broadcast and direct commands). If they are the same, the enable signal (i.e., the en signal output by each) is pulled high, otherwise it is pulled low. The respective output signals can be combined according to the respective input parameters and the CCC transmission format. For the input and output selection unit, the output parameter quantity is determined according to the en signal of each module. If all en is 0, the output parameter quantity is 1. If the en signal of the ENEC, DISEC, and SETHID modules is 0, the output parameter quantity is 1. If the en of the DEVCTRL module is 1, the output parameter quantity is 6. Output parameter 0 needs to select which parameter to output according to the en signal of each module. Other output parameters are equal to the corresponding coded DEVCTRL_out signal. Input parameters are transmitted to GETSTATUS and DEVCAP according to the parameter encoding. These two units determine whether Cmd is the same as their own command code. If they are the same, they parse the two sets of input parameters and output them to the register module 20. The command code input by the CCC register signal is also transmitted to the lower-level module. The signal name is Cmd_out. In other words, output parameters 0-5, input parameters 0-1, and Cmd_out constitute Figure 5 CCC parameters.

[0229] As described above, the register address conversion unit can generate the address parameter of the accessed register of the slave based on the device type of the slave when the host communicates with the slave. Considering that the device type of the slave generally includes Spd hub (serial detection hub), PMIC (Power Management Integrated Circuit), TS (Temperature Sensor), RCD (Register Clock Driver), therefore, in a specific implementation of the present invention, the register address conversion unit can specifically include:

[0230] A serial detection hub register address conversion subunit, used for generating address parameters of a serial detection hub register;

[0231] A power management integrated circuit register address conversion subunit, used to generate address parameters of the power management integrated circuit register;

[0232] A temperature sensor register address conversion subunit, used to generate address parameters of the temperature sensor register;

[0233] The registered clock driver register address conversion subunit is used to generate address parameters of the registered clock driver register.

[0234] Furthermore, considering that the address parameters required by the power management integrated circuit and the temperature sensor register are relatively small, Figure 5 In the implementation manner, a power management integrated circuit and a temperature sensor register address conversion subunit are used to implement the functions of the power management integrated circuit register address conversion subunit and the temperature sensor register address conversion subunit in this implementation manner.

[0235] Specifically, the serial detection hub register address conversion subunit, that is, the Spdhub register address conversion subunit, is used to generate the Spd hub register address. In practical applications, the specific implementation process can be: Step 1, determine whether it is I2C mode or I3C module according to Mode, if it is I2C mode, go to step 2. Otherwise, go to step 5. Step 2, determine whether Addr_mode is 1 byte or 2 byte mode, if it is 1 byte mode, go to step 3, otherwise go to step 4. Step 3, output register address 0 is {Mem, Addr1[0], Addr0[5:0]}. The output register address 1 remains unchanged. Step 4, output register address 0 is {Mem, Addr1[0], Addr0[5:0]}. The output register address 1 is {0, 0, 0, 0, Addr1[4:1]}. Step 5, determine whether PEC_EN is 1, if not 1, go to step 6, if 1, go to step 7. Step 6. Output register address 0 is {Mem, Addr1[0], Addr0[5:0]}. Output register address 1 is {0, 0, 0, 0, Addr1[4:1]}. Step 7. Output register address 0 is {Mem, Addr1[0], Addr0[5:0]}. Output register address 1 is {PEC_cmd, Rnw, Addr1[4:1]}.

[0236] The power management integrated circuit and temperature sensor register address conversion subunit, also known as the PMIC and TS register address conversion subunit, is used to generate the PMIC or TS register address. In practical applications, the specific implementation process can be: Step 1, determine whether PEC_EN is 1, if it is 0, go to step 2, otherwise go to step 3. Step 2, the output register address 0 is Addr0, and the output register address 1 remains unchanged. Step 3, the output register address 0 is Addr0, and the output register address 1 is {PEC_cmd, Rnw, 0, 0, 0, 0}.

[0237] The register address conversion subunit of the register clock driver, that is, the RCD register address conversion subunit, output register address 0 is Bus_command, output register address 1 is Byte_count, output register address 2 is Reserved, output register address 3 is Dev_channel_num, output register address 4 is Addr1, and output register address 5 is Addr0. .

[0238] In addition, the serial detection hub register address conversion subunit, the power management integrated circuit and temperature sensor register address conversion subunit, and the register clock driver register address conversion subunit also output address length signals. The serial detection hub register address conversion subunit, the power management integrated circuit and temperature sensor register address conversion subunit output 1 or 2 according to the signal, and the register clock driver register address conversion subunit outputs 6.

[0239] The response and interrupt status generation unit can output response and interrupt status signals under the control of the transmission control unit and the host control module 40 when the host communicates with the slave. That is, the response and interrupt status generation unit is a functional module that outputs response and interrupt status signals according to the parameters given by the transmission control unit and the host control module 40, and updates the signal to the register module 20 after the transmission is completed (including the occurrence of err).

[0240] In a specific embodiment of the present invention, the transmission control unit may also be used for:

[0241] When the in-band interrupt enable signal is detected to be enabled, the in-band interrupt processing flow is executed;

[0242] When it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, it is determined whether it is a general command code transmission;

[0243] If it is a general command code transmission, execute the general command code transmission process;

[0244] If it is not a general command code transmission, the default transmission process is executed.

[0245] The transmission control unit can control the transmission execution unit to realize data transmission between the storage medium of the data read and write control module 10 and the host control module 40. This embodiment further takes into account that for SIR transmission, special processing can be performed to ensure processing efficiency. Therefore, when the transmission control unit detects that the in-band interrupt enable signal is enabled, it can execute the in-band interrupt processing flow. Correspondingly, when it detects that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, it can execute CCC transmission or non-CCC transmission, that is, the default transmission described in this embodiment.

[0246] The specific structure of the transmission execution unit in the transmission control module 30 can be set and adjusted according to actual needs. For example, in a specific implementation, refer to Figure 5 , the transmission execution unit specifically includes a data packet error check subunit, a third first-in first-out memory, a fourth first-in first-out memory, and a transmission parameter output subunit;

[0247] The data packet error check subunit is used to transfer data between the storage medium of the data read-write control module 10 and the host control module 40 by using the third first-in first-out memory and the fourth first-in first-out memory under the control of the transmission control unit, and to generate a check code carried in the transferred data;

[0248] The transmission parameter output subunit is used to transfer parameters to the host control module 40 under the control of the transmission control unit.

[0249] Since the traditional PEC (Packet Error Check) check and the addition of PEC check codes need to be executed by software, this process will reduce the software processing efficiency and increase the processing burden of the CPU. In this implementation, the generation of the check code carried in the transmitted data can be realized based on the packet error check check subunit, which solves the problem that the traditional I3C host needs software to check the PEC byte or add the PEC byte.

[0250] The specific operation of executing the in-band interrupt processing flow can be set according to actual needs. For example, in a specific implementation of the present invention, when it is detected that the in-band interrupt enable signal is enabled, the in-band interrupt processing flow is executed, which can specifically include:

[0251] In the first state, when the in-band interrupt enable signal is detected to be enabled, the second state is entered; wherein, in the first state, the transmission control unit is in an idle state;

[0252] In the second state, the in-band interrupt enable signal is sent to the response and interrupt state generation unit, and it is determined whether the in-band interrupt has a data packet error check code according to the received in-band interrupt address signal and the in-band interrupt check register; if yes, the data packet error check enable signal connected to the transmission execution unit is pulled high, if not, the data packet error check enable signal is pulled low; when an external transmission completion signal is received, the third state is entered;

[0253] In the third state, a transmission completion signal is sent to the response and interrupt state generating unit, and based on the in-band interrupt length sent by the transmission execution unit, a corresponding transmission length signal is sent to the response and interrupt state generating unit, and the system jumps to the first state.

[0254] For easier understanding, please refer to Figure 7 , is a schematic diagram of the working logic of the transmission control unit in a specific implementation manner.

[0255] Figure 7 The first state in the transmission control unit indicates that the transmission control unit is in an idle state, that is, an IDLE state. In the idle state, the transmission control unit can reset each fifo. Figure 5 In the example, the third FIFO memory and the fourth FIFO memory are reset. Waiting for the command valid signal or SIR_en (in-band interrupt enable signal), if the SIR_en signal is high, it means that the in-band interrupt enable signal is enabled, so the second state can be entered.

[0256] In the second state, SIR_en can be sent to the response and interrupt status generation unit, and according to the in-band interrupt address signal (SIR address signal) and the in-band interrupt check register (for example, in one case, specifically the first peripheral SIR PEC check register and the second peripheral SIR PEC check register described above), it is determined whether this SIR transmission has a PEC check code. If yes, PEC_en (data packet error check enable signal) is pulled high, if not, PEC_en is pulled low. Waiting for the transmission completion signal given externally, the third state can be entered.

[0257] In the third state, a transmission completion signal may be sent to the response and interrupt status generation unit, according to the in-band interrupt length sent by the transmission execution unit, e.g. Figure 5 In the example, specifically, the SIR_len is obtained according to the data packet error check subunit, and then a transmission length signal is sent to the response and interrupt status generation unit, and then it can jump to the first state.

[0258] In a specific implementation of the present invention, when it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, it is determined whether it is a general command code transmission; if it is a general command code transmission, the general command code transmission process is executed, including:

[0259] In the first state, when it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, the fourth state is entered;

[0260] In the fourth state, it is determined whether it is a general command code transmission; if it is a general command code transmission, the fifth state is entered;

[0261] In the fifth state, determining whether the general command code is less than a first threshold;

[0262] If it is less than the first threshold, a general command code broadcast write is performed, and after completion, the state is jumped to the first state;

[0263] If it is not less than the first threshold, the general command code is directly read and written, and after completion, the state is jumped to the first state.

[0264] In this implementation, the transmission control unit can effectively implement CCC transmission.

[0265] Specifically, in the first state, when it is detected that the in-band interrupt enable signal is not enabled, that is, the SIR_en signal is not high, and the command valid signal is high, it means that the command valid signal is enabled, and the fourth state can be entered at this time.

[0266] In the fourth state, it is determined whether it is a general command code transmission. Figure 7 In the case of, it is to determine whether Cmd_en is 1. If it is, it is confirmed that it is a general command code transmission, that is, CCC transmission, so it will enter the fifth state. In the fifth state, it is necessary to determine whether the general command code is less than the first threshold, and then decide whether to broadcast and write the general command code or directly read and write the general command code. For example Figure 7 In the case of, specifically, it is determined whether Cmd is less than 0x80, if so, enter the sixth state, otherwise enter the seventh state.

[0267] In a specific implementation of the present invention, performing a general command code broadcast write and jumping to the first state after completion includes:

[0268] Entering a sixth state after determining that the general command code is less than the first threshold;

[0269] In the sixth state, the transmission execution unit is waiting to perform a general command code broadcast write, and when a transmission completion signal is received, the twelfth state is entered;

[0270] In the twelfth state, a transmission completion signal is sent to the response and interrupt state generating unit, and then the system jumps to the first state.

[0271] In this implementation, the process of broadcast writing of the general command code is described in detail. Specifically, in the sixth state, the transmission control unit needs to wait for the transmission completion signal before entering the twelfth state. In the twelfth state, the transmission completion signal needs to be sent to the response and interrupt state generation unit, and then jump to the first state, that is, the IDLE state.

[0272] In a specific implementation of the present invention, the general command code is directly read and written, and after completion, the process jumps to the first state, including:

[0273] Entering the seventh state after determining that the general command code is not less than the first threshold;

[0274] In the seventh state, it is determined whether the read / write bit in the command register is a value indicating writing, if yes, the eighth state is entered; if no, the tenth state is entered;

[0275] In the eighth state, the transmission execution unit is waiting for direct writing of the general command code, and when a transmission completion signal is received, the ninth state is entered;

[0276] In the ninth state, the transmission execution unit is waiting to directly write the load data, and when a transmission completion signal is received, the twelfth state is entered;

[0277] In the tenth state, the transmission execution unit is waiting to directly read the general command code, and when the transmission completion signal is received, the eleventh state is entered;

[0278] In the eleventh state, the transmission execution unit is waiting to directly read the load data, and when a transmission completion signal is received, the twelfth state is entered;

[0279] In the twelfth state, a transmission completion signal is sent to the response and interrupt state generating unit, and then the system jumps to the first state.

[0280] In this implementation, the direct reading and writing process of CCC is described in detail. Specifically, after determining that the general command code is not less than the first threshold, the seventh state is entered, and it can be determined whether the read-write bit in the command register is a value indicating writing. For example, in the above example, it is to determine whether the read-write bit Rnw in the command register is 0. If it is 0, it means writing, and the eighth state can be entered. If it is 1, it means reading, and the tenth state can be entered.

[0281] The eighth state is the first stage of the state of direct writing by CCC. In this state, it is the write command code state of direct writing by CCC. The SIR_en signal is pulled high, and then enters the first state. Otherwise, wait for the transmission completion signal, and then enters the ninth state.

[0282] The ninth state is the second stage of the state of direct writing by CCC. In this state, it is the state of writing load data directly by CCC. When receiving the transmission completion signal, it can enter the twelfth state.

[0283] Correspondingly, the tenth state is the first stage of the CCC direct read state. In this state, it is the CCC direct read write command code state. When the SIR_en signal is pulled high, it will enter the first state, otherwise wait for the transmission completion signal and then enter the eleventh state.

[0284] The eleventh state is the second stage of the CCC direct read state. In this state, the CCC direct reads the load data state. When the transmission completion signal is received, the twelfth state can be entered.

[0285] It should also be noted that, whether it is the fourth state in the above implementation mode, or any state from the sixth state to the eleventh state described in this implementation mode, if the SIR_en signal is pulled high, that is, when the in-band interrupt enable signal is enabled, it will directly enter the IDLE state to ensure priority processing of SIR.

[0286] In a specific implementation of the present invention, executing the default transmission process may include:

[0287] Based on the slave number of the slave, determine the device type of the slave;

[0288] Executes a default transfer process based on the device type.

[0289] This implementation takes into account that different slave device types can execute corresponding default transmission processes, and the device type of the slave can be determined by the slave number.

[0290] Furthermore, the default transmission process is executed based on the device type, which may specifically include:

[0291] When the device type is a serial detection hub, a default transmission process is executed to read and write data to the serial detection hub;

[0292] When the device type is a power management integrated circuit or a temperature sensor, a default transmission process is executed to read and write data to the power management integrated circuit or the temperature sensor;

[0293] When the device type is a registered clock driver, a default transfer process is executed to read and write data to the registered clock driver.

[0294] In this implementation, SPD hub transmission, PMIC or TS transmission, and RCD transmission are processed separately to implement data reading and writing of slave devices of corresponding device types.

[0295] In a specific implementation of the present invention, when the device type is a serial detection hub, a default transmission process is executed to read and write data to the serial detection hub, including:

[0296] When the device type is a serial detection hub, it enters the fourteenth state;

[0297] In the fourteenth state, it is determined whether the read / write bit in the command register is a value indicating writing, if so, the fifteenth state is entered; if not, the sixteenth state is entered;

[0298] In the fifteenth state, the transmission execution unit is waited for to perform the private write of the serial detection hub, and the length of the error check code of the data packet is output to the transmission execution unit, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0299] In the sixteenth state, the transmission execution unit is waited for to perform a private read of the serial detection hub, and the function of the transmission execution unit to perform a data packet error check is enabled; when a transmission completion signal is received, the seventeenth state is entered;

[0300] In the seventeenth state, the error check code length of the data packet is output to the transmission execution unit according to the transmission length signal, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0301] In the twenty-sixth state, a transmission completion signal is sent to the response and interrupt state generating unit, and then the control unit jumps to the first state.

[0302] Still Figure 7 For example, in the thirteenth state, it can be determined whether the peripheral is SpdHub, PMIC, TS, or RCD according to DEV_num. If it is Spd Hub, it enters the fourteenth state. If it is a power management integrated circuit or a temperature sensor, it enters the eighteenth state, and if it is RCD, it enters the twenty-second state.

[0303] When the device type is Spd Hub, it enters the fourteenth state.

[0304] For example, in one scenario, in the fourteenth state, it is specifically determined based on Rnw whether to perform a read or write operation. If a write operation is performed, the fifteenth state is entered, otherwise the sixteenth state is entered.

[0305] The fifteenth state is the Spd Hub private write state, which can output the error check code length of the data packet according to the transmission length (i.e. Figure 5 The first state is a state in which the transmission execution unit is executed, and the first state is a state in which the transmission execution unit is executed. ...

[0306] The sixteenth state is the first stage of the Spd Hub private read state, which can output PEC_en to the data packet error check subunit and wait for the transmission completion signal to enter the seventeenth state.

[0307] The seventeenth state is the second stage of the Spd Hub private read state. It can output PEC_len to the data packet error check check subunit according to the transmission length, output PEC_en to the data packet error check check subunit, and wait for the transmission completion signal to enter the twenty-sixth state.

[0308] In addition, in any state from the 14th state to the 17th state, if the SIR_en signal is pulled high, that is, when the in-band interrupt enable signal is enabled, it will directly enter the IDLE state, that is, the first state. Due to limited space, Figure 7 The transition lines from each state to the first state are not marked.

[0309] In a specific embodiment of the present invention, when the device type is a power management integrated circuit or a temperature sensor, a default transmission process is executed to read and write data to the power management integrated circuit or the temperature sensor, including:

[0310] When the device type is a power management integrated circuit or a temperature sensor, the eighteenth state is entered;

[0311] In the eighteenth state, it is determined whether the read / write bit in the command register is a value indicating writing, if so, the nineteenth state is entered; if not, the twentieth state is entered;

[0312] In the nineteenth state, the transmission execution unit is waited for to perform private writing of the power management integrated circuit or the temperature sensor, and the length of the error check code of the data packet is output to the transmission execution unit, and the function of performing the error check of the data packet on the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0313] In the 20th state, the transmission execution unit is waited for to perform a private read of the power management integrated circuit or the temperature sensor, and a function of performing a data packet error check on the transmission execution unit is enabled; when a transmission completion signal is received, the 21st state is entered;

[0314] In the twenty-first state, the error check code length of the data packet is output to the transmission execution unit according to the transmission length signal, and the function of the transmission execution unit to perform the error check of the data packet is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0315] In the twenty-sixth state, a transmission completion signal is sent to the response and interrupt state generating unit, and then the control unit jumps to the first state.

[0316] As described above, in the thirteenth state, the peripheral can be judged according to DEV_num whether it is Spd Hub, PMIC or TS, or RCD. If it is PMIC or TS, it enters the eighteenth state, and then, it performs different operations according to the difference in reading and writing. The principle is the same as above and will not be repeated.

[0317] In a specific implementation of the present invention, when the device type is a registered clock driver, a default transmission process is executed to read and write data to the registered clock driver, including:

[0318] When the device type is a registered clock driver, the twenty-second state is entered;

[0319] In the twenty-second state, it is determined whether the read-write bit in the command register is a value indicating writing, if so, the twenty-third state is entered; if not, the twenty-fourth state is entered;

[0320] In the twenty-third state, the transmission execution unit is waited for to perform the private write of the register clock driver, and the length of the data packet error check check code is output to the transmission execution unit, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0321] In the twenty-fourth state, the transmission execution unit is waited for to perform a private read of the register clock driver, and the function of performing a data packet error check on the transmission execution unit is enabled; when a transmission completion signal is received, the twenty-fifth state is entered;

[0322] In the twenty-fifth state, the error check code length of the data packet is output to the transmission execution unit according to the transmission length signal, and the function of performing the error check of the data packet on the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered;

[0323] In the twenty-sixth state, a transmission completion signal is sent to the response and interrupt state generating unit, and then the control unit jumps to the first state.

[0324] As described above, in the thirteenth state, it is possible to determine whether the peripheral is SpdHub, PMIC, TS, or RCD according to DEV_num. If it is RCD, it enters the twenty-second state, and then performs different operations according to the difference in reading and writing. The principle is the same as above and will not be repeated.

[0325] The data packet error check subunit can realize data transmission and generation of check codes carried in the transmitted data. Specifically, data can be read, written and processed according to the status input by the transmission control unit.

[0326] When the transmission control unit is in the first state, the data packet error check subunit can reset various signals and reset the fifo, that is, reset the third first-in first-out memory and the fourth first-in first-out memory.

[0327] When the transmission control unit is in the second state, the data packet error check subunit performs a SIR data read operation, reads data from the third first-in first-out memory, and transmits it to the data read and write control module 10 (if the third first-in first-out memory is empty, no reading is performed, and the data is read again when it is not empty). If PEC_en is 1, a PEC check is performed to count the amount of read data.

[0328] When the transmission control unit is in the third state, if PEC_en is 1, the data packet error check subunit will determine whether the PEC check is correct, and transmit the check result to the response and interrupt status generation unit, and transmit the final count value to the transmission control unit.

[0329] When the transmission control unit is in the sixth state, the packet error check subunit calculates TS_len and outputs it to the transmission parameter output subunit (TS_len=output parameter quantity+1 or 2, according to PEC_en), writes the cmd_out signal of the general command code transmission parameter conversion unit to the fourth first-in first-out memory as Tx_data_fifo (if the fourth first-in first-out memory is full, it will not be written, and it will be written again when it is not full), and then writes the output parameter to the fourth first-in first-out memory according to the output parameter quantity. If PEC_en is 1, in the process of writing data to the fourth first-in first-out memory, the PEC byte generation operation is performed, and the last generated PEC byte is also written to the fourth first-in first-out memory.

[0330] When the transmission control unit is in the eighth state, the data packet error check subunit calculates TS_len and outputs it to the transmission parameter output subunit (TS_len=1 or 2, according to PEC_en), and writes the cmd_out signal of the general command code transmission parameter conversion unit to the fourth first-in first-out memory. If PEC_en is 1, the PEC byte generation operation is performed in the process of writing data to the fourth first-in first-out memory, and the last generated PEC byte is also written to Tx_data_fifo.

[0331] When the transmission control unit is in the ninth state, the packet error check subunit calculates TS_len and outputs it to the transmission parameter output subunit (TS_len=output parameter quantity+0, according to PEC_en), and writes the output parameter to the fourth FIFO memory according to the output parameter quantity. If PEC_en is 1, the PEC byte generation operation is performed in the process of writing data to the fourth FIFO memory, and the last generated PEC byte is also written to Tx_data_fifo.

[0332] When the transmission control unit is in the tenth state, the operation of the data packet error check check subunit can refer to the operation of the data packet error check check subunit when the transmission control unit is in the eighth state, and will not be described again.

[0333] When the transmission control unit is in the eleventh state, the packet error check subunit calculates TS_len and outputs it to the transmission parameter output subunit (TS_len=2 or 3, according to PEC_en), reads two bytes of data from the third first-in first-out memory, and transmits the data to the input parameter signal of the general command code transmission parameter conversion unit respectively. If PEC_en is 1, read another byte of data for PEC check.

[0334] When the transmission control unit is in the fifteenth state, the packet error check subunit calculates TS_len by adding the address length signal of the serial detection hub register address conversion subunit and the PEC_len signal of the transmission control unit. If PEC_en is 1, TS_len is further increased by 1. The address is read according to the address length signal and written to the fourth first-in first-out memory, and then the data is read from the data read-write control module 10 according to PEC_len and written to the fourth first-in first-out memory. If PEC_en is 1, it is necessary to generate PEC bytes in this process, and finally the PEC bytes are also written to the fourth first-in first-out memory.

[0335] When the transmission control unit is in the sixteenth state, the packet error check subunit calculates TS_len according to the address length signal of the serial detection hub register address conversion subunit, and if PEC_en is 1, TS_len is further increased by 1. If PEC_en is 1, it is necessary to generate the PEC byte in this process, and finally write the PEC byte to the fourth first-in first-out memory.

[0336] When the transmission control unit is in the seventeenth state, the data packet error check subunit calculates TS_len according to the PEC_len signal of the transmission control unit. If PEC_en is 1, TS_len is further increased by 1. According to PEC_len, the data of the third first-in first-out memory is read and transmitted to the data read and write control module 10. If PEC_en is 1, the PEC byte needs to be checked in this process, and the check result is transmitted to the response and interrupt status generation module.

[0337] When the transmission control unit is in the nineteenth state, the packet error check subunit calculates TS_len by adding the address length signal of the power management integrated circuit and the temperature sensor register address conversion subunit and the PEC_len signal of the transmission control unit. If PEC_en is 1, TS_len is further increased by 1. The address is read according to the address length signal and written to the fourth first-in first-out memory, and then the data read and write control module 10 reads the data to the fourth first-in first-out memory according to PEC_len. If PEC_en is 1, it is necessary to generate PEC bytes in this process, and finally the PEC bytes are also written to the fourth first-in first-out memory.

[0338] When the transmission control unit is in the twentieth state, the packet error check subunit calculates TS_len according to the address length signal of the power management integrated circuit and the temperature sensor register address conversion subunit. If PEC_en is 1, TS_len is increased by 1. If PEC_en is 1, the PEC byte needs to be generated in this process and finally written to Tx_data_fifo.

[0339] When the transmission control unit is in the twenty-first state, TS_len is calculated according to the PEC_len signal of the transmission control unit. If PEC_en is 1, TS_len is increased by 1. Rx_data_fifo data is read according to PEC_len and transmitted to the data read and write control module 10. If PEC_en is 1, the PEC byte needs to be verified in this process, and the verification result is transmitted to the response and interrupt status generation module.

[0340] When the transmission control unit is in the twenty-third state, the packet error check subunit calculates TS_len by adding the address length signal of the register clock driver register address conversion subunit and the PEC_len signal of the transmission control unit. If PEC_en is 1, TS_len is further increased by 1. The address is read according to the address length signal and written to the fourth first-in first-out memory, and then the data read and write control module 10 reads the data to the fourth first-in first-out memory according to PEC_len. If PEC_en is 1, it is necessary to generate PEC bytes in this process, and finally the PEC bytes are also written to the fourth first-in first-out memory.

[0341] When the transmission control unit is in the twenty-fourth state, the packet error check subunit calculates TS_len according to the address length signal of the register clock driver register address conversion subunit, and if PEC_en is 1, TS_len is further increased by 1. If PEC_en is 1, it is necessary to generate the PEC byte in this process, and finally write the PEC byte to the fourth first-in first-out memory.

[0342] When the transmission control unit is in the twenty-fifth state, TS_len is calculated according to the PEC_len signal of the transmission control unit. If PEC_en is 1, TS_len is further increased by 1. The data of the third first-in first-out memory is read according to PEC_len and transmitted to the data read-write control module 10. If PEC_en is 1, the PEC byte needs to be verified in this process, and the verification result is transmitted to the response and interrupt status generation module.

[0343] In a specific implementation manner, the implementation logic of the transmission parameter output subunit is as follows, see Table 12.

[0344] Table 12: Transmission control unit definition table

[0345] Bit name describe 7:4 Reserved reserve. 3 Header_en Whether to send 7E before transmission. 2 Stop Whether to issue a stop after the transfer is completed. 1 R The read / write control is 0 for writing and 1 for reading. 0 Mode I2C and I3C mode selection, 0 represents I2C module, 1 represents I3C mode.

[0346] When the transmission control unit is in the first state level, ie, the IDLE state, all signals are reset and cmd_en is 0.

[0347] When the transmission control unit is in the sixth state, DEV_addr is equal to 7'h7E, the third bit of cmd is equal to 0, the second bit is equal to the stop value given by the register module 20, Rnw is equal to 0, Mode is equal to the Mode value configured by the register module 20. Length is equal to TS_len output by the packet error check subunit. cmd_en is equal to 1.

[0348] When the transmission control unit is in the eighth state or the tenth state, DEV_addr is equal to 7'h7E, the third bit of cmd is equal to 0, the second bit is equal to 0, Rnw is equal to 0, Mode is equal to the Mode value configured by the register module 20, length is equal to TS_len of the packet error check subunit, and cmd_en is equal to 1.

[0349] When the transmission control unit is in the ninth state, DEV_addr is equal to the peripheral address configured by the register module 20, the third bit of cmd is equal to 0, the second bit is equal to the stop value given by the register module 20, Rnw is equal to 0, and Mode is equal to the Mode value configured by the register module 20. Length is equal to TS_len output by the packet error check subunit. cmd_en is equal to 1.

[0350] When the transmission control unit is in the eleventh state, DEV_addr is equal to the peripheral address configured by the register module 20, the third bit of cmd is equal to 0, the second bit is equal to the stop value given by the register module 20, Rnw is equal to 1, and Mode is equal to the Mode value configured by the register module 20. Length is equal to TS_len output by the packet error check subunit. cmd_en is equal to 1.

[0351] When the transmission control unit is in the fifteenth state, the nineteenth state or the twenty-third state, DEV_addr is equal to the peripheral address configured by the register module 20, the third bit of cmd is equal to the Header_en configured by the register (if this bit is 1, the host control logic module will determine whether to issue 7E based on the start and restart that will be issued next), the second bit is equal to the stop value given by the register module 20, Rnw is equal to 0, and Mode is equal to the Mode value configured by the register module 20. Length is equal to TS_len output by the packet error check subunit, and cmd_en is equal to 1.

[0352] When the transmission control unit is in the 16th state, or the 20th state or the 24th state, DEV_addr is equal to the peripheral address configured by the register module 20, the third bit of cmd is equal to Header_en configured by the register (if this bit is 1, the host control logic module will determine whether to issue 7E based on the start and restart issued next), the second bit is equal to 0, Rnw is equal to 0, and Mode is equal to the Mode value configured by the register module 20. Length is equal to TS_len output by the packet error check subunit. cmd_en is equal to 1.

[0353] When the transmission control unit is in the seventeenth state, the twenty-first state or the twenty-fifth state, DEV_addr is equal to the peripheral address configured by the register module 20, the third bit of cmd is equal to 0, the second bit is equal to the stop value given by the register module 20, Rnw is equal to 1, and Mode is equal to the Mode value configured by the register module 20. Length is equal to TS_len output by the packet error check subunit. cmd_en is equal to 1.

[0354] In addition, in the present application, the host control module 40 can perform communication control between the host and the slave based on the value in the register module 20 and the preset communication protocol. The specific structure of the host control module 40 can be set and adjusted according to actual needs. For example, see Figure 8 The host control module 40 includes a host control logic module, a host write control module, a host read control module, a host SIR control module, an SCL and SDA output control module, an SDA input acquisition module and a bus monitoring module.

[0355] The host control logic module is a module that controls data sending and receiving when acting as a host. It will set different state machines according to different bus states, and control the sending and receiving of data according to the changes in the state machines. The host control logic module will control the state changes between state machines according to the bus monitoring signal and the value of the register, and then write and read the signal values ​​of the host write control module, host read control module, and host SIR control module according to these states.

[0356] The host write control module is a module that controls the host write operation. It will send start, stop and other signals to the SCL and SDA output control modules according to the host write signal given by the host control module, and add the write bit to the slave address addr, and add the parity T bit to the Tx_data and give it to the SCL and SDA output control modules. The host read control module is a module that controls the host read operation. It will send start, stop, slave address addr (add read bit) and other signals to the SCL and SDA output control modules according to the host read signal given by the host control module. In I2C, it will send an ack signal to the SCL and SDA output control modules. This module also receives the data from the SDA input acquisition module and passes it to the host control logic module, and detects the T bit in I3C and passes the detected T bit to the host control logic module.

[0357] The host SIR control module is the module that controls the host SIR reception. After the bus monitoring module finds that the slave actively pulls down SDA, it informs the host control logic module and notifies this module to issue a start, and receives data on the SDA data line, or when the host reads or writes, the bus monitoring module finds that the host arbitration fails, and feeds back the received slave address and the received data to the host control logic module, and parses the T bit according to the received data to the host control module, and receives the host SIR signal when the T bit is 0 and sends a stop signal to the SCL and SDA output control modules.

[0358] The bus monitoring module is a module that monitors the I3C bus through the I3C interface. It detects the status of the I3C bus and whether the data sent by the I3C interface is consistent with the data on the bus to perform bus arbitration, etc.

[0359] The SCL and SDA output control modules are modules that drive the SCL and SDA signals. They output sda_out, sda_oe, sda_pullup_en, scl_out, scl_oe, and scl_pullup_en signals according to the signals given by each module and the current signal status. For example, if the module is currently in the data signal sending state and receives the start command again, it will send out a resart signal.

[0360] By applying the technical solution provided in the embodiment of the present invention, by adding a data read and write control module 10, when the host performs a specified type of communication with the slave, data is transferred between the storage medium of the data read and write control module 10 itself and the memory outside the host, thereby effectively solving the problem of clock stalling that is easy to occur when the host reads and writes the slave in the traditional solution.

[0361] Specifically, when the host performs a specified type of communication with the slave, the transmission control module 30 can transfer data between the storage medium of the data read-write control module 10 and the host control module 40 based on the value in the register module 20. The host control module 40 can control the communication between the host and the slave based on the value in the register module 20 and the preset communication protocol, so as to complete the data transfer between the slave and the data read-write control module 10 through the transmission control module 30. The data read-write control module 10 can obtain the read-write instruction information written into the register module 20, and based on the read-write instruction information, transfer data between its own storage medium and the memory outside the host through the data read-write bus. Therefore, it can be seen that when it is necessary to write data to the slave, based on the principle of the present application scheme, the data read-write control module 10 can read data from the memory outside the host through the data read-write bus, and then transfer it to the slave through the transmission control module 30 and the host control module 40. When it is necessary to read slave data, the read data is transmitted to the data read-write control module 10 through the transmission control module 30 and the host control module 40, and then can be stored in the memory outside the host through the data read-write bus by the data read-write control module 10. Of course, the memory outside the host needs to be connected to the central processing unit for communication, and the communication rate between the data read-write control module 10 and the memory needs to be high, which should be higher than the communication rate of the communication bus between the host and the slave. Therefore, the present application scheme will not cause the situation in the traditional scheme where the clock stops due to the CPU not reading the data in the I3C host in time.

[0362] In summary, the solution of the present application effectively solves the clock stalling problem that is easily generated when the host reads and writes the slave.

[0363] Corresponding to the above integrated circuit embodiments, an embodiment of the present invention further provides a device for accessing a dual in-line memory control module, which may include an integrated circuit as in any of the above embodiments, and may refer to the above in correspondence.

[0364] The present invention provides a server, which may include the above-mentioned device for accessing a dual in-line memory control module.

[0365] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0366] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. An integrated circuit, characterized in that: The integrated circuit acts as a host and is connected to the slave through a communication bus, and the integrated circuit includes: a data read and write control module, a transmission control module, a register module and a host control module; The data read / write control module is used to: obtain the read / write instruction information written into the register module, and based on the read / write instruction information, perform data transfer between its own storage medium and the memory outside the host through the data read / write bus; Wherein, the memory is communicatively connected to the central processing unit, and the communication rate between the data read-write control module and the memory is higher than the communication rate of the communication bus; The transmission control module is used to: when the host performs a specified type of communication with the slave, based on the value in the register module, transfer data between the storage medium of the data read and write control module and the host control module; The host control module is used to control the communication between the host and the slave based on the value in the register module and the preset communication protocol, so that when the host performs a specified type of communication with the slave, the data transfer between the slave and the data read and write control module is completed through the transmission control module.

2. The integrated circuit according to claim 1, characterized in that The data read-write control module includes a data read-write bus control unit, a data read-write logic unit, a first first-in first-out memory and a second first-in first-out memory; The data read-write bus control unit is used to: transfer data with the memory outside the host through the data read-write bus and based on the protocol type of the data read-write bus; The data read and write logic unit is connected in communication with the data read and write bus control unit, and is specifically used for: In an idle state, when a read / write enable signal in the read / write instruction information is detected to be enabled, judging whether it is an in-band interrupt transmission mode based on a data transmission length in the read / write instruction information; If not, based on the read / write instruction information, data is transferred between the first FIFO memory or the second FIFO memory and the memory outside the host according to a default transmission mode; If yes, data is transferred between the second first-in first-out memory and the memory outside the host based on the read-write instruction information and in accordance with the in-band interrupt transmission mode.

3. The integrated circuit according to claim 2, characterized in that Based on the read / write instruction information, data is transferred between the first first-in first-out memory or the second first-in first-out memory and a memory outside the host according to a default transmission mode, including: Acquire the read / write control signal in the read / write instruction information; When the read / write control signal is a read / write control signal indicating a write transfer and the first first-in first-out memory is not full, based on the external memory read / write start address in the read / write instruction information and the data transfer length, data is read from the memory external to the host and written into the first first-in first-out memory; When the read-write control signal is a read-write control signal indicating a read transfer and the second first-in-first-out memory is not empty, based on the external memory read-write start address in the read-write instruction information and the data transfer length, the data in the second first-in-first-out memory is read and written into the memory outside the host.

4. The integrated circuit according to claim 2, characterized in that Based on the read / write instruction information, data is transferred between the second first-in first-out memory and the memory outside the host in an in-band interrupt transmission mode, including: Determining whether the second first-in first-out memory is empty; If the second FIFO memory is empty, keep waiting; If the second FIFO memory is not empty, based on the external memory read / write start address in the read / write instruction information, read the data of the specified length in the second FIFO memory and write it into the memory outside the host; Determine whether the read / write enable signal is 0; If the read / write enable signal is 0, the state is changed to an idle state; If the read / write enable signal is not 0, the write address of the memory outside the host is updated, and the operation of determining whether the second first-in first-out memory is empty is returned to be executed.

5. The integrated circuit according to claim 1, characterized in that The transmission control module includes: a cross-clock domain conversion unit, a peripheral address conversion unit, a register address conversion unit, a transmission execution unit, a response and interrupt status generation unit, and a transmission control unit; The cross-clock domain conversion unit is communicatively connected with the register module, and is used to convert the transmitted signal in different clock domains when communicating with the register module; wherein the clock domain used by the cross-clock domain conversion module is the main clock domain, and the clock domain used by the register module is the register clock domain; The peripheral address conversion unit is used to: when the host communicates with the slave, based on the memory bank number of the slave and the slave number of the slave, convert the address of the slave; The register address conversion unit is used to: generate an address parameter of an accessed register of the slave based on a device type of the slave when the host communicates with the slave; The transmission execution unit is used to: under the control of the transmission control unit, perform data transmission between the storage medium of the data read and write control module and the host control module, and generate a check code carried in the transmitted data; a response and interrupt status generating unit, configured to output a response and interrupt status signal under the control of the transmission control unit and the host control module when the host communicates with the slave; The transmission control unit is used to: when the host performs a specified type of communication with the slave, based on the value in the register module and the transmission execution unit, realize data transfer between the storage medium of the data read and write control module and the host control module.

6. The integrated circuit according to claim 5, characterized in that The transmission control module also includes a general command code transmission parameter conversion unit, which is used to: Based on the universal command code, select to convert the register data in the corresponding universal command code register into its own output parameter, so as to be transmitted to the communication bus through the transmission execution unit; When data originating from the communication bus is received through the transmission execution unit, register data in a corresponding general command code register is updated based on the received data originating from the communication bus and the general command code.

7. The integrated circuit according to claim 5, characterized in that The register address conversion unit comprises: A serial detection hub register address conversion subunit, used for generating address parameters of a serial detection hub register; A power management integrated circuit register address conversion subunit, used to generate address parameters of the power management integrated circuit register; A temperature sensor register address conversion subunit, used to generate address parameters of the temperature sensor register; The register address conversion subunit of the registered clock driver is used to generate the address parameters of the register of the registered clock driver.

8. The integrated circuit according to claim 5, characterized in that The transmission control unit is also used for: When the in-band interrupt enable signal is detected to be enabled, the in-band interrupt processing flow is executed; When it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, it is determined whether it is a general command code transmission; If it is a general command code transmission, execute the general command code transmission process; If it is not a general command code transmission, the default transmission process is executed.

9. The integrated circuit according to claim 8, characterized in that When the in-band interrupt enable signal is detected to be enabled, the in-band interrupt processing flow is executed, including: In the first state, when the in-band interrupt enable signal is detected to be enabled, the second state is entered; wherein, in the first state, the transmission control unit is in an idle state; In the second state, the in-band interrupt enable signal is sent to the response and interrupt state generating unit, and it is determined whether the in-band interrupt has a data packet error check code according to the received in-band interrupt address signal and the in-band interrupt check register; if yes, the data packet error check enable signal connected to the transmission execution unit is pulled high, if not, the data packet error check enable signal is pulled low; when an external transmission completion signal is received, the third state is entered; In the third state, the transmission completion signal is sent to the response and interrupt status generation unit, and based on the in-band interrupt length sent by the transmission execution unit, the corresponding transmission length signal is sent to the response and interrupt status generation unit, and jumps to the first state.

10. The integrated circuit according to claim 8, characterized in that When it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, it is determined whether it is a general command code transmission; If it is a general command code transmission, the general command code transmission process is executed, including: In the first state, when it is detected that the in-band interrupt enable signal is not enabled and the command valid signal is enabled, the fourth state is entered; In the fourth state, determining whether it is a general command code transmission; if it is a general command code transmission, entering the fifth state; In the fifth state, determining whether the general command code is less than a first threshold; If it is less than the first threshold, a general command code broadcast write is performed, and after completion, the state is jumped to the first state; If it is not less than the first threshold, the general command code is directly read and written, and after completion, the state is jumped to the first state.

11. The integrated circuit according to claim 10, characterized in that Performing a general command code broadcast write, and jumping to the first state after completion, includes: Entering a sixth state after determining that the general command code is less than the first threshold; In the sixth state, waiting for the transmission execution unit to perform a general command code broadcast write, and when receiving a transmission completion signal, entering the twelfth state; In the twelfth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then the system jumps to the first state.

12. The integrated circuit according to claim 10, characterized in that Directly read and write the general command code, and jump to the first state after completion, including: Entering the seventh state after determining that the general command code is not less than the first threshold; In the seventh state, it is determined whether the read / write bit in the command register is a value indicating writing, if yes, the eighth state is entered; if no, the tenth state is entered; In the eighth state, the transmission execution unit is waited for to directly write the general command code, and when a transmission completion signal is received, the ninth state is entered; In the ninth state, waiting for the transmission execution unit to directly write the load data, and when receiving a transmission completion signal, entering the twelfth state; In the tenth state, the transmission execution unit is waited for to directly read the general command code, and when a transmission completion signal is received, the eleventh state is entered; In the eleventh state, waiting for the transmission execution unit to directly read the load data, and when receiving a transmission completion signal, entering the twelfth state; In the twelfth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then the system jumps to the first state.

13. The integrated circuit according to claim 8, characterized in that Execute the default transfer process, including: Determining a device type of the slave based on a slave number of the slave; A default transfer process is performed based on the device type.

14. The integrated circuit according to claim 13, characterized in that Execute a default transfer process based on the device type, including: When the device type is a serial detection hub, executing a default transmission process to read and write data to the serial detection hub; When the device type is a power management integrated circuit or a temperature sensor, executing a default transmission process to read and write data to the power management integrated circuit or the temperature sensor; When the device type is a registered clock driver, a default transmission process is executed to read and write data to the registered clock driver.

15. The integrated circuit according to claim 14, characterized in that When the device type is a serial detection hub, a default transmission process is executed to read and write data to the serial detection hub, including: When the device type is a serial detection hub, entering a fourteenth state; In the fourteenth state, it is determined whether the read / write bit in the command register is a value indicating writing, if yes, the fifteenth state is entered; if no, the sixteenth state is entered; In the fifteenth state, the transmission execution unit is waited for to perform private writing of the serial detection hub, and the length of the data packet error check check code is output to the transmission execution unit, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered; In the sixteenth state, the transmission execution unit is waited for to perform a private read of the serial detection hub, and a function of performing a packet error check on the transmission execution unit is enabled; when a transmission completion signal is received, the seventeenth state is entered; In the seventeenth state, the error check code length of the data packet is output to the transmission execution unit according to the transmission length signal, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered; In the twenty-sixth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then jumps to the first state.

16. The integrated circuit according to claim 14, characterized in that When the device type is a power management integrated circuit or a temperature sensor, a default transmission process is executed to read and write data to the power management integrated circuit or the temperature sensor, including: When the device type is a power management integrated circuit or a temperature sensor, entering the eighteenth state; In the eighteenth state, it is determined whether the read / write bit in the command register is a value indicating writing, if yes, the nineteenth state is entered; if no, the twentieth state is entered; In the nineteenth state, the transmission execution unit is waited for to perform private writing of the power management integrated circuit or the temperature sensor, and the error check code length of the data packet is output to the transmission execution unit, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered; In the 20th state, the transmission execution unit is waited for to perform a private read of the power management integrated circuit or the temperature sensor, and a function of performing a data packet error check on the transmission execution unit is enabled; when a transmission completion signal is received, the 21st state is entered; In the twenty-first state, the error check code length of the data packet is output to the transmission execution unit according to the transmission length signal, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered; In the twenty-sixth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then jumps to the first state.

17. The integrated circuit according to claim 14, characterized in that When the device type is a registered clock driver, a default transmission process is executed to read and write data to the registered clock driver, including: When the device type is a registered clock driver, entering a twenty-second state; In the twenty-second state, it is determined whether the read-write bit in the command register is a value indicating writing, if yes, the twenty-third state is entered; if no, the twenty-fourth state is entered; In the twenty-third state, the transmission execution unit is waited for to perform the private write of the register clock driver, and the length of the data packet error check check code is output to the transmission execution unit, and the function of the data packet error check of the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered; In the twenty-fourth state, the transmission execution unit is waited for to perform a private read of the register clock driver, and a function of performing a packet error check on the transmission execution unit is enabled; when a transmission completion signal is received, the twenty-fifth state is entered; In the twenty-fifth state, the packet error check code length is output to the transmission execution unit according to the transmission length signal, and the function of performing packet error check on the transmission execution unit is enabled; when the transmission completion signal is received, the twenty-sixth state is entered; In the twenty-sixth state, the transmission completion signal is sent to the response and interrupt state generating unit, and then jumps to the first state.

18. The integrated circuit according to claim 5, characterized in that The transmission execution unit includes a data packet error check subunit, a third first-in first-out memory, a fourth first-in first-out memory, and a transmission parameter output subunit; The data packet error check subunit is used to, under the control of the transmission control unit, use the third first-in first-out memory and the fourth first-in first-out memory to perform data transmission between the storage medium of the data read and write control module and the host control module, and to generate a check code carried in the transmitted data; The transmission parameter output subunit is used to transfer parameters to the host control module under the control of the transmission control unit.

19. The integrated circuit according to claim 5, characterized in that The host is specifically connected to the slave through a communication based on an upgraded two-wire serial bus, and the memory outside the host is a double-rate synchronous dynamic random access memory.

20. A device for accessing a dual in-line memory control module, characterized in that: Comprising an integrated circuit as claimed in any one of claims 1 to 19.

21. A server, characterized in that: The device for accessing a dual in-line memory control module as claimed in claim 20.

Citation Information

Cited By

  • I3C master-slave device communication system based on FPGA

    CN121349923A