Soc chip performance verification method, system, device and storage medium
By setting up delay and bandwidth collectors in EDA simulation to record the delay and bandwidth information of each IP module of the SOC chip, the problem of low verification efficiency in the prior art is solved, and fast and accurate performance verification is achieved.
Patent Information
- Application Number
- CN202311655291.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-05
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-05
AI Technical Summary
Existing SOC chip performance verification methods require writing specialized test cases and performing EDA simulations, which consumes a lot of human and computing resources and affects verification efficiency.
By setting up latency and bandwidth collectors during EDA simulation, the latency and bandwidth information of each IP module is monitored and recorded in the module data transmission characteristic table. Subsequently, during performance verification, these data are directly read to calculate the path bandwidth and latency, avoiding the need to re-perform EDA simulation and write specific test cases.
It improves the efficiency of SOC chip performance verification, reduces the occupation of human and computing resources, and enables fast and accurate acquisition of data path latency and bandwidth information.
Smart Images

Figure CN117610494B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of integrated circuit design technology, and in particular to a method, system, device and storage medium for verifying the performance of a SOC chip. Background Technology
[0002] In the field of IC design, mainstream chip design increasingly favors System-on-Chip (SoC) designs that utilize reusable IP modules (Intellectual Property cores). Common IP modules in SoC chip systems include CPU modules, DDR modules, USB modules, and PCIe modules. An SoC chip integrates all the system's functional modules onto a single chip, containing at least one processor IP (or processor core), and can also include port IP modules, memory IP modules, and other IP modules as needed. Internally, data communication and control are handled through an on-chip bus, which connects the various functional modules within the system, enabling them to exchange data and share resources.
[0003] In the design and development of System-on-a-Chip (SoC) chips, verification is required before deployment to ensure that the SoC's performance meets design specifications in all aspects and maintains good performance and reliability under different operating conditions. Typically, after each IP module is developed, it is integrated into the system for simulation and performance verification. If the performance characteristics do not meet requirements, modifications are made. As SoC chips develop towards higher integration, larger scale, and more complex structures, the number of integrated IP modules is increasing, making chip performance verification particularly important and a decisive factor in determining whether the chip can meet real-world needs. The system performance of an SoC chip mainly includes the data path bandwidth and data path latency of each IP module. The data path refers to the data transmission channel (or signal transmission path) within the SoC chip. Two important indicators are involved: bandwidth and latency. Bandwidth refers to the maximum rate at which data is transmitted on the data path, representing the SoC chip's internal data transmission capability, usually measured in bits per second (bps). Higher bandwidth means the chip can transmit data faster, thus improving overall performance. Path latency refers to the time required for data to travel from one end to the other on a data path. It reflects the speed of data transmission within the chip. The lower the path latency, the faster the data transmission within the chip, and the faster the system response speed.
[0004] Currently, existing technologies also provide some methods for calculating data path latency in SOC chip systems. For example, Chinese patent application CN202210676222.X proposes a method for obtaining data path latency values, including the following steps: determining the master device and its corresponding slave device in the SOC system; invoking latency test cases, performing multiple access operations on the master device and each slave device based on the read / write data path between the master device and each slave device to perform latency tests, and obtaining the latency value of each access operation, where the access operations include read and write operations; determining a first target latency value on each read data path based on the first latency value of the read operation on each read data path; and determining a second target latency value on each write data path based on the second latency value of the write operation on each write data path. This scheme obtains accurate target latency values for each read and write operation by performing multiple access operations on the master device and slave device for latency testing; specifically, it performs latency testing by sending a single transmission. As for calculating the path bandwidth, it usually requires writing a dedicated bandwidth test case and performing EDA simulation based on the bandwidth test case. In the EDA simulation, a large amount of data is sent and the transmission rate is measured. For example, the verification personnel can specify a certain IP module as the master device in the bandwidth test case to send 1000 transmissions, each transmission sending 1MByte of data. The total amount of data to be transmitted is 1000Mbytes. Then, by analyzing the waveform displayed in the EDA simulation results, the time taken by the IP module to send these 1000Mbytes is analyzed. For example, if it takes 5us (5 microseconds), then the corresponding channel bandwidth is 1000M / 5us, that is, the total amount of data divided by the time taken to complete the transmission of these data amounts, thus obtaining the path bandwidth of the above-mentioned IP module as the master device.
[0005] As can be seen, the existing verification schemes described above require the development of dedicated test cases and the execution of EDA simulations based on these test cases. This consumes significant human and computational resources, impacting the efficiency of SOC chip performance verification. How to quickly and accurately obtain the data path bandwidth and latency of an SOC chip is a pressing technical problem that needs to be solved. Summary of the Invention
[0006] The purpose of this invention is to overcome the shortcomings of existing technologies and provide a method, system, device, and storage medium for SOC chip performance verification. The SOC chip performance verification scheme provided by this invention collects the latency and bandwidth values of each IP module in the chip system during EDA simulation by setting a latency and bandwidth collector in the test stimulus module of the EDA simulation. The collected latency and bandwidth values are added to a preset module data transmission characteristic table for recording. Subsequently, during SOC chip performance verification, the path bandwidth and path latency at the current master device end are calculated by reading the data from the aforementioned module data transmission characteristic table. This allows for obtaining data path latency and bandwidth information without performing a new EDA simulation and eliminates the need to write specific test cases for each IP module, thus improving the efficiency of SOC chip performance verification.
[0007] To achieve the above objectives, the present invention provides the following technical solution: A method for verifying the performance of a System-on-a-Chip (SoC) chip includes the following steps: Obtain EDA simulation test case information for the design under test (DUT), and set a corresponding simulation stimulus test file for each test case; the DUT corresponds to a SOC chip that integrates multiple IP modules, and each IP module is connected through an on-chip bus. Based on the simulation stimulus test file of the test case, the test stimulus module applies test stimuli to the design under test (DUT) to perform EDA simulation; wherein, the test stimulus module includes a delay and bandwidth collector, which is used to monitor the operation delay information and bandwidth information of each IP module in the chip system during the EDA simulation, and after obtaining the delay value and bandwidth value of each IP module according to the monitored information, adds the delay value and bandwidth value of each IP module to a preset module data transmission characteristic table; When performing performance verification of the aforementioned SOC chip, the data path delay and data path bandwidth of the IP module, which serves as the master device, are calculated based on the delay and bandwidth values of each IP module recorded in the aforementioned module data transmission characteristic table. The data path delay value of the master device is the sum of the delay values of the relevant modules on the current data path, and the data path bandwidth value of the master device is the bandwidth value of the module with the smallest bandwidth among the relevant modules on the current data path.
[0008] Furthermore, the module data transmission characteristic table includes at least a module ID field, a delay field, and a bandwidth field; The module ID field is used to record the unique module name and / or module number information of the IP module; The delay field is used to record the delay value of the corresponding IP module in EDA simulation; The bandwidth field is used to record the bandwidth value of the corresponding IP module in EDA simulation.
[0009] Furthermore, the master device is an IP module capable of controlling the bus, and the bus type is AXI. During performance verification, the master device sends operation instructions to the slave device in the system. The slave device is a DDR module or a DDR module with a chip memory module. The DDR module reads and writes data according to the aforementioned operation instructions. The aforementioned data path is formed between the master device and the slave device.
[0010] Furthermore, it is determined whether there is a change in the clock domain in the aforementioned data path. If it is determined that there is a change in the clock domain in the data path, a register slice module is introduced into the aforementioned data path to improve the bus operating frequency. Furthermore, when calculating the latency and bandwidth values of the aforementioned data path, the time latency and bandwidth changes brought about by the introduction of the aforementioned Slice module should be taken into account.
[0011] Furthermore, the delay and bandwidth values of the register slice module are obtained. When calculating the delay of the data path, the delay values of the slice modules are accumulated together. When calculating the bandwidth of the data path, the bandwidth values of the slice modules are compared together.
[0012] Furthermore, for read and write operation commands, the latency and bandwidth collector can calculate the read operation latency value and write operation latency value of each IP module respectively; correspondingly, the latency values recorded in the module data transmission characteristic table include the read operation latency value and the write operation latency value. During performance testing, it is determined whether the operation command sent by the master device is a read operation or a write operation. If it is determined to be a read operation, the data path latency value of the master device is the sum of the read operation latency values of the relevant modules on the data path. If it is determined to be a write operation, the data path latency value of the master device is the sum of the write operation latency values of the relevant modules on the data path.
[0013] Furthermore, for each Design Under Test (DUT), when the DUT is updated, EDA simulation of the updated DUT is initiated, and the aforementioned module data transmission characteristic table is updated according to the new EDA simulation process, so that the delay and bandwidth values of the modules recorded in the aforementioned module data transmission characteristic table match the updated SOC chip design.
[0014] The present invention also provides a SOC chip performance verification system, the system comprising: An EDA simulation subsystem is used to perform EDA simulation on a Design Under Test (DUT). The DUT corresponds to a System-on-a-Chip (SoC) chip integrating multiple IP modules, which are connected via an on-chip bus. The EDA simulation subsystem is configured to: acquire EDA simulation test case information for the DUT, with a corresponding simulation stimulus test file for each test case; and, based on the simulation stimulus test file of the test case, apply test stimuli to the DUT for EDA simulation. The test stimulus module includes a delay and bandwidth collector, which monitors the operational delay and bandwidth information of each IP module in the chip system during EDA simulation. After obtaining the delay and bandwidth values of each IP module based on the monitored information, the collector adds the delay and bandwidth values of each IP module to a preset module data transmission characteristic table. A SOC chip performance verification subsystem is used to perform system performance verification on the aforementioned SOC chip. The SOC chip performance verification subsystem is configured to: acquire a path performance calculation instruction triggered by a user for the current master device's data path; acquire module information on the path of the aforementioned data path based on the aforementioned path performance calculation instruction; read the delay value and bandwidth value of the corresponding module from the module data transmission characteristic table of the aforementioned EDA simulation subsystem based on the module information; and calculate the data path delay and data path bandwidth of the aforementioned data path based on the aforementioned delay value and bandwidth value, wherein the data path delay value of the master device is the sum of the delay values of the relevant modules on the path of the data path, and the data path bandwidth value of the master device is the bandwidth value of the module with the smallest bandwidth among the relevant modules on the path of the data path.
[0015] The present invention also provides an electronic device, comprising: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to perform the method described in any of the preceding descriptions.
[0016] The present invention also provides a computer storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method according to any one of the preceding claims.
[0017] Compared with existing technologies, this invention, by adopting the above technical solutions, has the following advantages and positive effects: The SOC chip performance verification scheme provided by this invention collects the delay and bandwidth values of each IP module in the chip system during EDA simulation by setting delay and bandwidth collectors in the test stimulus module of EDA simulation. The collected delay and bandwidth values are added to a preset module data transmission characteristic table for recording. Subsequently, when performing SOC chip performance verification, the path bandwidth and path delay of the current master device are calculated by reading the data in the aforementioned module data transmission characteristic table. The delay and bandwidth information of the data path can be obtained without performing a new EDA simulation, and there is no need to write specific test cases for IP modules, thus improving the efficiency of SOC chip performance verification. Attached Figure Description
[0018] Figure 1 This is an example diagram showing information during EDA simulation in the SOC chip performance verification method provided in this embodiment of the invention.
[0019] Figure 2 This is a pipeline structure diagram of the data path provided in an embodiment of the present invention.
[0020] Figure 3 This is a pipeline structure diagram of adding a Slice module to a data path with clock domain variations, provided in an embodiment of the present invention.
[0021] Figure 4 This is an example diagram of the data structure of the module data transmission characteristic table provided in an embodiment of the present invention.
[0022] Figure 5 This is an example diagram illustrating the information in the data transmission characteristic table of the dynamically updated module provided in an embodiment of the present invention. Detailed Implementation
[0023] The following detailed description, in conjunction with the accompanying drawings and specific embodiments, provides a further detailed account of the SOC chip performance verification method, system, device, and storage medium disclosed in this invention. It should be noted that techniques (including methods and apparatus) known to those skilled in the art may not be discussed in detail, but where appropriate, such known techniques are considered part of the specification. Furthermore, other examples of exemplary embodiments may have different values. The structures, proportions, sizes, etc., depicted in the accompanying drawings are merely illustrative of the content disclosed in this specification for the understanding and reading of those skilled in the art, and are not intended to limit the conditions under which the invention can be implemented.
[0024] In the description of the embodiments of this application, " / " means "or", and "and / or" is used to describe the relationship between related objects, indicating that there can be three relationships. For example, "A and / or B" means: A and B exist alone, B exists alone, and A and B exist simultaneously. In the description of the embodiments of this application, "multiple" refers to two or more. Example
[0025] This invention provides a method for verifying the performance of a System-on-a-Chip (SoC), the method comprising the following steps.
[0026] S100: Obtain EDA simulation test case information for the design under test (DUT). Each test case has a corresponding simulation stimulus test file. The DUT corresponds to a SOC chip that integrates multiple IP modules (i.e., modules). Each IP module is connected through an on-chip bus.
[0027] S200, based on the simulation stimulus test file of the test case, the test stimulus module applies test stimuli to the design under test (DUT) to perform EDA simulation; wherein, the test stimulus module includes a delay and bandwidth collector, which is used to monitor the operation delay information and bandwidth information of each IP module in the chip system during the EDA simulation process, and after obtaining the delay value and bandwidth value of each IP module according to the monitored information, adds the delay value and bandwidth value of each IP module to a preset module data transmission characteristic table.
[0028] S300, when performing the performance verification of the aforementioned SOC chip, based on the latency and bandwidth values of each IP module recorded in the aforementioned module data transmission characteristic table, calculate the data path latency and data path bandwidth of the IP module serving as the master device; wherein, the data path latency value of the master device is the sum of the latency values of the relevant modules on the current data path, and the data path bandwidth value of the master device is the bandwidth value of the module with the smallest bandwidth among the relevant modules on the current data path.
[0029] The Design Under Test (DUT) is the design of the SOC chip to be tested. In the functional simulation phase, it usually refers to the register transfer level (RTL) code of the SOC chip.
[0030] Test cases are a series of codes written to verify the functionality or performance of the aforementioned SOC chip. Taking UVM (Universal Verification Methodology) verification, which is commonly used in chip design, as an example, its test cases are written in System Verilog. It generates stimuli using UVM sequences, and different test cases correspond to different test stimuli, that is, different simulation stimulus test files (also known as simulation files).
[0031] When performing EDA simulation, the hardware circuit functions of the SOC chip need to be described using a hardware description language such as Verilog to form RTL code. Then, the RTL code is stimulated by a simulation stimulus test file, that is, external signal input is simulated, so as to determine whether the aforementioned SOC chip design can run correctly.
[0032] The IP module refers to the specific functional module within the chip. Examples include a CPU module, DDR module, USB module, and PCIe module. The SOC chip integrates all the system's IP modules, with an on-chip bus connecting them to enable data exchange and resource sharing.
[0033] For any SoC chip to be verified, during EDA simulation, the design-under-test (DUT) of the SoC chip can be obtained first. Then, the EDA simulation test case information written for the DUT can be obtained, and a corresponding simulation stimulus test file (testbench) is set for each test case. After starting the EDA simulation, based on the simulation stimulus test file (testbench) of the aforementioned test cases, the test stimulus module of the EDA simulation system applies test stimuli to the DUT to perform EDA simulation.
[0034] See Figure 1 As shown, in this embodiment, the test stimulus module includes a latency and bandwidth collector. This collector monitors the operational latency and bandwidth information of each IP module in the chip system during EDA simulation. After obtaining the latency and bandwidth values of each IP module based on the monitored information, it adds these values to a preset module data transmission characteristic table. In other words, the latency and bandwidth data of each module are obtained through the latency and bandwidth collector and then stored.
[0035] During subsequent performance verification of the aforementioned SOC chip, the data path latency and bandwidth of the IP module acting as the master can be calculated based on the latency and bandwidth values of each IP module recorded in the aforementioned module data transmission characteristic table. Specifically, the master's data path latency is the sum of the latency values of relevant modules along the current data path, and the master's data path bandwidth is the bandwidth value of the module with the lowest bandwidth among the relevant modules along the current data path.
[0036] In this embodiment, the master device is the device that initiates the transaction, and a slave device is set up corresponding to the master device. The slave device is the device that receives the transaction, and the pipeline of data from the master device to the slave device forms a data path. Specifically, one or more intermediate modules can be set between the master device and the slave device, forming the aforementioned data path between them.
[0037] In this embodiment, the data structure of the module data transmission characteristic table can be pre-set by the user or the system. Preferably, the module data transmission characteristic table includes at least a module ID field, a latency field, and a bandwidth field.
[0038] The module ID field is used to record the unique module name and / or module number information of the IP module; The delay field is used to record the delay value of the corresponding IP module in EDA simulation; The bandwidth field is used to record the bandwidth value of the corresponding IP module in EDA simulation.
[0039] In this embodiment, the master device is an IP module capable of controlling the bus, and the bus type is AXI (Advanced eXtensible Interface). The AXI bus is an on-chip bus protocol used in high-performance embedded systems. It is widely used in ARM architecture processors and other system chips. In an AXI-based chip system, there are two types of devices: the master device and the slave device. The master device initiates transactions, while the slave device receives them; they communicate via the AXI bus.
[0040] In this embodiment, the master device can send read / write requests to the slave device to access the slave device's registers or memory, and receive responses from the slave device.
[0041] The slave device can be a peripheral device, a memory unit, or other device that needs to be accessed by the master device. After receiving a read / write request from the master device, the slave device performs the corresponding operation and returns a response to the master device to complete the data transmission or operation.
[0042] In this embodiment, during performance verification, the master device sends operation instructions to the slave device in the system. The slave device is a DDR module or has a DDR chip memory module. It reads and writes data to the DDR module according to the aforementioned operation instructions. In other words, the slave device operates according to the operation instructions from the master device, thereby simulating the actual working scenario of the SOC chip.
[0043] See, as an example rather than a limitation. Figure 2 As shown, for example, the master device is a USB module, and the slave device is a DDR module. The DDR module contains a DDR model. MTX1, MTX2, MTX3, and MTX4 represent the intermediate IP modules that data passes through when traveling from the USB module to the DDR model. This process forms the data transfer path from the USB module to the DDR module. Figure 2 The data path of the pipeline structure shown is: USB module > MTX1 > MTX2 > MTX3 > MTX4 > DDR model.
[0044] Let the latency values of modules MTX1, MTX2, MTX3, and MTX4 monitored by the latency and bandwidth collector during the aforementioned EDA simulation be latency1, latancy2, latancy3, and latancy4, respectively. Then, during performance verification, the latency_c of the USB module's data path is simply the sum of the latency values of modules MTX1, MTX2, MTX3, and MTX4 along that path.
[0045] The data path bandwidth (bandwidth_c) of the USB module is calculated by comparing the bandwidths of modules MTX1, MTX2, MTX3, and MTX4 along the aforementioned path and selecting the module with the lowest bandwidth as the bandwidth of the data path. This is because the bandwidth of the data path is determined by the bandwidth of the IP module with the lowest bandwidth along the path.
[0046] The above-mentioned solution provided by the present invention sets up a latency and bandwidth collector in the test stimulus module. When performing EDA simulation, the latency and bandwidth collector collects the latency and bandwidth data of various IP modules in all EDA simulations. That is to say, the latency and bandwidth values of each IP module are based on the values obtained from historical EDA simulations. There is no need to write specific latency test cases and bandwidth test cases, and therefore there is no need to run EDA simulation based on the aforementioned specific test cases.
[0047] In another embodiment of this invention, considering data transmission across clock domains, the pipeline structure of the data path can be optimized when there are clock domain changes in the data path. Specifically, it is determined whether there are clock domain changes in the aforementioned data path. If it is determined that there are clock domain changes in the data path, a register slice module is introduced into the aforementioned data path to improve the bus operating frequency.
[0048] The register slice module is used to cut off the data transmission pipeline by using a register to pause the transmission signal at the cutoff point (causing the signal to lag by one clock cycle). In other words, register slices are inserted between module nodes in the data path. See also... Figure 3 As shown, and not as a limitation, for example, if there is a clock domain change between the MTX1 and MTX2 modules, a Slice module can be configured between the MTX1 and MTX2 modules to improve the bus operating frequency.
[0049] At this point, when calculating the latency and bandwidth values of the aforementioned data path, the time delay and bandwidth changes introduced by the aforementioned Slice module must be considered. Specifically, the latency and bandwidth values of the register slice module can be obtained. When calculating the latency of the data path, the latency values of the Slice module are accumulated together, and when calculating the bandwidth of the data path, the bandwidth values of the Slice module are compared together.
[0050] In this embodiment, the latency and bandwidth values of the Slice module can also be obtained through EDA simulation. Alternatively, the latency and bandwidth values of the Slice module can be provided by the supplier / designer of the IP module. Regardless of the method used, the latency and bandwidth values of the Slice module can be stored in the aforementioned module data transmission characteristic table before performance verification.
[0051] See Figure 4As shown in the figure, for example, the latency values of MTX1, MTX2, MTX3, MTX4 and Slice modules obtained from historical EDA simulations are 20ns, 30ns, 40ns, 50ns and 60ns respectively, and the bandwidth values of each IP module are 10Mbyte / s, 20Mbyte / s, 30Mbyte / s, 40Mbyte / s and 50Mbyte / s respectively. When calculating the bandwidth, the system can directly read the latency values and bandwidth values in the aforementioned table to obtain the latency and bandwidth information of the corresponding data path.
[0052] Specifically, the path latency value latency_c = 20ns + 30ns + 40ns + 50ns + 60ns = 200ns, and the path bandwidth value bandwidth_c = 10Mbyte / s, which is the bandwidth value of the MTX1 module.
[0053] In another embodiment of this example, for read and write operation commands, the latency and bandwidth collector can calculate the read operation latency value and write operation latency value for each IP module respectively. Correspondingly, the latency values recorded in the module data transmission characteristic table include read operation latency values and write operation latency values.
[0054] During performance testing, it is determined whether the operation command sent by the master device is a read operation or a write operation. If it is determined to be a read operation, the data path latency value of the master device is the sum of the read operation latency values of the relevant modules on the data path. If it is determined to be a write operation, the data path latency value of the master device is the sum of the write operation latency values of the relevant modules on the data path.
[0055] In another embodiment of this example, the module data transmission characteristic table can be dynamically updated according to the dynamic changes in EDA simulation.
[0056] Specifically, for each Design Under Test (DUT), when the DUT is updated, an EDA simulation is initiated on the updated DUT, resulting in a new original simulation (EDA simulation). The module list, mentioned above, is then updated based on the new EDA simulation process. (See [link to relevant documentation]). Figure 5 As shown, this ensures that the delay and bandwidth values of the modules recorded in the aforementioned module data transmission characteristic table match the updated SOC chip design.
[0057] Thus, each real EDA simulation (i.e. Figure 5Each original simulation corresponds to an update of the module data transmission characteristic table (module list), ensuring that the data in the module data transmission characteristic table (module list) is real-time and accurate.
[0058] Another embodiment of the present invention also provides a SOC chip performance verification system.
[0059] The system includes an EDA simulation subsystem and a SOC chip performance verification subsystem.
[0060] The EDA simulation subsystem is used to perform EDA simulation on the design under test (DUT). The DUT corresponds to a SOC chip that integrates multiple IP modules, and each IP module is connected through an on-chip bus.
[0061] In this embodiment, the EDA simulation subsystem is configured to: acquire EDA simulation test case information for the design under test (DUT), and set a corresponding simulation stimulus test file for each test case; based on the simulation stimulus test file of the test case, the test stimulus module applies test stimuli to the DUT to perform EDA simulation; the test stimulus module includes a delay and bandwidth collector, which is used to monitor the operation delay information and bandwidth information of each IP module in the chip system during the EDA simulation process, and after obtaining the delay value and bandwidth value of each IP module according to the monitored information, add the delay value and bandwidth value of each IP module to a preset module data transmission characteristic table.
[0062] The SOC chip performance verification subsystem is used to perform system performance verification on the aforementioned SOC chip.
[0063] In this embodiment, the SOC chip performance verification subsystem is configured to: obtain a path performance calculation instruction triggered by the user for the data path of the current master device; obtain module information on the path of the aforementioned data path according to the aforementioned path performance calculation instruction; read the delay value and bandwidth value of the corresponding module from the module data transmission characteristic table of the aforementioned EDA simulation subsystem according to the module information; and calculate the data path delay and data path bandwidth of the aforementioned data path based on the aforementioned delay value and bandwidth value.
[0064] The data path latency value of the master device is the sum of the latency values of the relevant modules on the data path, and the data path bandwidth value of the master device is the bandwidth value of the module with the smallest bandwidth among the relevant modules on the data path.
[0065] Other technical features are described in the preceding embodiments and will not be repeated here.
[0066] Another embodiment of the present invention also provides an electronic device, comprising: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to perform the method described in any of the preceding descriptions.
[0067] Other technical features are described in the preceding embodiments and will not be repeated here.
[0068] The present invention also provides a computer storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method according to any one of the preceding claims.
[0069] The storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0070] Other technical features are described in the preceding embodiments and will not be repeated here.
[0071] In the above description, the disclosure of this invention is not intended to limit itself to these aspects. Rather, within the scope of the objectives of this disclosure, components can be selectively and operationally combined in any number. Furthermore, terms such as “comprising,” “encompassing,” and “having” should be interpreted by default as inclusive or open-ended, rather than exclusive or closed, unless explicitly defined as such. All technical, scientific, or other terms are to be understood by those skilled in the art, unless defined as such. Public terms found in dictionaries should not be interpreted in the context of the relevant technical documents in an overly idealistic or impractical manner, unless explicitly defined as such in this disclosure. Any modifications or alterations made by those skilled in the art based on the foregoing disclosure are within the scope of the claims.
Claims
1. A method for verifying the performance of a SOC chip, characterized in that... Including the following steps: Obtain EDA simulation test case information for the design under test (DUT), and set a corresponding simulation stimulus test file for each test case; the DUT corresponds to a SOC chip that integrates multiple IP modules, and each IP module is connected through an on-chip bus. Based on the simulation stimulus test file of the test case, the test stimulus module applies test stimuli to the design under test (DUT) to perform EDA simulation; wherein, the test stimulus module includes a delay and bandwidth collector, which is used to monitor the operation delay information and bandwidth information of each IP module in the SOC chip during the EDA simulation, and after obtaining the delay value and bandwidth value of each IP module according to the monitored information, adds the delay value and bandwidth value of each IP module to a preset module data transmission characteristic table; When performing performance verification of the aforementioned SOC chip, the data path delay and data path bandwidth of the IP module, which serves as the master device, are calculated based on the delay and bandwidth values of each IP module recorded in the aforementioned module data transmission characteristic table. The data path delay value of the master device is the sum of the delay values of the relevant modules on the current data path, and the data path bandwidth value of the master device is the bandwidth value of the module with the smallest bandwidth among the relevant modules on the current data path.
2. The method according to claim 1, characterized in that: The module data transmission characteristic table includes at least a module ID field, a delay field, and a bandwidth field; The module ID field is used to record the unique module name and / or module number information of the IP module; The delay field is used to record the delay value of the corresponding IP module in EDA simulation; The bandwidth field is used to record the bandwidth value of the corresponding IP module in EDA simulation.
3. The method according to claim 1, characterized in that: The master device is an IP module capable of controlling the bus, and the bus type is AXI. During performance verification, the master device sends operation instructions to the slave device in the system. The slave device is a DDR module or has a DDR module. The master device reads and writes data to the DDR module according to the aforementioned operation instructions. The aforementioned data path is formed between the master device and the slave device.
4. The method according to claim 3, characterized in that: Determine whether there is a change in the clock domain in the aforementioned data path. If it is determined that there is a change in the clock domain in the data path, introduce a register slice module into the aforementioned data path to improve the bus operating frequency. Furthermore, when calculating the latency and bandwidth values of the aforementioned data path, the time delay and bandwidth changes resulting from the introduction of the aforementioned Slice module are also considered.
5. The method according to claim 4, characterized in that: The delay and bandwidth values of the Slice module are obtained. When calculating the delay of the data path, the delay values of the Slice module are accumulated together. When calculating the bandwidth of the data path, the bandwidth values of the Slice module are compared together.
6. The method according to claim 3, characterized in that: For read and write operation commands, the latency and bandwidth collector calculates the read operation latency value and write operation latency value for each IP module respectively; correspondingly, the latency values recorded in the module data transmission characteristic table include the read operation latency value and the write operation latency value. When performing performance verification, determine whether the operation command sent by the master device is a read operation type or a write operation type; When the operation is determined to be a read operation, the data path latency value of the master device is the sum of the read operation latency values of the relevant modules on the data path; when the operation is determined to be a write operation, the data path latency value of the master device is the sum of the write operation latency values of the relevant modules on the data path.
7. The method according to claim 1, characterized in that: For each Design Under Test (DUT), when the DUT is updated, EDA simulation is initiated on the updated DUT, and the aforementioned module data transmission characteristic table is updated according to the new EDA simulation process, so that the delay and bandwidth values of the modules recorded in the aforementioned module data transmission characteristic table match the updated SOC chip design.
8. A SOC chip performance verification system, characterized in that... include: An EDA simulation subsystem is used to perform EDA simulation on a Design Under Test (DUT). The DUT corresponds to a System-on-a-Chip (SoC) chip integrating multiple IP modules, which are connected via an on-chip bus. The EDA simulation subsystem is configured to: acquire EDA simulation test case information for the DUT, with a corresponding simulation stimulus test file for each test case; and, based on the simulation stimulus test file of the test case, apply test stimuli to the DUT for EDA simulation. The test stimulus module includes a latency and bandwidth collector, which monitors the operational latency and bandwidth information of each IP module in the SoC chip during the EDA simulation process. After obtaining the latency and bandwidth values of each IP module based on the monitored information, the collector adds the latency and bandwidth values of each IP module to a preset module data transmission characteristic table. A SOC chip performance verification subsystem is used to perform system performance verification on the aforementioned SOC chip. The SOC chip performance verification subsystem is configured to: acquire a path performance calculation instruction triggered by a user for the current master device's data path; acquire module information on the path of the aforementioned data path based on the aforementioned path performance calculation instruction; read the delay value and bandwidth value of the corresponding module from the module data transmission characteristic table of the aforementioned EDA simulation subsystem based on the module information; and calculate the data path delay and data path bandwidth of the aforementioned data path based on the aforementioned delay value and bandwidth value, wherein the data path delay value of the master device is the sum of the delay values of the relevant modules on the path of the data path, and the data path bandwidth value of the master device is the bandwidth value of the module with the smallest bandwidth among the relevant modules on the path of the data path.
9. An electronic device, comprising: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A computer storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-7.
Citation Information
Patent Citations
Method and device for acquiring delay value of data path
CN115048251A
Multimedia IP bandwidth performance verification method and device
CN110704998A
Manufacturing method and apparatus to avoid prototype-hold in ASIC / SOC manufacturing
WO2003085706A1
