Chip interaction methods, apparatus, computer devices and storage media
By introducing a memory unit, a signal conversion unit and a signal selection unit into the chip control circuit, the problem of poor interaction flexibility between chips is solved and efficient compatibility and interaction efficiency are achieved.
Patent Information
- Application Number
- CN202210652186.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-10
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2042-06-10
AI Technical Summary
In the prior art, the interaction flexibility between chips is poor, making it difficult to adapt to the differences in compatible formats of different chips.
By introducing the storage unit, signal conversion unit, and signal selection unit in the chip control circuit, obtain the serial data stream of the interactive data and convert it into a target signal format, select and send the target data according to the interactive content to the target chip.
It realizes flexible interaction between chips, improves the compatibility and efficiency of chip interaction, and can adapt to the differences in signal formats of different chips.
Smart Images

Figure CN114968891B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of semiconductor technology, and in particular, to a chip interaction method, device, computer equipment and storage medium. Background Art
[0002] The integration of SoC chips (System on Chip) is getting higher and higher, and the coordination and stability of various IPs inside the chip are also getting higher. For most IPs in SoC chips, from simple low-speed IPs such as UART, I2C, SPI to high-speed IPs such as DDR, PCIE, etc., a certain number of registers are defined inside the IP, and then these registers are configured and programmed by software to control the IP to enter different working modes or states, and finally generate the expected digital signals to meet the requirements of IP protocol transmission.
[0003] When performing chip interaction, the compatible formats of different chips are not the same. However, the chip has been taped out and its internal signal format has been fixed, which results in poor flexibility in the interaction between chips. Summary of the invention
[0004] The embodiments of the present application provide a chip interaction method, apparatus, computer device and storage medium.
[0005] A first aspect of an embodiment of the present application provides a chip interaction method, which is applied to a chip control circuit of a current chip, wherein the chip control circuit includes a storage unit, a signal conversion unit, and a signal selection unit, and the method includes:
[0006] Obtain the data to be interacted stored in the storage unit of the current chip;
[0007] Determine the target signal format of the target chip;
[0008] The control signal conversion unit converts the to-be-interacted data into a serial data stream in a target signal format and sends the serial data stream to the signal selection unit;
[0009] The control signal selection unit selects target data corresponding to the interactive content from the serial data stream according to the current interactive content, and sends the target data to the target chip.
[0010] In an optional embodiment of the present application, obtaining the to-be-interacted data stored in the storage unit in the current chip includes:
[0011] Querying a target storage device corresponding to the data type of the interactive content from a pre-configured storage device list; wherein the storage device list includes a device identifier of each storage device and a storage data type of each storage device;
[0012] Target data to be interacted with corresponding to the interactive content type is selected from multiple groups of data to be interacted with in the target storage.
[0013] In an optional embodiment of the present application, the control signal selection unit selects target data corresponding to the interactive content from the serial data stream according to the current interactive content, and sends the target data to the target chip, including:
[0014] Determine a target data identifier of target data corresponding to the current interactive content, and send the target data identifier to the signal selection unit;
[0015] The control signal selection unit selects target data corresponding to the target data identifier from the serial data stream based on the target data identifier, and sends the target data to the target chip.
[0016] In an optional embodiment of the present application, the storage device is at least one of a random access memory, a double rate synchronous dynamic random access memory, and a register.
[0017] In an optional embodiment of the present application, determining the target signal format of the target chip includes:
[0018] Get the chip ID of the target chip;
[0019] Determine the target signal format of the target chip based on the chip identification.
[0020] In an optional embodiment of the present application, the chip interaction method further includes:
[0021] Acquire interaction request information of a new target chip; wherein the interaction request information at least includes new interaction content of the new target chip;
[0022] The data to be interacted with stored in the storage unit is updated according to the new interaction content to obtain new data to be interacted with.
[0023] In an optional embodiment of the present application, the chip interaction method further includes:
[0024] Determine a new target signal format of a new target chip according to a new chip identifier in the interaction request information;
[0025] The control signal conversion unit converts the new data to be exchanged into a new serial data stream in a new target signal format, and sends the new serial data stream to the signal selection unit.
[0026] In an optional embodiment of the present application, the chip interaction method further includes:
[0027] The control signal selection unit selects new target data corresponding to the new interactive content from the new serial data stream according to the new interactive content, and sends the new target data to the new target chip.
[0028] A second aspect of an embodiment of the present application provides a chip interaction device, which is applied to a chip control circuit of a current chip, wherein the chip control circuit includes a storage unit, a signal conversion unit, and a signal selection unit, and the device includes:
[0029] An acquisition module is used to acquire the data to be interacted stored in the storage unit in the current chip;
[0030] A determination module, used for determining a target signal format of a target chip;
[0031] A first control module, used for controlling the signal conversion unit to convert the to-be-interacted data into a serial data stream in a target signal format, and send the serial data stream to the signal selection unit;
[0032] The second control module is used to control the signal selection unit to select target data corresponding to the interactive content from the serial data stream according to the current interactive content, and send the target data to the target chip.
[0033] According to a third aspect of an embodiment of the present application, a computer device is provided, comprising: a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0034] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0035] The above chip interaction method first obtains the data to be interacted stored in the storage unit in the current chip, and after determining the target signal format of the target chip, controls the signal conversion unit to convert the data to be interacted into a serial data stream in the target signal format. The signal selection unit selects the target data corresponding to the interaction content from the serial data stream according to the current interaction content, and sends the target data to the target chip, thereby realizing the interaction between the current chip and the target chip. And due to the programmability of the storage unit, the data to be interacted stored in the storage unit can be updated in real time according to actual needs, which provides the possibility for real-time update of the interaction data between chips, thereby solving the technical problem of poor flexibility of the interaction between chips at present, and achieving the technical effect of improving the flexibility of chip interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0037] Figure 1 A schematic diagram of an application scenario of a chip interaction method provided in one embodiment of the present application;
[0038] Figure 2 A flowchart of a chip interaction method provided by one embodiment of the present application;
[0039] Figure 3 A flowchart of a chip interaction method provided by one embodiment of the present application;
[0040] Figure 4 A flowchart of a chip interaction method provided by one embodiment of the present application;
[0041] Figure 5 A flowchart of a chip interaction method provided by one embodiment of the present application;
[0042] Figure 6 A flowchart of a chip interaction method provided by one embodiment of the present application;
[0043] Figure 7 A schematic diagram of the structure of a chip interaction device provided in one embodiment of the present application;
[0044] Figure 8 A schematic diagram of the computer device structure provided for one embodiment of the present application. DETAILED DESCRIPTION
[0045] In the process of implementing the present application, the inventors found that the flexibility of the interaction between chips is currently poor. To address the above problems, a chip interaction method, apparatus, computer device and storage medium are provided in the embodiments of the present application to improve the flexibility of the interaction between chips.
[0046] The solutions in the embodiments of the present application can be implemented using various computer languages, for example, the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0047] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0048] The following is a brief introduction to the application environment of the chip interaction method provided by the embodiment of the present disclosure:
[0049] See also Figure 1 The chip interaction method provided in the embodiment of the present application is applied to a chip control circuit 10, and the chip control circuit 10 includes a storage unit 100, a signal conversion unit 200, a signal selection unit 300 and a control unit 400, wherein:
[0050] The storage unit 100 is used to receive data to be interacted. The data to be interacted is data to be interacted with other chips, such as test data, drive data, etc., and can be configured in real time by developers and the like according to actual conditions. Due to the programmability of the storage unit 100, the data to be interacted can be edited and updated in real time. The storage unit 100 is used to receive the data to be interacted, and store or cache the data to be interacted, so that subsequent processing units can read and process it. The storage unit 100 can be various types of memories, registers, etc. The storage unit 100 can be an existing storage device inside the chip, or a new storage device additionally configured on the existing basis of the SoC chip, etc. It only needs to realize the function of updating the data to be interacted. The specific type and quantity of the storage unit 100 in the embodiment of the present application are not specifically limited.
[0051] The input end of the signal conversion unit 200 is signal-connected to the output end of the storage unit 100, and the control end of the signal conversion unit 200 is signal-connected to the control unit 400. The signal conversion unit 200 is used to convert the data to be interacted into a serial data stream. The signal conversion unit 200 converts the data to be interacted into a serial data stream to facilitate the subsequent signal selection unit 300 to select the target data actually required from the data to be interacted. The signal conversion unit 200 can be a data converter or a signal generator, etc., and the embodiment of the present application is not specifically limited, as long as it can realize the function of converting the data to be interacted into serial data.
[0052] The signal conversion unit 200 can be a signal generator (Signal Generation Device, SGDEV) based on direct memory access. The input end of the signal generator is connected to the output end of the storage unit 100 by signal, and the control end of the signal generator is connected to the control unit 400 by signal. The signal generator is used to convert the data to be interacted into a serial data stream. The signal generator in the embodiment of the present application is based on direct memory access (DMA) transmission. The signal generator can be used as a common control end to read any data mapped to or written into the system access memory space, that is, each data to be interacted in the above-mentioned storage unit 100, and then the data to be interacted is converted into a serial single-bit data stream in units of one bit or several bits, so as to facilitate the subsequent signal selection unit 300 to select the current data, which can greatly improve the efficiency of target data selection, thereby improving the data processing efficiency of the SoC chip in the embodiment of the present application.
[0053] The input end of the signal selection unit 300 is connected to the output end signal of the signal conversion unit 200, and the output end of the signal selection unit 300 is used to connect the input / output interface (Input / Output interface, referred to as IO interface). The signal selection unit 300 is used to select the target data from the serial data stream and send the target data to the input / output interface. The target data refers to the data actually used for interaction, testing, etc. with other chips selected from the current data to be interacted. The signal selection unit 300 can be an independent signal selector or a signal path controlled by the control unit 400, and the target data is selected from the current serial data through the control signal of the control unit 400. The data interface of the signal selection unit 300 can be multiple, and different data interfaces correspond to different types of data or signals. Correspondingly, the signal selector only needs to control the on and off of each data interface to achieve the purpose of selectively passing the target data from the serial data stream. The problem of selecting from a large amount of data is avoided, the selection efficiency of the target data is improved, and the data processing efficiency of the SoC chip is further improved.
[0054] In actual work, the staff writes the data to be interacted that needs to be updated for the SoC chip into the storage unit 100, and the storage unit 100 caches or stores the data to be interacted. The signal conversion unit 200 converts the data to be interacted, which may be parallel data, into, for example, single-bit serial data, and the signal selection unit 300 selects the target data actually needed from the serial data, and transmits the target data through the IO interface to achieve interaction with other chips.
[0055] The output end of the control unit 400 is connected to the control end signal of the signal conversion unit 200 in the chip control circuit 10. The control unit 400 is used to generate a control signal and control the signal conversion unit 200 to convert the data to be interacted into a serial data stream based on the control signal. The control unit 400 can be a processor in the SoC chip or an additionally configured control device. The control unit 400 controls the operation of the signal conversion unit 200, for example, converting the data to be interacted into a serial data stream in a preset format to adapt to the signal format of different chips interacting with the SoC chip, thereby improving the compatibility of the SoC chip.
[0056] The chip control circuit 10 is configured with a storage unit 100, a signal conversion unit 200, and a signal selection unit 300. When the internal signal of the SoC chip needs to be updated, the data to be interacted is written into the storage unit 100, and then the signal conversion unit 200 can convert the data to be interacted into serial data, and the signal selection unit 300 selects the target data from the serial data stream and sends the target data to the input / output interface, thereby realizing interaction with other chips. Due to the programmability of the data to be interacted in the storage unit 100, that is, the SoC chip can flexibly update the data to be interacted in the storage unit 100, so that the SoC chip can output signal data in any format, so that the SoC chip can interact with any type of chip, and has higher compatibility.
[0057] In addition, the chip control circuit 10 may also include: a memory selector 500. The input end of the memory selector 500 is respectively connected to the signals of multiple memory devices, and the output end of the memory selector 500 is connected to the signal conversion unit 200. The memory selector 500 is used to select a target memory device that generates target data from multiple memory devices. For example, for an IP or signal of high-speed data transmission, the path between the DDR and the signal conversion unit 200 is connected, and the high-speed transmission data to be interacted stored in the DDR is transmitted to the signal conversion unit 200, and so on. The examples are not listed here. The embodiment of the present application is provided with a memory selector 500, which can control the signal conversion unit 200 to selectively access each memory device, and selectively connect the path between the corresponding memory device and the signal conversion unit 200, which can greatly reduce the number of samples of the signal conversion unit 200 to be selected for the data to be interacted when reading the signal, thereby improving the data reading efficiency of the signal conversion unit 200, and further improving the data processing efficiency of the SoC chip.
[0058] The following uses the control unit 400 in the chip control circuit 10 as the execution body to illustrate the interaction between the current chip including the chip control circuit 10 and the target chip. Figure 2The chip interaction method provided in the embodiment of the present disclosure includes the following steps 201 to 204:
[0059] Step 201: The control unit obtains the data to be interacted stored in the storage unit in the current chip.
[0060] The control unit generates corresponding data to be interacted according to the pre-configured interactive content or the interactive content acquired in real time, and stores the data to be interacted in the storage unit. When the current chip and the target chip need to interact, the control unit reads the data to be interacted from the storage unit in real time. The data to be interacted can be drive signal data, test signal data, IP protocol data, etc., which are not specifically limited in this embodiment.
[0061] Step 202: The control unit determines the target signal format of the target chip.
[0062] Different chips have different compatible signal formats. For the target chip that interacts with the current chip, the staff can build a list of chip identification and signal formats based on historical interaction information or pre-configured interaction information, and store the list in the control unit or storage unit. During the interaction process, the control unit only needs to look up the table based on the chip identification of the target chip to determine the target signal format that the target chip is compatible with.
[0063] Step 203: The control unit controls the signal conversion unit to convert the to-be-interacted data into a serial data stream in a target signal format, and sends the serial data stream to the signal selection unit.
[0064] Among them, serial data is relative to parallel data. Serial data refers to data in which each data bit is transmitted in sequence during the transmission process, that is, the data is transmitted one bit at a time, and each data bit occupies a fixed time length. Parallel data is data in which each data bit is transmitted at the same time. The embodiment of the present application converts the data to be interacted into a serial data stream, which can greatly facilitate the selection of target data corresponding to the interactive content from the data to be interacted.
[0065] Step 204: The control unit controls the signal selection unit to select target data corresponding to the interaction content from the serial data stream according to the current interaction content, and sends the target data to the target chip.
[0066] Different interactive contents correspond to different interactive data. The control unit can select target data corresponding to the content identifier from multiple data bits in the serial data stream according to the content identifier of the interactive content, and send the target data to the target chip, thereby realizing the interaction between the current chip and the target chip.
[0067] The chip interaction method of the embodiment of the present application first obtains the data to be interacted stored in the storage unit in the current chip, and after determining the target signal format of the target chip, controls the signal conversion unit to convert the data to be interacted into a serial data stream in the target signal format, and the signal selection unit selects the target data corresponding to the interaction content from the serial data stream according to the current interaction content, and sends the target data to the target chip, thereby realizing the interaction between the current chip and the target chip. And due to the programmability of the storage unit, the data to be interacted stored in the storage unit can be updated in real time according to actual needs, which provides the possibility for real-time update of the interaction data between chips, thereby solving the technical problem of poor flexibility of the interaction between chips at present, and achieving the technical effect of improving the flexibility of chip interaction.
[0068] See also Figure 3 In an optional embodiment of the present application, the above step 201, the control unit obtains the data to be interacted stored in the storage unit in the current chip, includes the following steps 301-302:
[0069] Step 301: A control unit searches a preconfigured storage device list for a target storage device corresponding to a data type of interactive content.
[0070] Among them, the storage device list includes the device identification of each storage device and the storage data type of each storage device. For example, if the current interactive content is data reading, it generally requires high-speed transmission, and the corresponding data is generally stored in a high-speed memory, such as a double-data rate synchronous dynamic random access memory (DDR); for another example, if the general data writing does not require a high transmission rate, it is generally stored in a random access memory (RAM) or a register (REG). That is, the control unit first determines the storage location of the corresponding data according to the data type of the interactive content, that is, determines the target storage device according to the data type from multiple storage devices.
[0071] Step 302: The control unit selects target data to be interacted with corresponding to the interactive content type from multiple groups of data to be interacted with in the target storage.
[0072] A memory stores multiple groups of data of the same type. After the control unit determines the location of the data storage, that is, determines the target memory, it searches for data corresponding to the interactive content from the multiple groups of data of the same type stored in the target memory as the target data to be interacted. The data to be interacted includes data to interact with the target chip.
[0073] See also Figure 4In an optional embodiment of the present application, the above step 204, the control unit controls the signal selection unit to select target data corresponding to the interactive content from the serial data stream according to the current interactive content, and sends the target data to the target chip, includes the following steps 401-402:
[0074] Step 401: The control unit determines a target data identifier of target data corresponding to the current interactive content, and sends the target data identifier to the signal selection unit.
[0075] Different interactive contents correspond to different interactive data, and different data have corresponding data identifiers, which can be data content identifiers or bit ranks. The embodiments of the present application do not impose any limitations and can be specifically selected or configured according to actual conditions, as long as the purpose of each data in the serial data stream can be distinguished.
[0076] Step 402: The control unit controls the signal selection unit to select target data corresponding to the target data identifier from the serial data stream based on the target data identifier, and sends the target data to the target chip.
[0077] The serial data stream is composed of multiple serial data arranged one by one in a set order. Different data or data in different positions have their own data identifiers. The terminal device captures the target data from the serial data stream according to the target data identifier, such as capturing the data at the 25th position or the driving signal data, etc. This embodiment does not impose any limitation.
[0078] The embodiment of the present application determines the target data identifier of the target data corresponding to the interactive content in real time, so that the signal selection unit can capture the target data based on the target data identifier, with higher capture efficiency and accuracy, further improving the chip interaction efficiency and reliability provided by the embodiment of the present application.
[0079] In an optional embodiment of the present application, the above-mentioned storage device is at least one of a random access memory, a double rate synchronous dynamic random access memory, and a register.
[0080] In an optional embodiment of the application, the storage device is at least one of a random access memory (RAM), a register (REG), and a double data rate synchronous dynamic random access memory (DDR). Among them, RAM and REG can meet the storage of different types of memory data, and DDR is an external editable memory. Therefore, the embodiment of the disclosure can update the data or signal in the SoC chip from multiple dimensions of internal memory and external memory, greatly broadening the way to update data in the SoC chip and further improving its data update efficiency.
[0081] See also Figure 5 In an optional embodiment of the present application, the above step 202, the control unit determines the target signal format of the target chip, includes the following steps 501-502:
[0082] Step 501: The control unit obtains the chip identification of the target chip.
[0083] The chip identifier can be a chip model, chip ID, etc. This embodiment does not make specific limitations. It only needs to be able to characterize each chip and distinguish it from other chips. The chip identifier is obtained in the following three ways: the first way is that the control unit detects and determines the target chip; the second way is that the target chip is sent to the control unit of the current chip along with the interaction request information before interacting with the current chip; the third way is that the staff pre-configures it according to the number of interactions and timing between the chips. For example, at the first moment, chip A actively interacts with chip B, and at the second moment, chip D actively interacts with chip F. The target chip at the first moment is chip B, and the target chip at the second moment is chip F.
[0084] Step 502: The control unit determines the target signal format of the target chip according to the chip identifier.
[0085] As in step 202 above, different chips have different compatible signal formats. For the target chip that interacts with the current chip, the staff can build a list of chip identifiers and signal formats based on historical interaction information or pre-configured interaction information, and store the list in the control unit or storage unit. During the interaction process, the control unit only needs to look up the table based on the chip identifier of the target chip to determine the target signal format that the target chip is compatible with.
[0086] The embodiment of the present application first obtains the chip identification of the target chip, and then determines the target signal format of the target chip based on the chip identification. There is no need to actively obtain more other information from the target chip, which greatly improves the independence and security of the internal data of the current chip and the target chip; at the same time, it greatly reduces the number of interactions between the current chip and the outside world, and reserves more technical resources for other internal processing, thereby improving the working efficiency of the current chip.
[0087] See also Figure 6 In an optional embodiment of the present application, the chip interaction method further includes the following steps 601 to 605:
[0088] Step 601: The control unit obtains interaction request information of a new target chip.
[0089] In actual work, a chip may interact with multiple chips simultaneously or successively. For example, at the first moment, the current chip interacts with the target chip, and at the second moment, the current chip needs to interact with the new target chip. Then, the new target chip generates an interaction request message before the second moment and sends it to the control unit, and the control unit can obtain the interaction request information of the new target chip. The interaction request message at least includes the new interaction content of the new target chip. Of course, the interaction request message may also include other information such as the requested interaction start time, interaction end time, and chip identification of the target chip, which is not specifically limited in the embodiments of the present application.
[0090] Step 602: The control unit updates the data to be interacted stored in the storage unit according to the new interaction content to obtain new data to be interacted.
[0091] The updating methods in this embodiment include but are not limited to the following two methods: the first method is to add the interaction data corresponding to the new interaction content to the original data to be interacted with, while ensuring the stability of the interaction of the original target chip; the second method is to directly replace the original data to be interacted with after the previous target chip completes the interaction, so as to save storage space of the storage unit.
[0092] Step 603: The control unit determines a new target signal format of a new target chip according to the new chip identifier in the interaction request information.
[0093] Corresponding to the above step 202, the control unit can query the list including chip identifiers and signal formats from the new chip identifier in the same way, so as to quickly obtain the new target signal format that the new target chip is compatible with.
[0094] Step 604: The control unit controls the signal conversion unit to convert the new data to be exchanged into a new serial data stream in a new target signal format, and sends the new serial data stream to the signal selection unit.
[0095] Corresponding to the above step 203, the control unit converts the new data to be interacted into single-bit serial data that is transmitted one bit at a time, and sends it to the signal selection unit so that the signal selection unit can accurately and quickly select new target data corresponding to the interactive content from the new data to be interacted.
[0096] Step 605: The control unit controls the signal selection unit to select new target data corresponding to the new interactive content from the new serial data stream according to the new interactive content, and sends the new target data to the new target chip.
[0097] Corresponding to the above step 204, the control unit can select new target data corresponding to the new content identifier from multiple data bits in the new serial data stream according to the new content identifier of the new interactive content, and send the new target data to the target chip, thereby realizing the interaction between the current chip and the new target chip.
[0098] The embodiment of the present application updates the data to be interacted stored in the storage unit according to the new interaction content to obtain new data to be interacted, and then processes the new data to be interacted to realize the interaction between the current chip and the new target chip. On the one hand, the storage unit has high programmability, and the embodiment of the present application can realize the interaction between different chips by updating the data to be interacted, which is more flexible; on the other hand, the embodiment of the present application only needs to update the data to be interacted in the storage unit, which is easy to operate and can greatly improve the convenience and efficiency of interaction between chips.
[0099] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0100] See also Figure 7 An embodiment of the present application provides a chip interaction device 700, which is applied to a chip control circuit of a current chip. The chip control circuit includes a storage unit, a signal conversion unit, and a signal selection unit. The device includes: an acquisition module 710, a determination module 720, a first control module 730, and a second control module 740, wherein:
[0101] The acquisition module 710 is used to acquire the data to be interacted stored in the storage unit in the current chip;
[0102] The determination module 720 is used to determine the target signal format of the target chip;
[0103] The first control module 730 is used to control the signal conversion unit to convert the to-be-interacted data into a serial data stream in a target signal format and send it to the signal selection unit;
[0104] The second control module 740 is used to control the signal selection unit to select target data corresponding to the interactive content from the serial data stream according to the current interactive content, and send the target data to the target chip.
[0105] In an optional embodiment of the present application, the acquisition module 710 is specifically used to query a target storage device corresponding to the data type of the interactive content in a pre-configured storage device list; wherein the storage device list includes a device identifier of each storage device and a storage data type of each storage device; and select target data to be interacted with corresponding to the type of interactive content from multiple groups of data to be interacted with in the target storage.
[0106] In an optional embodiment of the present application, the second control module 740 is specifically used to determine the target data identifier of the target data corresponding to the current interactive content, and send the target data identifier to the signal selection unit; control the signal selection unit to select the target data corresponding to the target data identifier from the serial data stream based on the target data identifier, and send the target data to the target chip.
[0107] In an optional embodiment of the present application, the storage device is at least one of a random access memory, a double rate synchronous dynamic random access memory, and a register.
[0108] In an optional embodiment of the present application, the determination module 720 is specifically used to obtain a chip identifier of the target chip; and determine a target signal format of the target chip according to the chip identifier.
[0109] In an optional embodiment of the present application, the acquisition module 710 is also used to obtain interaction request information of a new target chip; wherein the interaction request information at least includes new interaction content of the new target chip; and the data to be interacted stored in the storage unit is updated according to the new interaction content to obtain new data to be interacted.
[0110] In an optional embodiment of the present application, the determination module 720 is also used to determine the new target signal format of the new target chip based on the new chip identifier in the interaction request information; control the signal conversion unit to convert the new data to be interacted into a new serial data stream in the new target signal format, and send it to the signal selection unit.
[0111] In an optional embodiment of the present application, the second control module 740 is also used to control the signal selection unit to select new target data corresponding to the new interactive content from the new serial data stream according to the new interactive content, and send the new target data to the new target chip.
[0112] For the specific definition of the chip interaction device 700, please refer to the definition of the chip interaction method above, which will not be repeated here. Each module in the chip interaction device 700 can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0113] In one embodiment, a computer device is provided, the internal structure diagram of which can be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a chip interaction method as described above is implemented. It includes: a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, any step in the chip interaction method as described above is implemented.
[0114] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any step in the above chip interaction method can be implemented.
[0115] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0119] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0120] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A chip interaction method, characterized in that: A chip control circuit applied to the current chip, the chip control circuit comprising a storage unit, a signal conversion unit, a signal selection unit and a control unit, wherein the storage unit is used to receive data to be interacted; The input end of the signal conversion unit is signal-connected to the output end of the storage unit; the signal conversion unit is a signal generator based on direct memory access; The input end of the signal generator is signal-connected to the output end of the storage unit, the control end of the signal generator is signal-connected to the control unit, and the signal generator is used to convert the data to be interacted into a serial data stream; the signal generator, as a common control end, reads any data mapped to or written into the system access memory space, and then converts the data to be interacted into a serial single-bit data stream in units of one bit or several bits; The input end of the signal selection unit is signal-connected to the output end of the signal conversion unit, the output end of the signal selection unit is used to connect to the input / output interface, and the signal selection unit is used to select target data from the serial data stream and send the target data to the input / output interface to achieve interaction with other chips; The output end of the control unit is signal-connected to the control end of the signal conversion unit, and the control unit is used to generate a control signal and control the signal conversion unit to convert the to-be-interacted data into a serial data stream based on the control signal; the control unit is a processor in the SoC chip; The chip control circuit further includes: a memory selector, wherein the input end of the memory selector is respectively connected to a plurality of memory device signals, and the output end of the memory selector is connected to a signal conversion unit signal, the memory selector is used to select a target memory device that generates the target data from the plurality of memory devices, and the memory selector controls the signal conversion unit to selectively access each memory device, and selectively connects the path between the corresponding memory device and the signal conversion unit; if it is for an IP or signal of high-speed data transmission, the path between the DDR and the signal conversion unit is connected, and the high-speed data to be interacted stored in the DDR is transmitted to the signal conversion unit; The method comprises: Acquiring the data to be interacted stored in the storage unit in the current chip, comprising: querying a target storage device corresponding to the data type of the interactive content from a pre-configured storage device list; wherein the storage device list includes a device identifier of each storage device and a storage data type of each storage device; selecting target data to be interacted corresponding to the interactive content type from multiple groups of data to be interacted in the target memory; wherein the storage device includes a random access memory, a double rate synchronous dynamic random access memory and a register; Determine the target signal format of the target chip; Controlling the signal conversion unit to convert the to-be-interacted data into a serial data stream in the target signal format, and sending the serial data stream to the signal selection unit; The signal selection unit is controlled to select target data corresponding to the interactive content from the serial data stream according to the current interactive content, and the target data is sent to the target chip.
2. The chip interaction method according to claim 1, characterized in that: The controlling the signal selection unit to select target data corresponding to the interactive content from the serial data stream according to the current interactive content, and sending the target data to the target chip includes: Determine a target data identifier of the target data corresponding to the current interactive content, and send the target data identifier to the signal selection unit; The signal selection unit is controlled to select the target data corresponding to the target data identifier from the serial data stream based on the target data identifier, and send the target data to the target chip.
3. The chip interaction method according to claim 1, characterized in that: The step of determining the target signal format of the target chip comprises: Obtaining a chip identification of the target chip; The target signal format of the target chip is determined according to the chip identifier.
4. The chip interaction method according to claim 1, characterized in that: The method further comprises: Acquire interaction request information of a new target chip; wherein the interaction request information at least includes new interaction content of the new target chip; The data to be interacted with stored in the storage unit is updated according to the new interaction content to obtain new data to be interacted with.
5. The chip interaction method according to claim 4, characterized in that: The method further comprises: Determine a new target signal format of the new target chip according to the new chip identifier in the interaction request information; The signal conversion unit is controlled to convert the new data to be exchanged into a new serial data stream in the new target signal format, and send the new serial data stream to the signal selection unit.
6. The chip interaction method according to claim 5, characterized in that: The method further comprises: The signal selection unit is controlled to select new target data corresponding to the new interactive content from the new serial data stream according to the new interactive content, and the new target data is sent to the new target chip.
7. A chip interaction device, characterized in that: A chip control circuit applied to the current chip, the chip control circuit comprising a storage unit, a signal conversion unit, a signal selection unit and a control unit, wherein the storage unit is used to receive data to be interacted; The input end of the signal conversion unit is signal-connected to the output end of the storage unit; the signal conversion unit is a signal generator based on direct memory access; The input end of the signal generator is signal-connected to the output end of the storage unit, the control end of the signal generator is signal-connected to the control unit, and the signal generator is used to convert the data to be interacted into a serial data stream; the signal generator, as a common control end, reads any data mapped to or written into the system access memory space, and then converts the data to be interacted into a serial single-bit data stream in units of one bit or several bits; The input end of the signal selection unit is signal-connected to the output end of the signal conversion unit, the output end of the signal selection unit is used to connect to the input / output interface, and the signal selection unit is used to select target data from the serial data stream and send the target data to the input / output interface to achieve interaction with other chips; The output end of the control unit is signal-connected to the control end of the signal conversion unit, and the control unit is used to generate a control signal and control the signal conversion unit to convert the to-be-interacted data into a serial data stream based on the control signal; the control unit is a processor in the SoC chip; The chip control circuit further includes: a memory selector, wherein the input end of the memory selector is respectively connected to a plurality of memory device signals, and the output end of the memory selector is connected to the signal conversion unit signal, the memory selector is used to select a target memory device that generates the target data from the plurality of memory devices, the memory selector controls the signal conversion unit to selectively access each memory device, and selectively connects the path between the corresponding memory device and the signal conversion unit; if it is for an IP or signal of high-speed data transmission, the path between the DDR and the signal conversion unit is connected, and the high-speed data to be exchanged stored in the DDR is transmitted to the signal conversion unit, the device includes: The acquisition module is used to acquire the data to be interacted stored in the storage unit in the current chip, including: querying a target storage device corresponding to the data type of the interactive content from a pre-configured storage device list; wherein the storage device list includes a device identifier of each storage device and a storage data type of each storage device; selecting target data to be interacted corresponding to the interactive content type from multiple groups of data to be interacted in the target storage; wherein the storage device includes a random access memory, a double rate synchronous dynamic random access memory and a register; A determination module, used for determining a target signal format of a target chip; A first control module, configured to control the signal conversion unit to convert the to-be-interacted data into a serial data stream in the target signal format, and send the serial data stream to the signal selection unit; The second control module is used to control the signal selection unit to select target data corresponding to the interactive content from the serial data stream according to the current interactive content, and send the target data to the target chip.
8. A computer device comprising: The method comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Data processing method for numerical control system, computer device, and storage medium
CN112313587A
Data interaction method and device, equipment and medium
CN113918633A
Chip
CN214177306U