Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Random instruction sequence generation method based on data correlation constraints

A data correlation and instruction sequence technology, applied in the computer field, can solve the problem of not reaching the full load pressure test of the pipeline

Inactive Publication Date: 2021-03-02
JIANGNAN INST OF COMPUTING TECH
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But this is usually not enough, because there are multiple issues, data dependency checks and other links in the instruction execution process. When the instructions programmed at the assembly instruction level are executed on the pipeline, it may cause the pipeline to idle most of the time. The purpose of the continuous full load stress test on the pipeline

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
  • Random instruction sequence generation method based on data correlation constraints
  • Random instruction sequence generation method based on data correlation constraints

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0025] Embodiment: A method for generating random instruction sequences based on data dependency constraints, comprising the following steps:

[0026] S1. Extract information from the instruction set of the processor, and obtain the number of instruction operands, each operand type, instruction execution delay, and executable pipeline number of each instruction in the instruction set one by one, wherein the operands are respectively marked as scalars registers, vector registers, immediates, offsets, and number all instructions in the instruction set;

[0027] S2, setting the total number of generated instruction sequences, if the generated instruction number reaches the total number, then terminate, otherwise randomly select an instruction from the instruction set;

[0028] S3, if the instruction selected in S2 has no operands, jump to S2, otherwise continue;

[0029] S4. Calculate the maximum number of instructions in the instruction context that may have a relationship with...

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 discloses a data correlation constraint-based random instruction sequence generation method. The method comprises the following steps of S1, performing information extraction on an instruction set; s2, if the number of the generated instructions meets the requirement, terminating, otherwise, continuing to randomly select one instruction; s3, if the instruction has no operand, skipping to S2, otherwise, continuing; s4, calculating the maximum number of instructions possibly related to the current instruction generation in the instruction context; s5, analyzing the current instruction; s6, constructing a constraint relationship between the context instructions; s7, combining the formed CNF normal forms, and solving the combined CNF normal forms by using a solver; s8, if a solving result does not exist, skipping to S2; s9, if the solving result is satisfied, analyzing the solving result; s10, storing the currently generated instruction in a cache queue; and S11, skipping toS2 to continue. According to the method, the random instruction generation model meeting the constraint condition is constructed, the random instruction sequence is automatically generated, and the purposes of high-power-consumption testing and instruction execution component correctness testing under the limit condition are achieved.

Description

technical field [0001] The invention relates to a random instruction sequence generation method based on data correlation constraints, which belongs to the technical field of computers. Background technique [0002] Randomly generated instruction sequences play an important role in the development of processors by comprehensively considering the random combination of instructions, random allocation of register resources, and avoiding data dependencies during instruction execution. Random tests that traverse registers can test the availability of processor registers; mixed instruction sequences within functional units and between functional units can verify the processor at the system level; instruction sequences without data dependencies between instructions can make The no-load rate of the pipeline is greatly reduced, especially the full pipeline instruction sequence that satisfies the conditions can continue to exert pressure on the processor instruction emission and execu...

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
IPC IPC(8): G06F9/38
CPCG06F9/3869
Inventor 谭坚王丽一胡夏晖陈磊蒋丽萍曹陈炜
Owner JIANGNAN INST OF COMPUTING TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products