CN-121050960-B - Cache performance verification method, electronic device and storage medium
Abstract
The invention relates to the technical field of chip verification and provides a cache performance verification method, electronic equipment and a storage medium, wherein the method comprises the steps of determining a cached test case, wherein the test case comprises a threshold value corresponding to performance data of a data channel of the cache, the data channel corresponds to access operation of the test case, and the type of the performance data corresponds to the state type of the access operation of the test case; controlling the cache to run under the test case, and simultaneously measuring the performance data of the data channel of the cache to obtain actual measurement performance data; based on the measured performance data and the threshold, performance verification is performed on the cache. The method, the electronic equipment and the storage medium provided by the invention realize automatic performance verification for the cache, can finish the performance verification without human participation, effectively improve the performance verification efficiency, ensure the accuracy and the reliability of the performance verification and reduce the maintenance cost of the performance verification.
Inventors
- Request for anonymity
- Request for anonymity
- Request for anonymity
Assignees
- 上海壁仞科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251029
Claims (9)
- 1. A method of cache performance verification, comprising: Determining a cached test case, wherein the test case comprises a threshold value corresponding to performance data of a data channel of the cache, the data channel corresponds to access operation of the test case, and the type of the performance data corresponds to the state type of the access operation of the test case; controlling the cache to run under the test case, and simultaneously measuring performance data of a data channel of the cache to obtain actual measurement performance data; performing a performance verification on the cache based on the measured performance data and the threshold; The access operation of the test case comprises a read request operation, a data channel corresponding to the read request operation is a read response channel, and the state type of the access operation comprises at least one of a read hit state, a read miss and no write back state and a read miss and write back state under the condition that the access operation is the read request operation.
- 2. The cache performance verification method of claim 1, wherein the access operation of the test case further comprises a write request operation; the data channel corresponding to the write request operation is a write data channel.
- 3. The cache performance verification method of claim 1, wherein said measuring performance data of said cached data channel comprises: Measuring at least one of a read bandwidth and a read hit rate of the cache if the state type is a read hit state; measuring at least one of a read bandwidth, a read hit rate, and a read miss data bandwidth of the cache if the state type is a read miss and no write back state; And in the case that the state type is a read miss and write back state, measuring at least one of a read bandwidth, a read hit rate, a read miss data bandwidth and a write back data bandwidth of the cache.
- 4. The cache performance verification method according to claim 2, wherein in a case where the access operation is a write request operation, the state type of the access operation includes at least one of a write hit and full write state, a write hit and partial write state, a write miss and full write no write back state, a write miss and partial write no write back state, a write miss and full write back state, a write miss and partial write back state.
- 5. The cache performance verification method of claim 4, wherein said measuring performance data of said cached data channel comprises: measuring at least one of a write bandwidth and a write hit rate of the cache if the state type is a write hit and a full write state; Measuring at least one of a write bandwidth, a write hit rate, and a read miss data bandwidth of the cache if the state type is a write hit and a partial write state; measuring at least one of a write bandwidth and a write hit rate of the cache in case the state type is a write miss and full write no write back state; Measuring at least one of write bandwidth, write hit rate and read miss data bandwidth of the cache under the condition that the state type is write miss and partial write is not in a write-back state; measuring at least one of write bandwidth, write hit rate and write back data bandwidth of the cache under the condition that the state type is write miss and full write back state; And in the case that the state type is a write miss and a partial write-back state, measuring at least one of a write bandwidth, a write hit rate, a read miss data bandwidth and a write-back data bandwidth of the cache.
- 6. The cache performance verification method according to any one of claims 1to 5, wherein the performance data includes at least one of a bandwidth and a hit rate.
- 7. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the cache performance verification method of any one of claims 1 to 6 when the computer program is executed by the processor.
- 8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the cache performance verification method of any one of claims 1 to 6.
- 9. A computer program product comprising a computer program which, when executed by a processor, implements the cache performance verification method of any one of claims 1 to 6.
Description
Cache performance verification method, electronic device and storage medium Technical Field The present invention relates to the field of chip verification technologies, and in particular, to a cache performance verification method, an electronic device, and a storage medium. Background Performance verification for a Cache (Cache) is an important link in the chip design process. The mainstream verification method is to check whether the relevant signals on the read-write channel of the cache have invalid clock cycles or not by checking FSDB (FAST SIGNAL Database) files, so as to judge whether the performance of the cache design meets the expectations or not. However, for a huge number of performance test cases, a verifier needs to perform waveform inspection one by one, resulting in low efficiency of cache performance verification. Moreover, the manual verification mode is extremely easy to miss, and cannot realize accurate comparison, so that the comprehensiveness and accuracy of the cache performance verification are difficult to guarantee, and the verification cost is high. Disclosure of Invention The invention provides a cache performance verification method, electronic equipment and a storage medium, which are used for solving the defects of poor accuracy and low efficiency of manually performing performance verification on a cache in the related technology. The invention provides a cache performance verification method, which comprises the following steps: Determining a cached test case, wherein the test case comprises a threshold value corresponding to performance data of a data channel of the cache, the data channel corresponds to access operation of the test case, and the type of the performance data corresponds to the state type of the access operation of the test case; controlling the cache to run under the test case, and simultaneously measuring performance data of a data channel of the cache to obtain actual measurement performance data; and performing performance verification on the cache based on the measured performance data and the threshold value. According to the cache performance verification method provided by the invention, the access operation of the test case comprises at least one of a read request operation and a write request operation; the data channel corresponding to the read request operation is a read response channel, and the data channel corresponding to the write request operation is a write data channel. According to the cache performance verification method provided by the invention, under the condition that the access operation is a read request operation, the state type of the access operation comprises at least one of a read hit state, a read miss and no write back state and a read miss and write back state. According to the method for verifying the performance of the cache, the measuring the performance data of the data channel of the cache comprises the following steps: Measuring at least one of a read bandwidth and a read hit rate of the cache if the state type is a read hit state; measuring at least one of a read bandwidth, a read hit rate, and a read miss data bandwidth of the cache if the state type is a read miss and no write back state; And in the case that the state type is a read miss and write back state, measuring at least one of a read bandwidth, a read hit rate, a read miss data bandwidth and a write back data bandwidth of the cache. According to the cache performance verification method provided by the invention, under the condition that the access operation is a write request operation, the state type of the access operation comprises at least one of a write hit and full write state, a write hit and partial write state, a write miss and full write no write back state, a write miss and partial write no write back state, a write miss and full write back state, and a write miss and partial write back state. According to the method for verifying the performance of the cache, the measuring the performance data of the data channel of the cache comprises the following steps: measuring at least one of a write bandwidth and a write hit rate of the cache if the state type is a write hit and a full write state; Measuring at least one of a write bandwidth, a write hit rate, and a read miss data bandwidth of the cache if the state type is a write hit and a partial write state; measuring at least one of a write bandwidth and a write hit rate of the cache in case the state type is a write miss and full write no write back state; Measuring at least one of write bandwidth, write hit rate and read miss data bandwidth of the cache under the condition that the state type is write miss and partial write is not in a write-back state; measuring at least one of write bandwidth, write hit rate and write back data bandwidth of the cache under the condition that the state type is write miss and full write back state; And in the case that the state type is a write miss and a part