Search

CN-121996023-A - Waveform data management method, system and computer readable storage medium

CN121996023ACN 121996023 ACN121996023 ACN 121996023ACN-121996023-A

Abstract

The application relates to the technical field of simulation test, and discloses a waveform data management method, a waveform data management system and a computer readable storage medium. The method comprises the steps of storing waveform data generated in a simulation test process into a main memory file in real time, switching a standby memory file into a next main memory file when the storage space of the main memory file is full so as to continuously receive the waveform data generated in the simulation test process, synchronously transferring all waveform data in the main memory file with the full storage space to a solid state disk, and switching the main memory file into a usable standby memory file after the data transfer. By adopting the method, the waveform data can be ensured to be received without interruption and frame loss in long-time simulation.

Inventors

  • LIN MINGYU
  • LAI JUNSHENG

Assignees

  • 皇虎测试科技(深圳)有限公司

Dates

Publication Date
20260508
Application Date
20260408

Claims (10)

  1. 1. The waveform data management method is characterized by being applied to an integrated circuit simulation test system, wherein the integrated circuit simulation test system comprises a memory and a solid state disk, a main memory file and at least one standby memory file are created in the memory, and the method comprises the following steps: storing waveform data generated in the simulation test process into the main memory file in real time; when the storage space of the main memory file is full, switching one standby memory file into the next main memory file so as to continuously receive waveform data generated in real time in the simulation test process; And synchronously transferring all waveform data in the main memory file with full storage space to the solid state disk, and switching the main memory file into an available standby memory file after transferring the data.
  2. 2. The method according to claim 1, wherein the method further comprises: When the storage spaces of the plurality of main memory files are full, a plurality of independent threads are called, all waveform data in the plurality of main memory files are respectively transferred to the solid state disk in parallel, and each independent thread corresponds to one main memory file.
  3. 3. The method according to claim 1, wherein the method further comprises: linking a plurality of available standby memory files to obtain a dynamic memory pool; The method comprises the steps of monitoring the number of files of all standby memory files in the dynamic memory pool in real time, and dynamically adjusting the number of the standby memory files in the dynamic memory pool based on the number of the files.
  4. 4. The method of claim 3, wherein dynamically adjusting the number of spare memory files in the dynamic memory pool based on the number of files comprises: if the number of the files is smaller than a first number threshold, dynamically increasing a first preset number of spare memory files in the dynamic memory pool; and if the number of the files is larger than a second number threshold, dynamically destroying the second preset number of spare memory files in the dynamic memory pool.
  5. 5. The method of claim 3, wherein said switching the spare memory file to the next main memory file continues to receive waveform data generated in real time during the simulation test, comprising: And taking out an available standby memory file from the dynamic memory pool as a next main memory file so as to continuously receive the waveform data generated in real time in the simulation test process.
  6. 6. The method according to any one of claims 1 to 5, further comprising: naming each waveform file based on the timestamp of each waveform file stored in the solid state disk to obtain an ID (identity) of each waveform file; Constructing a first-level index for each waveform file according to the time sequence of each ID mark; for each waveform file, a secondary index is built for the waveform file based on the sequence number of the clock period corresponding to each byte inside the waveform file.
  7. 7. The method of claim 6, wherein the method further comprises: Responding to a waveform data searching request, searching a corresponding target waveform file in the primary index based on timestamp information carried by the waveform data searching request, and mapping the target waveform file into a memory block; Calculating the address offset of the target waveform data to be searched based on the sequence number information of the clock period carried by the waveform data searching request; And based on the address offset, moving an access pointer to a storage address of the target waveform data in the memory block through random addressing, and further reading and displaying the target waveform data.
  8. 8. A waveform data management system, the system comprising: the first module is used for storing the waveform data generated in the simulation test process into the main memory file in real time; The second module is used for switching a standby memory file into a next main memory file when the storage space of the main memory file is full so as to continuously receive the waveform data generated in real time in the simulation test process; And the third module is used for synchronously transferring all waveform data in the main memory file with full storage space to the solid state disk, and switching the main memory file into an available standby memory file after the data is transferred.
  9. 9. A terminal device, characterized in that it comprises a processor and a memory, the memory storing a computer program, the processor being adapted to execute the computer program to implement the method of waveform data management according to any one of claims 1-7.
  10. 10. A computer readable storage medium, characterized in that it stores a computer program which, when executed on a processor, implements the waveform data management method according to any one of claims 1-7.

Description

Waveform data management method, system and computer readable storage medium Technical Field The present application relates to the field of simulation testing technologies, and in particular, to a waveform data management method, a waveform data management system, and a computer readable storage medium. Background In Integrated Circuit (IC) simulation testing, waveform data is generated in real time at a rate of up to 32GB/s, as shown in fig. 1, the conventional memory path relies on the PCIe bus to write the data directly to the hard disk, limiting the hard disk write bandwidth, well below the emulator output rate. If the direct writing mode is adopted, data backlog is necessarily caused, and finally, the waveform of the key time sequence section is lost, so that the integrity and traceability of the test result are damaged. In addition, the conventional storage path is used for processing waveform data, so that part of key paths and signals are saved, representative waveforms are reserved, and the rest is discarded. This selective saving is triggering the data black hole crisis in the IC simulation verification, the cost of manufacturing and analyzing the IC design defect BUG. Disclosure of Invention In view of the above, embodiments of the present application provide a method, a system, and a computer readable storage medium for waveform data management, which can effectively solve the technical problems of data backlog and waveform loss in a critical timing section caused by a conventional storage path. In a first aspect, an embodiment of the present application provides a waveform data management method, including: storing waveform data generated in the simulation test process into the main memory file in real time; when the storage space of the main memory file is full, switching one standby memory file into the next main memory file so as to continuously receive waveform data generated in real time in the simulation test process; And synchronously transferring all waveform data in the main memory file with full storage space to the solid state disk, and switching the main memory file into an available standby memory file after transferring the data. In a second aspect, an embodiment of the present application provides a waveform data management system, including: the first module is used for storing the waveform data generated in the simulation test process into the main memory file in real time; The second module is used for switching a standby memory file into a next main memory file when the storage space of the main memory file is full so as to continuously receive the waveform data generated in real time in the simulation test process; And the third module is used for synchronously transferring all waveform data in the main memory file with full storage space to the solid state disk, and switching the main memory file into an available standby memory file after the data is transferred. In a third aspect, the present application also provides a terminal device comprising a processor and a memory, the memory storing a computer program, the processor being adapted to execute the computer program to perform the steps of: storing waveform data generated in the simulation test process into the main memory file in real time; when the storage space of the main memory file is full, switching one standby memory file into the next main memory file so as to continuously receive waveform data generated in real time in the simulation test process; And synchronously transferring all waveform data in the main memory file with full storage space to the solid state disk, and switching the main memory file into an available standby memory file after transferring the data. In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: storing waveform data generated in the simulation test process into the main memory file in real time; when the storage space of the main memory file is full, switching one standby memory file into the next main memory file so as to continuously receive waveform data generated in real time in the simulation test process; And synchronously transferring all waveform data in the main memory file with full storage space to the solid state disk, and switching the main memory file into an available standby memory file after transferring the data. The embodiment of the application has the following beneficial effects: firstly, the main memory file is used for storing waveform data, the bandwidth advantage of the memory which is more than or equal to 300 GB/s is fully exerted, the hard disk writing bottleneck is thoroughly avoided, and the full-scale, lossless and continuous capturing of the waveform data is realized. And the memory file is reused immediately after the transfer, so that a low-overhead closed loop is formed, and the waveform reception is ensured not