Transmission control circuit, data transmission system and method for operating data transmission system

By introducing addressing, format conversion and cutting units into the transmission control circuit, the problem of data format differences between different functional circuits is solved, the main control circuit design is simplified and the system transmission efficiency is improved.

CN114372009BActive Publication Date: 2024-10-11REALTEK SEMICON CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011102899.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-15
Publication Date
2024-10-11
Estimated Expiration
2040-10-15

AI Technical Summary

Technical Problem

When multi-functional circuits share a storage device, different functional circuits use different compression formats, which results in the need to set up various compression format conversion circuits in each functional circuit, which increases circuit complexity and area.

Method used

Design a transmission control circuit, including an addressing unit, a format conversion unit and a cutting control unit. Through the instructions of the main control circuit, the data in the slave circuit is converted into the format required by different functional circuits to avoid setting the format in the main control circuit. conversion unit.

Benefits of technology

It simplifies the design of the main control circuit, reduces the use of hardware components, realizes data format conversion between different functional circuits, and improves the transmission efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114372009B_ABST
    Figure CN114372009B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a transmission control circuit, a data transmission system and a method for operating the data transmission system. The data transmission system comprises a master control circuit, a slave circuit and a transmission control circuit. The slave circuit stores a plurality of data in a first format. The master control circuit processes the data in a second format to complete a corresponding function. The transmission control circuit is coupled to the slave circuit and the master control circuit. The transmission control circuit accesses the corresponding first data from the slave circuit according to a first access instruction of the master control circuit, converts the first data in the first format into first application data in the second format, and transmits the first application data back to the master control circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a transmission control circuit, in particular to a transmission control circuit capable of performing data transmission and format conversion between a master control circuit and a slave circuit. Background Art

[0002] In order to effectively utilize system resources, circuits with different functions often share the same storage device. In this case, in order to allow circuits with different functions to access data in the same storage device, a data interconnect circuit is often set between the functional circuit and the storage device. The data interconnect circuit can receive instructions from different functional circuits and read or write corresponding data from the storage device in sequence. In this way, the procedure for the functional circuit to access the storage device can be simplified.

[0003] However, when there are many functional circuits sharing a storage device, the amount of data transmitted will significantly affect the transmission performance of the system. In order to reduce the amount of data transmitted, the prior art often compresses and decompresses the transmitted data. However, different functional circuits may use different compression formats. Therefore, in order to ensure that the required data can be decompressed, each functional circuit must be equipped with various compression format conversion circuits. In this way, not only does the functional circuit become complicated, but also the area required for the functional circuit is increased. Summary of the invention

[0004] An embodiment of the present invention provides a data transmission system. The data transmission system includes a slave circuit, a master control circuit and a transmission control circuit.

[0005] The slave circuit stores a plurality of data in a first format. The master control circuit processes the data in a second format to complete the application function. The transmission control circuit is coupled to the slave circuit and the first master control circuit. The transmission control circuit accesses the corresponding data from the slave circuit according to the access instruction of the master control circuit, converts the data in the first format into application data in the second format, and transmits the application data back to the master control circuit.

[0006] Another embodiment of the present invention provides a method for operating a data transmission system. The data transmission system includes a slave circuit, a master control circuit and a transmission control circuit.

[0007] The method for operating a data transmission system includes: a slave circuit stores multiple data in a first format, a master control circuit transmits an access instruction to a transmission control circuit, the transmission control circuit accesses corresponding data from the slave circuit according to the access instruction, the transmission control circuit converts the data in the first format into application data in a second format, the transmission control circuit returns the application data to the first master control circuit, and the master control circuit processes the application data to complete the application function.

[0008] Another embodiment of the present invention provides a transmission control circuit. The transmission control circuit is coupled to a master control circuit and a slave circuit, wherein the slave circuit stores a plurality of data in a first format, and the transmission control circuit returns application data in a second format according to the instruction of the master control circuit so that the master control circuit completes the application function.

[0009] The transmission control circuit includes an addressing unit, a format conversion unit and a cutting control unit. The addressing unit generates control information according to address information and data length information included in the access instruction, and the format conversion unit converts data in a first format into data in a second format. The cutting control unit is coupled to the format conversion unit, and the cutting control unit transmits the data in the first format obtained from the slave circuit to the format conversion unit according to the control information so that the format conversion unit converts the format of the data to generate conversion data, and cuts the conversion data according to the control information to generate application data. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 is a schematic diagram of a data transmission system according to an embodiment of the present invention.

[0011] Figure 2 It is a method flow chart of a data transmission system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0012] Figure 1 1 is a schematic diagram of a data transmission system 100 according to an embodiment of the present invention. The data transmission system 100 may include a master control circuit 110A, a transmission control circuit 120, and a slave circuit 130. In some embodiments, the master control circuit 110A may be, for example but not limited to, a direct memory access (DMA) control unit, an image processing unit, a graphics processing unit (GPU), or a central processing unit (Central Processing Unit). The slave circuit 130 may be a memory, for example but not limited to a double data rate (DDR) memory.

[0013] The slave circuit 130 can store multiple data. In some embodiments, in order to effectively utilize the storage space in the slave circuit 130, the data transmission system 100 can compress the data to be written into the slave circuit 130 in a first format. In other words, the data stored in the slave circuit 130 can have a first format.

[0014] However, in Figure 1In the embodiment of the present invention, the master control circuit 110A mainly completes the required application function by processing the data in the second format. That is, the master control circuit 110A may not be able to directly process the data compressed and stored in the first format in the slave circuit 130. In this case, when the master control circuit 110A wants to read data from the slave circuit 130, the master control circuit 110A may transmit a first access instruction INST1 to the transmission control circuit 120. The transmission control circuit 120 may access the corresponding first data D1 from the slave circuit 130 according to the first access instruction INST1, convert the first data D1 in the first format into the first application data DA1 in the second format, and transmit the first application data DA1 back to the master control circuit 110A.

[0015] In this way, the main control circuit 110A does not need to be provided with a format conversion unit, and can obtain data in the second format for processing through the transmission control circuit 120. In some embodiments, the data transmission system 100 may further include more main control circuits, and the transmission control circuit 120 may convert the data in the first format into the format required by each main control circuit.

[0016] For example, the data transmission system 100 may further include a master control circuit 110B. The master control circuit 110B may be coupled to the transmission control circuit 120, and the master control circuit 110B may process data in the third format to complete the required application function. In this embodiment, the transmission control circuit 120 may also access the corresponding second data D2 from the slave circuit 130 according to the second access instruction INST2 of the master control circuit 110B, and may convert the second data D2 in the first format into second application data DA2 in the third format, and finally transmit the second application data DA2 back to the master control circuit 110B.

[0017] Since the transmission control circuit 120 can convert the data in the first format into the data in the second format or the data in the third format according to the access instructions of the main control circuits 110A and 110B, the main control circuits 110A and 110B do not need to set up a format conversion unit, thereby simplifying the design of the main control circuits 110A and 110B.

[0018] exist Figure 1In the embodiment, the transmission control circuit 120 may include an addressing unit 122, format conversion units 124A and 124B, and a cutting control unit 126. The addressing unit 122 may determine the address of the data and the format to be converted according to the instructions transmitted from the master control circuits 110A and 110B. In some embodiments, the cutting control unit 126 may be coupled to the format conversion units 124A and 124B. The cutting control unit 126 may transmit the data obtained from the slave circuit 130 to the format conversion unit 124A to convert the data having the first format into the data having the second format, or transmit the data obtained from the slave circuit 130 to the format conversion unit 124B to convert the data having the first format into the data having the third format, according to the format conversion information determined by the addressing unit 122.

[0019] For example, when the master control circuit 110A wants to obtain the first application data DA1 from the slave circuit 130, the master control circuit 110A can transmit the first access instruction INST1 to the transmission control circuit 120. In some embodiments, the first access instruction INST1 can include the address information and data length information of the first application data DA1. Since the master control circuits 110A and 110B can use different addressing intervals, the data format currently required by the master control circuit can be determined based on the address information recorded in the first access instruction INST1. In this case, the addressing unit 122 can generate the corresponding first control information CTRL1 based on the first access instruction INST1. The first control information CTRL1 can record the format to be converted, so that the transmission control circuit 120 can select the corresponding format conversion unit 124A or 124B to convert the data format after obtaining the first data D1. However, the present invention is not limited to determining the data format to be converted based on the addressing range. In some other embodiments, the transmission control circuit 120 can also determine the data format to be converted based on the master control circuit that transmits the access instruction. For example, when receiving an access instruction from the master control circuit 110A, the transmission control circuit 120 can choose to use the format conversion unit 124A to convert the data format, and when receiving an access instruction from the master control circuit 110B, the transmission control circuit 120 can choose to use the format conversion unit 124B to convert the data format.

[0020] In addition, since the master circuit 110A designs the addressing rules based on the data having the second format, and the slave circuit 130 designs the addressing rules based on the data having the first format, the two may be different. For example, the data compressed in the first format may be in units of 16 bits, while the data compressed in the second format may be in units of 10 bits. In this case, if the first access instruction INST1 sent by the master circuit 110A corresponds to the first application data DA1 having the second format, it may not be directly corresponding to the data stored in the first format in the slave circuit 130 using the same addressing rules. In this case, the addressing unit 122 converts according to the difference between the second format and the first format to obtain the address and data length of the first data D1 that actually includes the first application data DA1 in the slave circuit 130.

[0021] In this way, the transmission control circuit 120 can send a read instruction IA1 to the slave circuit 130 to access the first data D1 from the slave circuit 130. Then, the cropping control unit 126 can know that the first data D1 should be converted into the second format according to the first control information CTRL1, and thus can transmit the first data D1 to the format conversion unit 124A, and the format conversion unit 124A can convert the format of the first data D1 to generate the first conversion data DT1. Since the first conversion data DT1 may include data other than the first application data DA1, the cropping control unit 126 can also crop the first conversion data DT1 accordingly according to the data length recorded in the first control information CTRL1 to obtain the first application data DA1 actually required by the master circuit 110A.

[0022] Similarly, when the master control circuit 110B wants to access the second application data DA2 from the slave circuit 130, the master control circuit 110B can transmit the second access instruction INST2 to the transmission control circuit 120. The addressing unit 122 can generate the second control information CTRL2 according to the address information and data length information included in the second access instruction INST2, and can perform conversion according to the difference between the third format and the first format to obtain the address and data length of the second data D2 that actually includes the second application data DA2 in the slave circuit 130. Then, the transmission control circuit 120 may issue a read instruction IA2 to the slave circuit 130. After reading the second data D2 from the slave circuit 130, the cropping control unit 126 may transmit the second data D2 to the format conversion unit 124B according to the second control information CTRL2 so that the format conversion unit 124B converts the format of the second data D2 to generate second converted data DT2. Then, the cropping control unit 126 may also crop the second converted data DT2 according to the second control information CTRL2 to generate second application data DA2.

[0023] In some embodiments, the transmission control circuit 120 may further include a first-in-first-out storage unit 128, and the addressing unit 122 may store the first control information CTRL1 and the second control information CTRL2 in the first-in-first-out storage unit 128, so that the transmission control circuit 120 can sequentially process the access instructions transmitted by the master control circuits 110A and 110B, and perform corresponding processing after reading the first data D1 and the second data D2 from the slave circuit 130.

[0024] In addition, in some embodiments, the slave circuit 130 may add storage bits for classification or management to the stored data when storing data. That is, the first data D1 and the second data D2 stored in the slave circuit 130 may include redundant storage bits. In this case, the cropping control unit 126 may crop the redundant bits in the first data D1 to generate cropped first data D1' before transmitting the first data D1 to the format conversion unit 124A, and transmit the cropped first data D1' to the format conversion unit 124A, or crop the redundant bits in the second data D2 to generate cropped second data D2' before transmitting the second data D2 to the format conversion unit 124B, and transmit the cropped second data D2' to the format conversion unit 124B. In this case, the format conversion unit 124A may perform format conversion on the cropped first data D1', and the format conversion unit 124B may perform format conversion on the cropped second data D2'.

[0025] Furthermore, in Figure 1 In the embodiment, the data transmission system 100 may further include a master control circuit 110C, which may be coupled to the transmission control circuit 120 and may write data D3 having a first format to the slave circuit 130 through the transmission control circuit 120. In other words, the transmission control circuit 120 may not only assist the master control circuits 110A, 110B, and 110C to read data from the slave circuit 130, but may also assist the master control circuits 110A, 110B, and 110C to write data to the slave circuit 130. Figure 1 In the embodiment of the present invention, the slave circuit 130 can only store data in the same format. However, in some other embodiments, the slave circuit 130 can also store data in two or more different formats. In this case, a corresponding format conversion unit can also be set in the transmission control circuit 120. In this way, the master circuits 110A, 110B and 110C can obtain data in different formats from the slave circuits 130 through the transmission control circuit 120 and convert them into the required format, without repeatedly setting various format conversion units in the master circuits 110A, 110B and 110C to increase the complexity of the design.

[0026] In addition, Figure 1In the embodiment, the transmission control circuit 120 may further include a bridge unit 129. The bridge unit 129 may be coupled to the main control circuits 110A, 110B and 110C, the addressing unit 122 and the cutting control unit 126. The bridge unit 129 may manage the data transmission between the transmission control circuit 120 and the main control circuits 110A, 110B and 110C. For example, the bridge unit 129 may sequentially transmit the instructions transmitted by the main control circuits 110A, 110B and 110C to the addressing unit 122 to avoid conflicts caused by the main control circuits transmitting instructions at the same time. Furthermore, the bridge unit 129 may also record the main control circuit corresponding to each application data to ensure that the transmission control circuit 120 can transmit the first application data DA1 back to the main control circuit 110A, and the second application data DA2 back to the main control circuit 110B.

[0027] Although in the aforementioned embodiment, the transmission control circuit 120 may include an addressing unit 122, format conversion units 124A and 124B, a cutting control unit 126, a first-in-first-out storage unit 128, and a bridge unit 129, the present invention is not limited thereto. For example, in some other embodiments, some units in the transmission control circuit 120 may be combined in design, or may include units with other functions according to requirements.

[0028] Figure 2 2 is a flow chart of a method 200 for operating a data transmission system 100 according to an embodiment of the present invention. The method 200 may include steps S210 to S260. It should be understood that the steps mentioned in this implementation method, except for those whose order is specifically described, can be adjusted in sequence according to actual needs, and can even be executed simultaneously or partially simultaneously.

[0029] S210: The slave circuit 130 stores a plurality of data in a first format;

[0030] S220 : The master control circuit 110A transmits the first access instruction INST1 to the transmission control circuit 120 ;

[0031] S230: the transmission control circuit 120 accesses the corresponding first data D1 from the slave circuit 130 according to the first access instruction INST1;

[0032] S240: The transmission control circuit 120 converts the first data D1 having the first format into first application data DA1 having the second format;

[0033] S250: The transmission control circuit 120 transmits the first application data DA1 back to the main control circuit 110A;

[0034] S260: The main control circuit 110A processes the first application data DA1 to complete the first application function.

[0035] In some embodiments, the first access instruction INST1 may include address information and data length information, and in step S230, the addressing unit 122 in the transmission control circuit 120 may convert the address and data length of the first data D1 corresponding to the first application data DA1 in the slave circuit 130 according to the address information and data length included in the first access instruction INST1, so as to read the first data D1 from the slave circuit 130.

[0036] In addition, the addressing unit 122 may also generate the first control information CTRL1 according to the first access instruction INST1, and in step S240, the cropping control unit 126 may transmit the first data D1 obtained from the slave circuit 130 to the first format conversion unit 124A according to the first control information CTRL1, and the first format conversion unit 124A may convert the format of the first data D1 to generate the first conversion data DT1, and the cropping control unit 126 may crop the first conversion data DT1 according to the first control information CTRL1 to generate the first application data DA1. In some embodiments, if the first data D1 includes redundant bits added by the storage device 130, the cropping control unit 126 may also crop the redundant bits in the first data D1 to generate cropped first data D1' before transmitting the first data D1 to the format conversion unit 124A. The cropped first data D1' will be transmitted to the format conversion unit 124A, and in this case, the format conversion unit 124A will perform format conversion on the cropped first data D1'.

[0037] Similarly, the master control circuit 110B can also use steps similar to the method 200 to obtain the second data D2 from the slave circuit 130 through the transmission control circuit 120, and convert the second data D2 into the second application data DA2 in the third format. Since different control circuits can obtain data in different formats from the slave circuit 130 through the transmission control circuit and convert them into the required format, it is not necessary to repeatedly set various format conversion units in each master control circuit, which can simplify the design of the master control circuit.

[0038] In summary, the data transmission system and the method for operating the data transmission system provided by the embodiments of the present invention can set the format conversion unit in the transmission control circuit between the master control circuit and the slave circuit, so that the master control circuit can access the data in the slave circuit through the transmission control circuit and convert it into the required format. In this way, different master control circuits can obtain data in the required format through the transmission control circuit without repeatedly setting various format conversion units in each master control circuit, thereby simplifying the design of the master control circuit and reducing the use of hardware components.

[0039] The above descriptions are only preferred embodiments of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should fall within the scope of the present invention.

[0040]

Explanation of symbols

[0041] 100: Data transmission system

[0042] 110A, 110B, 110C: Main control circuit

[0043] 120: Transmission control circuit

[0044] 130: Slave circuit

[0045] 122: Addressing unit

[0046] 124A, 124B: Format conversion unit

[0047] 126: Cutting control unit

[0048] 128: First-in-first-out storage unit

[0049] 129: Bridge unit

[0050] INST1, INST2: access instructions

[0051] CTRL1, CTRL2: control information

[0052] D1, D2, D3: data

[0053] D1', D2': data after cutting

[0054] DT1, DT2: conversion data

[0055] DA1, DA2: Application data

[0056] IA1, IA2: Read instruction

[0057] 200: Methods

[0058] S210 to S260: steps.

Claims

1. A data transmission system, comprising: A slave circuit for storing a plurality of data having a first format; a first main control circuit for processing data in a second format to complete a first application function; and a transmission control circuit coupled to the slave circuit and the first master control circuit, for accessing a corresponding first data from the slave circuit according to a first access instruction of the first master control circuit, converting the first data in the first format into a first application data in the second format, and transmitting the first application data back to the first master control circuit, The transmission control circuit comprises: an addressing unit, used for generating a first control information according to an address information and a data length information included in the first access instruction; a first format conversion unit, configured to convert the data in the first format into data in the second format; and A cutting control unit, coupled to the first format conversion unit, is used to: According to the first control information, the first data obtained from the slave circuit is transmitted to the first format conversion unit so that the first format conversion unit converts the format of the first data to generate a first conversion data, and the first conversion data is cut according to the first control information to generate the first application data.

2. The data transmission system according to claim 1, further comprising: a second main control circuit, coupled to the transmission control circuit, for processing data in a third format to complete a second application function; The transmission control circuit is further used to access a corresponding second data from the slave circuit according to a second access instruction of the second master control circuit, convert the second data having the first format into a second application data having the third format, and return the second application data to the second master control circuit.

3. The data transmission system according to claim 2, wherein the transmission control circuit further comprises: a second format conversion unit, coupled to the cutting control unit, for converting the data in the first format into data in the third format; in: The addressing unit is further used to generate a second control information according to an address information and a data length information included in the second access instruction; and The cutting control unit is also used to transmit the second data obtained from the slave circuit to the second format conversion unit according to the second control information so that the second format conversion unit converts the format of the second data to generate a second conversion data, and cuts the second conversion data according to the second control information to generate the second application data. 4 . The data transmission system according to claim 1 , wherein the cropping control unit is further configured to crop redundant bits in the first data before transmitting the first data to the first format conversion unit.

5. The data transmission system according to claim 1, wherein: The address information and the data length information included in the first access instruction are a corresponding address and a data length of the first application data; and The addressing unit is further used for converting an address and a data length of the first data corresponding to the first application data in the slave circuit according to the address information and the data length information included in the first access instruction.

6. The data transmission system according to claim 1, further comprising: A third master control circuit is coupled to the transmission control circuit and is used for writing a third data having the first format to the slave circuit through the transmission control circuit.

7. A method for operating a data transmission system, the data transmission system comprising a slave circuit, a first master control circuit and a transmission control circuit, the method comprising: The slave circuit stores a plurality of data in a first format; The first main control circuit transmits a first access instruction to the transmission control circuit; The transmission control circuit accesses a corresponding first data from the slave circuit according to the first access instruction; The transmission control circuit converts the first data in the first format into first application data in a second format; The transmission control circuit returns the first application data to the first main control circuit; and The first main control circuit processes the first application data to complete a first application function. The transmission control circuit comprises: an addressing unit, used for generating a first control information according to an address information and a data length information included in the first access instruction; a first format conversion unit, configured to convert the data in the first format into data in the second format; and A cutting control unit, coupled to the first format conversion unit, is used to: According to the first control information, the first data obtained from the slave circuit is transmitted to the first format conversion unit so that the first format conversion unit converts the format of the first data to generate a first conversion data, and the first conversion data is cut according to the first control information to generate the first application data.

8. A transmission control circuit coupled to a first master control circuit and a slave circuit, wherein the slave circuit is used to store a plurality of data in a first format, and the transmission control circuit is used to return a first application data in a second format according to a first access instruction of the first master control circuit so that the first master control circuit completes a first application function, the transmission control circuit comprising: an addressing unit, used for generating a first control information according to an address information and a data length information included in the first access instruction; a first format conversion unit, configured to convert the data in the first format into data in the second format; and A cutting control unit is coupled to the first format conversion unit, and is used for transmitting a first data having the first format obtained from the slave circuit to the first format conversion unit according to the first control information so that the first format conversion unit converts the format of the first data to generate a first conversion data, and cutting the first conversion data according to the first control information to generate the first application data.

9. The transmission control circuit according to claim 8 is further coupled to a second master control circuit, the transmission control circuit is further used to return application data in a third format according to a second access instruction of the second master control circuit so that the second master control circuit completes a second application function, the transmission control circuit further comprising: a second format conversion unit, coupled to the cutting control unit, for converting the data in the first format into data in the third format; in: The addressing unit is further used to generate a second control information according to an address information and a data length information included in the second access instruction; and The cutting control unit is also used to transmit a second data obtained from the slave circuit to the second format conversion unit according to the second control information so that the second format conversion unit converts the format of the second data to generate a second conversion data, and cuts the second conversion data according to the second control information to generate second application data.