System and method for quickly and efficiently generating cache consistency test C program

A consistent and efficient technology, applied in the field of computer programs, can solve problems such as few test cases, complex cache consistency scenarios, and difficult coverage, and achieve the effect of efficient and convenient construction

Active Publication Date: 2020-10-16
上海赛昉科技有限公司
View PDF16 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the deficiencies of the prior art, the present invention discloses a system and method for quickly and efficiently generating a cache consistency test C program, which is used to solve the problem of low output efficiency of handwritten C cases, few test cases, and mostly directional cases; Cache Consistency scenarios are complex and difficult to cover. Handwritten case scenarios often have the problem of singleness.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System and method for quickly and efficiently generating cache consistency test C program
  • System and method for quickly and efficiently generating cache consistency test C program
  • System and method for quickly and efficiently generating cache consistency test C program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0039] This embodiment discloses as figure 1 The system for quickly and efficiently generating a cache conformance test C program includes a UVM test platform, in which an action component, a cfg component, a scenario component, and a scheduler component module are set in the UVM test platform. After the script parses the yaml file, it notifies the office In the UVM test platform, the UVM generates a scene file after obtaining the basic parameter configuration, and outputs and generates a target file after a script scheduling simulation.

[0040] The cfg component is used to initialize configuration parameters. The scenario component is a collection module of random scenes or directional scenes.

[0041] The scheduler component is used for unified scheduling scenarios, and output and generate target files. The Action component is a random element that contains information such as data, address, thread id, dependency, and attributes.

[0042] The action component can extend read and...

Embodiment 2

[0046] This embodiment discloses as figure 2 A method for quickly and efficiently generating a cache consistency test C program is shown. The method uses the first aspect of the system for quickly and efficiently generating a cache consistency test C program when executed, and is characterized in that the method includes the following steps:

[0047] The S1 system is powered on and the script gets the yaml file;

[0048] The S2 script parses the yaml file and informs the UVM test platform;

[0049] The UVM test platform of S3 generates n scenes from the action pool and merges them into a program sequence, and outputs a Cfile / coverage / trace file;

[0050] The S4 script dispatches the VCS simulation tool, and outputs the target file.

[0051] In S3, under the SV constraint mechanism, random or user-interested cache consistency scenarios can be easily constructed from the action pool.

[0052] In S3, while generating the structure scene, the scene coverage file and trace file are generated...

Embodiment 3

[0055] This embodiment discloses an SV / UVM architecture based on the cct.py python script to control the flow of the entire device.

[0056] 1. First, the script will eat a yaml file with basic case configuration, including case name, scene selection, simulation parameter configuration, etc.

[0057] 2. After the script parses the yaml file, it notifies the UVM test platform. In this way, UVM gets the basic parameter configuration.

[0058] 3. In the UVM environment, there are component modules such as action / cfg / scenario / scheduler.

[0059] The component cfg is the initialization of various configuration parameters;

[0060] The component scenario is a collection module of random scenes or directional scenes;

[0061] The component scheduler is used to unify the scheduling scenario and output the target file.

[0062] Core point 1: Action component is the core part of this device, which contains various random elements, such as data, address, thread id, dependency relationship, attribut...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of computer programs, and particularly to a system and a method for generating a cache consistency test C program quickly and efficiently. The system includes a UVM test platform, the UVM test platform is internally provided with an action part, a cfg part, a scoreio part and a scheduler part module, and the action part is connected with the cfg part, the scoreio part and the scheduler part module. The method comprises the steps of informing the UVM test platform after the yaml file is analyzed by the script, generating a scene file after the UVM acquires basic parameter configuration, and outputting and generating a target file after script scheduling simulation; according to the method, based on an SV/UVM base, a light-weight generator is constructed, and a large number of cache coherence test C cases can be rapidly and efficiently generated; when a construction scene is generated, a scene coverage file is generated, so that the scene generated by the device is ensured to have coverage and richness; and when the construction scene is generated, the trace yaml file is generated, so that convenience is brought to later debug, and convenience is provided for later debug.

Description

Technical field [0001] The invention relates to the technical field of computer programs, in particular to a system and method for quickly and efficiently generating a cache consistency test C program. Background technique [0002] Most SMP processor systems use the MESI protocol to handle Cache-compatibility between multiple processors. This protocol is also called Illinois protocol, MESI protocol has been widely used in SMP processor system. The MESI protocol uses four status bits to describe each Cache line. [0003] But now the output efficiency of handwritten C cases is low, there are few test cases, and most of them are directional cases; [0004] And the Cache consistency scene is complex and difficult to cover, so the scene of handwritten case is often single. Summary of the invention [0005] In view of the shortcomings of the prior art, the present invention discloses a system and method for quickly and efficiently generating a cache consistency test C program, which is u...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F9/455G06F11/36
CPCG06F8/454G06F9/45512G06F11/3684Y02D10/00
Inventor 张炜郑丰翔余红斌
Owner 上海赛昉科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products