CN114968891A - Chip interaction method and device, computer equipment and storage medium - Google Patents

Chip interaction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114968891A
CN114968891A CN202210652186.3A CN202210652186A CN114968891A CN 114968891 A CN114968891 A CN 114968891A CN 202210652186 A CN202210652186 A CN 202210652186A CN 114968891 A CN114968891 A CN 114968891A
Authority
CN
China
Prior art keywords
chip
target
data
new
interacted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210652186.3A
Other languages
Chinese (zh)
Inventor
胡振波
彭剑英
罗成
黄颖然
张楠
白云
黄自力
胡星
李帅军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shin Lai Zhirong Semiconductor Technology Shanghai Co ltd
Original Assignee
Shin Lai Zhirong Semiconductor Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shin Lai Zhirong Semiconductor Technology Shanghai Co ltd filed Critical Shin Lai Zhirong Semiconductor Technology Shanghai Co ltd
Priority to CN202210652186.3A priority Critical patent/CN114968891A/en
Publication of CN114968891A publication Critical patent/CN114968891A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a chip interaction method and device, computer equipment and a storage medium, and relates to the technical field of semiconductors. The chip interaction method comprises the following steps: acquiring data to be interacted stored in the storage unit in the current chip; determining a target signal format of a target chip; controlling the signal conversion unit to convert the data to be interacted into a serial data stream in the target signal format, and sending the serial data stream to the signal selection unit; and 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. The technical problem that the interaction between chips is poor in flexibility at present is solved, and the technical effect of improving the flexibility of the chip interaction is achieved.

Description

Chip interaction method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of semiconductor technologies, and in particular, to a chip interaction method and apparatus, a computer device, and a storage medium.
Background
The SoC Chip (System on Chip) has higher and higher integration level, and the cooperative work and stability of each IP inside the Chip have also become higher. For most of the IPs in the SoC chip, from a simple low-speed IP such as UART, I2C, SPI to a high-speed IP such as DDR, PCIE, etc., a certain number of registers are defined inside the IP, and then software configures and programs such registers so as to control the IP to enter different working modes or states, and finally generate expected digital signals, thereby meeting the requirements of IP protocol transmission.
When chip interaction is carried out, compatible formats of different chips are different, but at the moment, the chips already complete tape-out, and signal formats and the like in the chips are fixed, so that the flexibility of interaction between the chips at present is poor.
Disclosure of Invention
The embodiment of the application provides a chip interaction method, a chip interaction device, computer equipment and a storage medium.
In a first aspect of the embodiments of the present application, a chip interaction method is provided, which is applied to a chip control circuit of a current chip, where the chip control circuit includes a storage unit, a signal conversion unit, and a signal selection unit, and the method includes:
acquiring data to be interacted stored in a storage unit in a current chip;
determining a target signal format of a target chip;
the control signal conversion unit converts the data to be interacted into a serial data stream in a target signal format and sends the serial data stream to the signal selection unit;
and 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.
In an optional embodiment of the present application, the obtaining of data to be interacted stored in a storage unit in a current chip includes:
inquiring a target storage device corresponding to the data type of the interactive content from a pre-configured storage device list; the storage device list comprises device identifications of the storage devices and storage data types of the storage devices;
and selecting target data to be interacted corresponding to the type of the interactive content from the multiple groups of data to be interacted in the target memory.
In an optional embodiment of the present application, the controlling signal selecting 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:
determining a target data identifier of target data corresponding to the current interactive content, and sending the target data identifier to a signal selection unit;
the control signal selection unit selects target data corresponding to the target data identification from the serial data stream based on the target data identification and sends the target data to the target chip.
In an alternative embodiment of the present application, the memory device is at least one of a random access memory, a double rate synchronous dynamic random access memory, and a register.
In an alternative embodiment of the present application, determining a target signal format of a target chip includes:
acquiring a chip identifier of a target chip;
and determining the target signal format of the target chip according to the chip identification.
In an optional embodiment of the present application, the chip interaction method further includes:
acquiring interaction request information of a new target chip; wherein, the interactive request information at least comprises the new interactive content of the new target chip;
and updating the data to be interacted stored in the storage unit according to the new interactive content to obtain new data to be interacted.
In an optional embodiment of the present application, the chip interaction method further includes:
determining a new target signal format of a new target chip according to the new chip identification in the interaction request information;
and the control signal conversion unit converts the new data to be interacted into a new serial data stream in a new target signal format and sends the new serial data stream to the signal selection unit.
In an optional embodiment of the present application, the chip interaction method further includes:
and 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 a new target chip.
In a second aspect of the embodiments of the present application, a chip interaction apparatus is provided, which is applied to a chip control circuit of a current chip, where the chip control circuit includes a storage unit, a signal conversion unit, and a signal selection unit, and the apparatus includes:
the acquisition module is used for acquiring the data to be interacted stored in the storage unit in the current chip;
the determining module is used for determining a target signal format of a target chip;
the first control module is used for controlling the signal conversion unit to convert the data to be interacted into a serial data stream in a target signal format and sending the serial data stream to the signal selection unit;
and the second control module is used for 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.
In a third aspect of embodiments of the present application, there is provided a computer device, including: comprising a memory storing a computer program and a processor implementing the steps of the method as claimed in any one of the above when the processor executes the computer program.
In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of the above.
The chip interaction method comprises the steps of firstly obtaining data to be interacted stored in a storage unit in a current chip, controlling a signal conversion unit to convert the data to be interacted into a serial data stream in a target signal format after determining the target signal format of the target chip, selecting target data corresponding to interaction contents from the serial data stream according to the current interaction contents by a signal selection unit, and sending the target data to the target chip, so that interaction between the current chip and the target chip is achieved. 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, and possibility is provided for real-time updating of the interaction data between the chips, so that the technical problem that the interaction between the chips is poor in flexibility at present is solved, and the technical effect of improving the flexibility of the interaction between the chips is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic view of an application scenario of a chip interaction method according to an embodiment of the present application;
FIG. 2 is a flowchart of a chip interaction method according to an embodiment of the present application;
FIG. 3 is a flowchart of a chip interaction method according to an embodiment of the present application;
FIG. 4 is a flowchart of a chip interaction method according to an embodiment of the present application;
FIG. 5 is a flowchart of a chip interaction method according to an embodiment of the present application;
FIG. 6 is a flowchart of a chip interaction method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a chip interaction device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In the process of implementing the present application, the inventors find that the flexibility of interaction between chips is poor at present, and in order to solve the above problems, embodiments of the present application provide a chip interaction method, apparatus, computer device, and storage medium, so as to improve the flexibility of interaction between chips.
The scheme in the embodiment of the application can be implemented by adopting various computer languages, such as object-oriented programming language Java and transliterated scripting language JavaScript.
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict.
The following briefly introduces an application environment of the chip interaction method provided by the embodiment of the present disclosure:
referring to fig. 1, the chip interaction method provided by the embodiment of the present application is applied to a chip control circuit 10, 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:
the storage unit 100 is used for receiving data to be interacted. The data to be interacted is data interacted with other chips, for example, the data to be interacted may be test data, driving data, and the like, and may be configured in real time by a developer and the like according to an actual situation. 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 for receiving the data to be interacted, and storing or caching the data to be interacted for a subsequent processing unit to read and process. The storage unit 100 may be various types of memories, registers, and the like, the storage unit 100 may be an existing storage device in a chip, or may also be a new storage device additionally configured on the existing basis of an SoC chip, and only a function of updating data to be interacted may be implemented, and the specific type, number, and the like of the storage unit 100 are not specifically limited in this embodiment of the application.
The input end of the signal conversion unit 200 is in signal connection with the output end of the storage unit 100, the control end of the signal conversion unit 200 is in signal connection with the control unit 400, and the signal conversion unit 200 is used for converting 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, so that the subsequent signal selection unit 300 can conveniently select actually required target data from the data to be interacted. The signal conversion unit 200 may be a data converter or a signal generator, and the like, and the embodiment of the present application is not particularly limited, and only needs to implement a function of converting data to be interacted into serial data.
The Signal conversion unit 200 may be a direct memory access (dma) Signal Generator (SGDEV). The input end of the signal generator is in signal connection with the output end of the storage unit 100, the control end of the signal generator is in signal connection with the control unit 400, and the signal generator is used for converting 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, and may be used as a common control terminal to read any data to be interacted mapped or written into a system Memory Access space, that is, each data to be interacted in the Memory unit 100, and then convert the data to be interacted into a serial single-bit data stream with one bit or a plurality of bits as a unit, so as to facilitate the subsequent signal selection unit 300 to select the current data, which may greatly improve the efficiency of target data selection, and further improve the data processing efficiency of the SoC chip in the embodiment of the present application.
The Input end of the signal selection unit 300 is in signal connection with the Output end of the signal conversion unit 200, the Output end of the signal selection unit 300 is used for connecting an Input/Output interface (IO interface for short), and the signal selection unit 300 is used for selecting target data from a serial data stream and sending the target data to the Input/Output interface. The target data refers to data which is selected from the current data to be interacted and actually used for interacting with other chips, testing and the like. The signal selection unit 300 may be an independent signal selector, or may be a signal path controlled by the control unit 400, and selects the target data from the current serial data through the control signal of the control unit 400. The signal selection unit 300 may have a plurality of data interfaces, where different data interfaces correspond to different types of data or signals, and correspondingly, the signal selector may selectively pass through target data from the serial data stream only by controlling the on/off of each data interface. 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.
In actual work, a worker writes data to be interacted, which needs to update 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 data to be interacted, which may be parallel data, into serial data, for example, a single bit, and the signal selection unit 300 selects target data actually required by itself from the serial data and transmits the target data through an IO interface, so as to implement interaction with other chips.
The output end of the control unit 400 is in signal connection with the control end of the signal conversion unit 200 in the chip control circuit 10, and the control unit 400 is configured 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 may be a processor in the SoC chip, or may be an additionally configured control device, and the control unit 400 controls the operation of the signal conversion unit 200, for example, converts the data to be interacted into a serial data stream in a preset format, so as to adapt to different signal formats of chips interacted with the SoC chip, thereby improving the compatibility of the SoC chip.
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, then the signal conversion unit 200 can convert the data to be interacted into serial data, the signal selection unit 300 selects target data from the serial data stream, and sends the target data to the input/output interface, so that interaction with other chips is realized. Due to the programmability of the data to be interacted in the storage unit 100, namely, 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, and can interact with chips of any types, and the compatibility is higher.
In addition, the chip control circuit 10 may further include: a memory selector 500. The input end of the memory selector 500 is respectively connected with a plurality of memory devices by signals, the output end of the memory selector 500 is connected with the signal conversion unit 200 by signals, the memory selector 500 is used for selecting a target memory device generating target data from the plurality of memory devices, for example, an IP or a signal for high-speed data transmission, a path between the DDR and the signal conversion unit 200 is switched on, and data to be exchanged of high-speed transmission stored in the DDR is transmitted to the signal conversion unit 200, and so on, which is not exhaustive. By providing the memory selector 500, the embodiment of the application can control the signal conversion unit 200 to selectively access each memory device, selectively turn on a path between the corresponding memory device and the signal conversion unit 200, and can greatly reduce the number of samples of data to be interacted to be selected when the signal conversion unit 200 reads signals, thereby improving the data reading efficiency of the signal conversion unit 200 and further improving the data processing efficiency of the SoC chip.
The following description will take the control unit 400 in the chip control circuit 10 as an execution main body, and exemplify the interaction between the current chip and the target chip including the chip control circuit 10. Referring to fig. 2, the chip interaction method provided in the embodiment of the present disclosure includes the following steps 201 to 204:
step 201, the control unit obtains data to be interacted stored in a storage unit in the current chip.
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. And 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 may be driving signal data, testing signal data, IP protocol data, and the like, and this embodiment is not particularly limited.
Step 202, the control unit determines a target signal format of the target chip.
Different chips have different compatible signal formats, and for a target chip interacting with the current chip, a worker can construct a list of chip identifiers and signal formats by using historical interaction information or preconfigured interaction information and store the list in a control unit or a storage unit. In the interaction process, the control unit can determine and obtain a target signal format which can be compatible with the target chip only by looking up the table based on the chip identification of the target chip.
Step 203, the control unit controls the signal conversion unit to convert the data to be interacted into a serial data stream in a target signal format, and sends the serial data stream to the signal selection unit.
The serial data are opposite to the parallel data, the serial data refer to data transmitted by data bits in sequence in the transmission process, namely the data are transmitted one by one in sequence, each bit of data occupies a fixed time length, and the parallel data are data transmitted by the data bits at the same time.
And 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 a target chip.
Different interactive contents correspond to different interactive data, the control unit can select target data corresponding to the content identification from a plurality of data bits in the serial data stream according to the content identification of the interactive contents, and the target data is sent to a target chip, so that the interaction between the current chip and the target chip is realized.
According to the chip interaction method, the data to be interacted stored in the storage unit of the current chip are obtained firstly, the signal conversion unit is controlled to convert the data to be interacted into the serial data stream of the target signal format after the target signal format of the target chip is determined, 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, and therefore interaction between the current chip and the target chip is achieved. 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, and possibility is provided for real-time updating of the interaction data between the chips, so that the technical problem that the interaction between the chips is poor in flexibility at present is solved, and the technical effect of improving the flexibility of the interaction between the chips is achieved.
Referring to fig. 3, in an optional embodiment of the present application, the step 201 in which the control unit obtains data to be interacted stored in the storage unit of the current chip includes the following steps 301 to 302:
step 301, the control unit queries a target storage device corresponding to the data type of the interactive content from a pre-configured storage device list.
The storage device list includes device identifications of the storage devices and storage data types of the storage devices. For example, the current interactive content is Data reading, which generally requires high-speed transmission, and the corresponding Data is generally stored in a high-speed memory, such as a Double Data Rate (DDR); for another example, the general data writing has low requirement on the transmission rate, and is generally stored in a Random Access Memory (RAM) or a Register (REG). That is, the control unit determines the storage location of the corresponding data according to the data type of the interactive content, that is, determines the target storage device from the plurality of storage devices according to the data type.
Step 302, the control unit selects target data to be interacted corresponding to the type of the interactive content from the multiple sets of data to be interacted in the target memory.
A plurality of groups of data of the same type are stored in one memory, and after the position of data storage is determined, namely a target memory is determined, the control unit queries data corresponding to interactive contents from the plurality of groups of data of the same type stored in the target memory as target data to be interacted. The data to be interacted comprises data interacted with the target chip.
Referring to fig. 4, in an alternative embodiment of the present application, the step 204, in which the control unit controls the signal selection unit to select the 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, includes the following steps 401 to 402:
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.
Different interactive contents correspond to different interactive data, the different data have corresponding data identifiers, the data identifiers can be data content identifiers or bit numbers, the embodiment of the application is not limited at all, the data identifiers can be specifically selected or configured according to actual conditions, and only the purpose of distinguishing each data in the serial data stream is needed.
And step 402, the control unit controls the signal selection unit to select target data corresponding to the target data identification from the serial data stream based on the target data identification and send the target data to a target chip.
The serial data stream is formed by arranging a plurality of serial data in a set order by one bit, and different data, or data of different bit orders have respective data identifications, and the terminal device captures target data from the serial data stream according to the target data identification, for example, capture data located at 25 th bit order or drive signal data, etc., which is not limited in any way in this embodiment.
The method and the device for acquiring the target data determine the target data identification 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 identification, the capturing efficiency is higher, the accuracy is higher, and the chip interaction efficiency and the reliability provided by the embodiment of the application are further improved.
In an optional embodiment of the present application, the memory device is at least one of a random access memory, a double rate synchronous dynamic random access memory, and a register.
In an alternative embodiment, the Memory device is at least one of a Random Access Memory (RAM), a Register (REG), and a Double Data Rate (DDR). The RAM and the REG can meet the storage requirements of different types of memory data, and the DDR is an external editable memory, so that the embodiment of the disclosure can update data or signals in the SoC chip from multiple dimensions of the memory and the external memory, greatly broadens the data updating way in the SoC chip, and further improves the data updating efficiency.
Referring to fig. 5, in an alternative embodiment of the present application, the determining, by the control unit in step 202, a target signal format of the target chip includes the following steps 501 to 502:
step 501, the control unit obtains a chip identifier of a target chip.
The chip identification can be any of the chip model, the chip ID and the like, and the embodiment is not particularly limited, and only needs to represent each chip and distinguish the chip from other chips. The chip identifier obtaining method includes, but is not limited to, the following three types: in the first mode, the control unit detects and determines a target chip; in the second mode, 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; in the third mode, the configuration is performed in advance by the staff according to the interaction times and time sequence between the chips, for example, at the first moment, the chip a actively interacts with the chip B, at the second moment, the chip D actively interacts with the chip F, the target chip corresponding to the first moment is the chip B, and the target chip at the second moment is the chip F.
Step 502, the control unit determines the target signal format of the target chip according to the chip identifier.
As shown in step 202, different chips have different compatible signal formats, and for a target chip interacting with a current chip, a worker may construct a list of chip identifiers and signal formats from historical interaction information or preconfigured interaction information, and store the list in a control unit or a storage unit. In the interaction process, the control unit can determine and obtain a target signal format which can be compatible with the target chip only by looking up the table based on the chip identification of the target chip.
According to the embodiment of the application, the chip identification of the target chip is firstly obtained, then the target signal format of the target chip is determined according to the chip identification, more other information does not need to be actively obtained from the target chip, and the independence and the safety of the current chip and the internal data of the target chip are greatly improved; meanwhile, the interaction times between the current chip and the outside are greatly reduced, more technical resources are reserved for internal other processing, and the working efficiency of the current chip is improved.
Referring to fig. 6, in an alternative embodiment of the present application, the chip interaction method further includes the following steps 601-605:
step 601, the control unit obtains the interaction request information of the new target chip.
In actual work, one chip may interact with multiple chips simultaneously or sequentially, for example, at a first time, the current chip interacts with a target chip, and at a second time, the current chip needs to interact with a new target chip, so that the new target chip generates an interaction request message before the second time and sends the interaction request message to the control unit, and the control unit can obtain the interaction request message of the new target chip. The interaction request information at least includes new interaction content of a new target chip, and of course, the interaction request information may also include other information such as request interaction start time, interaction end time, chip identifier of the target chip, and the like, which is not specifically limited in the embodiment of the present application.
Step 602, the control unit updates the data to be interacted stored in the storage unit according to the new interactive content to obtain new data to be interacted.
The updating method in this embodiment includes, but is not limited to, the following two methods: in the first mode, interaction data corresponding to new interaction content is added to original data to be interacted, so that the interaction stability of an original target chip is guaranteed; in the second mode, the original data to be interacted is directly replaced after the previous target chip completes the interaction, so that the storage space of the storage unit is saved.
Step 603, the control unit determines a new target signal format of the new target chip according to the new chip identifier in the interaction request information.
Corresponding to the step 202, the control unit may query the list including the chip id and the signal format from the new chip id in the same manner, so as to quickly obtain a new target signal format compatible with the new target chip.
In step 604, the control unit controls the signal conversion unit to convert the new data to be interacted into a new serial data stream in a new target signal format, and sends the new serial data stream to the signal selection unit.
Corresponding to the step 203, the control unit converts the new data to be interacted into single-bit serial data which is sequentially transmitted according to one bit and one bit, and sends the single-bit serial data 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.
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 a new target chip.
Corresponding to the step 204, the control unit may select new target data corresponding to the new content identifier from the plurality of 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, that is, the interaction between the current chip and the new target chip may be implemented.
According to the method and the device, the data to be interacted stored in the storage unit are updated according to the new interaction content to obtain new data to be interacted, and then the new data to be interacted are processed to achieve interaction between the current chip and the new target chip. On the first hand, the storage unit has higher programmability, the interaction between the storage unit and different chips can be realized by updating the data to be interacted, and the flexibility is higher; in the second aspect, the embodiment of the application only needs to update the data to be interacted in the storage unit, the operation is convenient, and the convenience and the interaction efficiency of interaction between chips can be greatly improved.
It should be understood that, although the steps in the flowchart are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 7, an embodiment of the present application provides a chip interaction apparatus 700 applied to a chip control circuit of a current chip, where the chip control circuit includes a storage unit, a signal conversion unit, and a signal selection unit, and the apparatus includes: an obtaining module 710, a determining module 720, a first control module 730, and a second control module 740, wherein:
the obtaining module 710 is configured to obtain data to be interacted stored in a storage unit in a current chip;
the determining module 720 is configured to determine a target signal format of a target chip;
the first control module 730 is configured to control the signal conversion unit to convert the data to be interacted into a serial data stream in a target signal format, and send the serial data stream to the signal selection unit;
the second control module 740 is configured 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.
In an optional embodiment of the present application, the obtaining module 710 is specifically configured to query a target storage device corresponding to a data type of the interactive content in a pre-configured storage device list; the storage device list comprises device identifications of the storage devices and storage data types of the storage devices; and selecting target data to be interacted corresponding to the type of the interactive content from the multiple groups of data to be interacted in the target memory.
In an optional embodiment of the present application, the second control module 740 is specifically configured to determine a target data identifier of target data corresponding to current interactive content, and send the target data identifier to the signal selection unit; the control signal selection unit selects target data corresponding to the target data identification from the serial data stream based on the target data identification and sends the target data to the target chip.
In an alternative embodiment of the present application, the memory device is at least one of a random access memory, a double rate synchronous dynamic random access memory, and a register.
In an optional embodiment of the present application, the determining module 720 is specifically configured to obtain a chip identifier of a target chip; and determining the target signal format of the target chip according to the chip identification.
In an optional embodiment of the present application, the obtaining module 710 is further configured to obtain interaction request information of a new target chip; wherein, the interactive request information at least comprises the new interactive content of the new target chip; and updating the data to be interacted stored in the storage unit according to the new interactive content to obtain new data to be interacted.
In an optional embodiment of the present application, the determining module 720 is further configured to determine a new target signal format of a new target chip according to a new chip identifier in the interaction request information; and the control signal conversion unit converts the new data to be interacted into a new serial data stream in a new target signal format and sends the new serial data stream to the signal selection unit.
In an optional embodiment of the present application, the second control module 740 is further configured 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 a new target chip.
For the specific limitations of the chip interaction apparatus 700, reference may be made to the above limitations of the chip interaction method, which is not described herein again. The modules in the chip interaction device 700 can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a chip interaction method as above. The method comprises the following steps: the chip interaction method comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes any step of the chip interaction method when executing the computer program.
In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out any of the steps of the above chip interaction method.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such 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 intended to include such modifications and variations as well.

Claims (11)

1. A chip interaction method is characterized in that the chip interaction method is applied to a chip control circuit of a current chip, the chip control circuit comprises a storage unit, a signal conversion unit and a signal selection unit, and the method comprises the following steps:
acquiring data to be interacted stored in the storage unit in the current chip;
determining a target signal format of a target chip;
controlling the signal conversion unit to convert the data to be interacted into a serial data stream in the target signal format, and sending the serial data stream to the signal selection unit;
and 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.
2. The chip interaction method according to claim 1, wherein the obtaining of the data to be interacted stored in the storage unit in the current chip comprises:
inquiring a target storage device corresponding to the data type of the interactive content from a pre-configured storage device list; the storage device list comprises device identifications of all storage devices and storage data types of all the storage devices;
and selecting target data to be interacted corresponding to the interactive content type from the multiple groups of data to be interacted in the target memory.
3. The chip interaction method according to claim 2, wherein 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 send the target data to the target chip comprises:
determining a target data identifier of the target data corresponding to the current interactive content, and sending the target data identifier to the signal selection unit;
and controlling the signal selection unit to select the target data corresponding to the target data identification from the serial data stream based on the target data identification, and sending the target data to the target chip.
4. The chip interaction method according to claim 2, wherein the memory device is at least one of a random access memory, a double data rate synchronous dynamic random access memory, and a register.
5. The chip interaction method according to claim 1, wherein the determining a target signal format of a target chip comprises:
acquiring a chip identifier of the target chip;
and determining the target signal format of the target chip according to the chip identification.
6. The chip interaction method according to claim 1, further comprising:
acquiring interaction request information of a new target chip; wherein, the interaction request information at least comprises the new interaction content of the new target chip;
and updating the data to be interacted stored in the storage unit according to the new interactive content to obtain new data to be interacted.
7. The chip interaction method of claim 6, further comprising:
determining a new target signal format of the new target chip according to the new chip identification in the interaction request information;
and controlling 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 sending the new serial data stream to the signal selection unit.
8. The chip interaction method of claim 7, further comprising:
and controlling 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 sending the new target data to the new target chip.
9. A chip interaction device is characterized in that the chip interaction device is applied to a chip control circuit of a current chip, the chip control circuit comprises a storage unit, a signal conversion unit and a signal selection unit, and the device comprises:
the acquisition module is used for acquiring the data to be interacted stored in the storage unit in the current chip;
the determining module is used for determining a target signal format of a target chip;
the first control module is used for controlling the signal conversion unit to convert the data to be interacted into a serial data stream in the target signal format and sending the serial data stream to the signal selection unit;
and the second control module is used for 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.
10. A computer device, comprising: comprising a memory and a processor, said memory storing a computer program, characterized in that said processor realizes the steps of the method according to any one of claims 1 to 8 when executing said computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202210652186.3A 2022-06-10 2022-06-10 Chip interaction method and device, computer equipment and storage medium Pending CN114968891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210652186.3A CN114968891A (en) 2022-06-10 2022-06-10 Chip interaction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210652186.3A CN114968891A (en) 2022-06-10 2022-06-10 Chip interaction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114968891A true CN114968891A (en) 2022-08-30

Family

ID=82962626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210652186.3A Pending CN114968891A (en) 2022-06-10 2022-06-10 Chip interaction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114968891A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200439053Y1 (en) * 2006-11-24 2008-03-18 (주)다이나릿시스템 Device having reconfigurable chip for interacting with processor using serial communication channel and system thereof
US20140344485A1 (en) * 2013-05-15 2014-11-20 Stmicroelectronics S.R.L. Communication system for interfacing a plurality of transmission circuits with an interconnection network, and corresponding integrated circuit
CN112311567A (en) * 2019-07-26 2021-02-02 华为技术有限公司 Communication method and device
CN112313587A (en) * 2018-07-09 2021-02-02 大族激光科技产业集团股份有限公司 Data processing method of numerical control system, computer equipment and storage medium
CN214177306U (en) * 2020-12-25 2021-09-10 杭州旗捷科技有限公司 Chip
CN113918633A (en) * 2021-10-11 2022-01-11 文思海辉智科科技有限公司 Data interaction method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200439053Y1 (en) * 2006-11-24 2008-03-18 (주)다이나릿시스템 Device having reconfigurable chip for interacting with processor using serial communication channel and system thereof
US20140344485A1 (en) * 2013-05-15 2014-11-20 Stmicroelectronics S.R.L. Communication system for interfacing a plurality of transmission circuits with an interconnection network, and corresponding integrated circuit
CN112313587A (en) * 2018-07-09 2021-02-02 大族激光科技产业集团股份有限公司 Data processing method of numerical control system, computer equipment and storage medium
CN112311567A (en) * 2019-07-26 2021-02-02 华为技术有限公司 Communication method and device
CN214177306U (en) * 2020-12-25 2021-09-10 杭州旗捷科技有限公司 Chip
CN113918633A (en) * 2021-10-11 2022-01-11 文思海辉智科科技有限公司 Data interaction method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN106547709B (en) The method and device of flexible configuration multi-channel DMA controller
CN111984562A (en) Method for burst access control of register, electronic device and storage medium
CN110912836B (en) Method for forwarding data by forwarding device, control device, storage medium and system
CN102667649A (en) Multi-processor based programmable logic controller and method for operating the same
CN107911391A (en) A kind of AXI protocol based on FPGA and the method for SPI protocol conversion
CN110519138B (en) Profibus-DP master station protocol implementation method and system
CN110463138B (en) Network structure information generation method
CN105786736A (en) Method, chip and device for multi-chip cascading
CN112749113A (en) Data interaction method, system, device and medium
CN114510452A (en) SOC (System on chip) integration method and device and electronic equipment
CN114089713A (en) Communication method based on UDS, ECU and upper computer
CN106302071A (en) A kind of adapter, the network equipment and the method for port configuration
CN103378994A (en) Method and terminal for testing communication equipment
CN115134427B (en) Communication protocol coordination method, device, computer equipment and storage medium
CN114460925B (en) Automatic test method for CAN interface HIL of electric automobile controller
CN114968891A (en) Chip interaction method and device, computer equipment and storage medium
CN116048668B (en) Application plug-in communication system based on web operating system
JP2013181833A (en) Test device and test module
CN116185499B (en) Register data transmission method, register cache module, intelligent device and medium
CN109992539B (en) Double-host cooperative working device
CN109144853B (en) Software defined radio SoC chip debugging system
US8996737B1 (en) Method for emulating communication standards of transceiver modules for native host devices
CN115328679A (en) Automatic integration method of heterogeneous function library, computing equipment and system thereof
CN113064833A (en) Single chip microcomputer simulation method, system, device, equipment and storage medium
CN115103032B (en) Communication protocol control circuit and chip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination