Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

721 results about "Branch" patented technology

A branch is an instruction in a computer program that can cause a computer to begin executing a different instruction sequence and thus deviate from its default behavior of executing instructions in order. Branch (or branching, branched) may also refer to the act of switching execution to a different instruction sequence as a result of executing a branch instruction. Branch instructions are used to implement control flow in program loops and conditionals (i.e., executing a particular sequence of instructions only if certain conditions are satisfied).

Microprocessor with branch target buffer whose entries include fetch block hotness counters used for selective filtering of macro-op cache allocations

A microprocessor includes execution units that execute macro-operations (MOPs), a decode unit that decodes architectural instructions into MOPs, an instruction fetch unit (IFU) having an instruction cache that caches architectural instructions and a macro-operation cache (MOC) that caches MOPs into which the architectural instructions are decoded. A prediction unit (PRU) predicts a series of fetch blocks (FBs) in a program instruction stream to be fetched by the IFU from the MOC if hit or from the instruction cache otherwise. A branch target buffer (BTB) caches information about previously fetched and decoded FBs. A counter of each BTB entry is incremented when the entry predicts the associated FB is present again. For each FB in the series, the PRU indicates whether the counter has exceeded a threshold for use deciding whether to allocate the MOPs into the MOC in response to an instance of decoding the instructions into the MOPs.
Owner:VENTANA MICRO SYSTEMS INC

Instruction processing method, processor and electronic device

At least one embodiment of the invention provides an instruction processing method, a processor and an electronic device. The instruction processing method comprises the steps that an object instruction is extracted according to an instruction prefetching request, and the extracted object instruction is cached in an instruction cache queue; in response to instruction release information from a pipeline of the processor core, the object instruction is filled from the instruction cache queue into an instruction cache unit, and the instruction cache unit is configured to be directly accessed by the processor core. According to the instruction processing method, pollution of the instruction pre-fetched based on branch prediction to the instruction cache unit can be reduced, and the performance of the processor is improved.
Owner:HYGON INFORMATION TECH CO LTD

Prefetch instruction management method, system and equipment

The invention belongs to the technical field of computers, particularly relates to a prefetch instruction management method, system and equipment, and aims to solve the problem of low instruction fetch efficiency of an instruction prefetch technology. The method comprises the following steps: receiving branch prediction information from a branch prediction unit, and performing label comparison on table entries in an instruction fetching target queue and the branch prediction information; under the condition that the table item is hit, querying an instruction fetching address corresponding to the branch prediction information in the hit table item; under the condition that the table item is not hit, a new storage table item is allocated to the branch prediction information, and an instruction fetching address carried by the branch prediction information is determined through the storage table item; in response to a received prefetching request sent by the prefetching unit, determining a target table item based on the prefetching request, and returning an instruction fetching address queried in the target table item to the prefetching unit; and storing the stable cache line in the target table item to a flow buffer area. According to the method, multiple prediction requests can be processed in parallel, the front-end throughput is improved, and the instruction fetching efficiency is improved.
Owner:SHANDONG UNIV +1

Intelligent contract vulnerability detection method and system based on hybrid fuzzy test optimization

The invention relates to the technical field of network security and vulnerability detection, in particular to an intelligent contract vulnerability detection method and system based on hybrid fuzzy test optimization, and the method comprises the steps: carrying out the static analysis of compiled EVM byte codes, generating a first test case set, carrying out the fuzzy test, and introducing taint analysis to track the transmission of taints in an instruction stream; in the fuzzy testing process, according to the length change of the instruction counting set within the execution frequency threshold value, symbol execution processing is triggered when the length change value is 0, in the symbol execution processing process, a constraint cache reuse strategy is adopted to solve an obtained constraint expression, and a solving result is cached and reused, so that a fuzzy test result is obtained; a use case value reaching a complex branch can be quickly generated through symbolic execution and is fed back to the fuzzy engine to assist the fuzzy engine in exploring a new path to capture more deep vulnerabilities; and meanwhile, test predictions are designed for three intelligent contract vulnerabilities of authority control, transaction sequence dependence and denial of service, and vulnerability detection is more accurate.
Owner:YANTAI UNIV

Instruction execution method, device, system and equipment and storage medium

The invention relates to an instruction execution method, device and system, equipment and a storage medium. The instruction execution method comprises the steps of obtaining current instruction information and branch historical information of a current branch instruction; calculating a jump probability value of the branch instruction based on the current instruction information and the branch historical information through a pre-trained reasoning model deployed on a hardware accelerator; determining a branch prediction result according to the jump probability value and a set branch prediction decision; wherein the branch prediction result comprises a prediction execution result and target instruction information; and based on the prediction execution result, executing a target instruction determined according to the target instruction information. According to the method provided by the invention, the accuracy of branch prediction is improved, the performance loss of the processor caused by misprediction is reduced, and the accuracy of instruction execution is also ensured.
Owner:厦门国科安芯科技有限公司

Software-directed divergent branch target prioritization

A system that includes at least one multi-threaded processor forms a multitude of converged thread sub-groups from a main thread group, wherein each thread sub-group includes a common code block. A loop is configured to jump to a different target address of a branch instruction in an order determined by a priority configured for each different target address.
Owner:NVIDIA CORP

SIMT stack and thread scheduling optimization method and device for GPGPU branch instruction, medium and GPGPU architecture

The invention relates to the technical field of GPGPU (General Purpose Graphics Processing Unit), and relates to an SIMT stack and thread scheduling optimization method and device for GPGPU (General Purpose Graphics Processing Unit) branch instructions, a medium and a GPGPU architecture. The method comprises the steps that in a GPGPU, an SIMT stack is optimized, an SM unit is expanded to be a double-instruction assembly line, and a main thread beam scheduler and an auxiliary thread beam scheduler are arranged. And in a non-branch state, half threads of each tube of the scheduler are executed in parallel by the assembly line. When a branch instruction is encountered, instruction addresses, thread masks and branch reunion points of the two branch paths are pressed into the SIMT stack. Judging conflicts according to the thread masks; if conflicts exist, performing serial execution; and if no conflict exists, executing on double pipelines in parallel. And when the branch is completed to a reunion point, the SIMT stack pops up an entry, and the execution is continued. The method has remarkable effects in the aspects of improving the thread resource utilization rate, improving the calculation efficiency, simplifying the branch control complexity, enhancing the GPGPU flexibility and the like.
Owner:SHANDONG INSPUR SCI RES INST CO LTD

Branch prediction using hypervectors

Apparatuses and methods for branch prediction are provided. Branch prediction circuitry generates prediction with respect to branch instructions of whether those branches will be taken or not-taken. Hypervector generation circuitry assigns an arbitrary hypervector in deterministic dependence on an address of each branch instruction, wherein the hypervectors comprises at least 500 bits. Upon the resolution of a branch a corresponding hypervector is added to a stored taken hypervector or a stored not-taken hypervector in dependence on the resolution of the branch. The branch prediction circuitry generates a prediction for a branch instructions in dependence on a mathematical distance metric of a hypervector generated for that branch instruction from the stored taken hypervector or the not-taken hypervector.
Owner:ARM LTD

Computing system including multi-core processor and operating method thereof

A multi-core processor according to some example embodiments may be a multi-core processor including a plurality of cores, and may include a first core that receives a task migration instruction, and transmits metadata including branch prediction data obtained during execution of a migration subject task determined as a subject of the task migration instruction among a plurality of tasks, to an external memory, and a second core that receives a task execution instruction, and reads the metadata from the external memory on the basis of the task execution instruction, and executes the migration subject task using the metadata.
Owner:SAMSUNG ELECTRONICS CO LTD

Verification method and device for processor front-end branch prediction and instruction fetching and storage medium

The embodiment of the invention discloses a processor front-end branch prediction and instruction fetching verification method and device and a storage medium, relates to the technical field of processor function verification, and can reduce the complexity of instruction scene construction and improve the verification efficiency. The method comprises the following steps: acquiring instruction fetching information and a test vector; the fetch information comprises a fetch address range and branch prediction information of the target instruction block, and jump instruction marking information is configured in the test vector; according to the fetch address range and the jump instruction mark information, generating an instruction boundary of each cache line in the fetch address range; respectively associating the branch prediction information and the jump instruction mark information to the instruction boundary of each cache line, and constructing to obtain an instruction stream; the instruction stream is used for simulating execution logic of processor front-end branch prediction and instruction fetching; and decoding simulation verification is carried out based on the instruction stream, and processor front-end branch prediction and instruction fetching accuracy is determined. The method is suitable for a verification scene of processor front-end branch prediction and instruction fetching.
Owner:CHENGDU HAIGUANG MICROELECTRONICS TECH CO LTD

Early resteering of mispredicted branches

Techniques for early resteering of a branch misprediction are described. Examples detailed herein use a virtual run-ahead mechanism in the core. On a branch misprediction for an hard-to-predict (H2P) branch, a subset of the backslice of the H2P branch are replayed from the out-of-order engine directly (while the main thread is flushing and restarting execution from the front-end).
Owner:INTEL CORP

Scalable and automated software code development pipeline

In some implementations, a code testing device may receive, from a first device associated with a developer, a first instruction to merge a first code branch. The code testing device may perform a first set of tests, associated with a first environment, in response to the first instruction. The code testing device may merge the first code branch based on the first set of tests resulting in a passing outcome for the first code branch. The code testing device may receive, from a second device associated with a reviewer, a second instruction to deploy the merged first code branch. The code testing device may perform a second set of tests, associated with a second environment, in response to the second instruction. The code testing device may deploy the merged first code branch based on the second set of tests resulting in a passing outcome for the merged first code branch.
Owner:CAPITAL ONE SERVICES LLC

Method for processing asynchronous pipeline control risk based on lock mechanism

The invention discloses a method for processing asynchronous pipeline control adventure based on a lock mechanism, which is characterized in that a processor adopts a three-stage pipeline processor, an external interrupt of the processor transmits interrupt information to a data processing center through a network-on-chip, and a processor core exchanges data with the network-on-chip through the data processing center; in the processor core, lock registers are arranged between instruction prefetching and decoding, between decoding and execution and between execution and memory access, the result of the first-stage lock register is realized based on a click asynchronous controller, and the input end of the first-stage lock register is AND with a pmt signal after XOR; and other levels of lock registers adopt branch structures, after the remaining instructions in the assembly line are executed, the site is saved, then all locks are opened, and at the moment, the instructions fetched in advance enter a decoding stage normally. The asynchronous clock-free circuit design is adopted, the problems of clock skew and the like are avoided, normal instructions in an assembly line are not affected, the value taking time is saved, and the potential of low power consumption and high performance is achieved.
Owner:LANZHOU UNIV

Program branch compiling optimization system oriented to SIMT architecture

The invention discloses an SIMT architecture-oriented program branch compilation optimization system, which relates to the technical field of program branch compilation optimization, and comprises a compiler rear end which takes code intermediate representation as input, executes hardware-related optimization and code generation work, converts the intermediate representation into binary codes and stores the binary codes in a video memory; the SIMT execution unit is responsible for reading the binary code from the video memory and executing a corresponding instruction; the SIMT stack is responsible for storing an address and an active mask of a non-jump branch when the Split instruction is executed, and is responsible for loading the stored non-executed branch and executing or setting the active mask to perform branch reconvergence after the Join instruction is executed; the branch performance analysis module is responsible for recording distribution of active threads of different branch paths; and the branch optimization module is responsible for analyzing and optimizing the code intermediate representation according to the recorded information, and replacing the input of the rear end of the compiler by using the optimized code intermediate representation. The code execution efficiency can be improved.
Owner:SHANDONG INSPUR SCI RES INST CO LTD

Branch prediction method, cyclic stack structure and related equipment

The invention provides a branch prediction method, a loop stack structure and related equipment, and the method comprises the steps: obtaining a branch instruction, determining whether the branch instruction belongs to a target instruction or not, and enabling the target instruction to be a backward jump condition branch instruction; if the branch instruction belongs to the target instruction, executing a first updating operation for a loop stack according to the branch instruction; if the branch instruction does not belong to the target instruction, the type of the branch instruction is determined, a second updating operation is executed on the loop stack according to the type of the branch instruction, and the type of the branch instruction comprises a calling function type, a loop jumping-out type and a returning type.
Owner:PHYTIUM TECH CO LTD

Mimicry thought-based code dynamic obfuscation compiling method, system and equipment

The invention discloses a mimicry thought-based code dynamic obfuscation compiling method, system and equipment. The method comprises the following steps of: sensing a source code, and performing compiler annotation on a key function in combination with a large language model and expert knowledge; a global character string constant is extracted, an ASCII value of a character is coded into an MBA expression, a decoding function is inserted into a position where the constant is used, mimicry replacement is performed on an original character string in a data segment, and functions of other programs are disguised; adding a clone block irrelevant to function logic, and constructing a mimicry branch by using a dynamic opaque predicate as a jump condition; adding an equivalent heterogeneous shadow branch, and using a random predicate as a jump condition; a flower instruction is inserted, and an MBA expression is used for instruction replacement; and performing control flow flattening on the function. According to the method, the mimicry multi-variant thought is combined, accurate diversified confusion compilation is performed, and key fragments of program codes in the fields of industrial control, power grids, Internet of Things and the like are effectively protected.
Owner:NARI INFORMATION & COMM TECH

Decoding method and device, electronic equipment and computer program product

The invention relates to a decoding method and device, electronic equipment and a computer program product, and belongs to the technical field of computers. The method comprises the following steps: inputting each decoding frame to be decoded into a decoder in sequence; for each input decoding frame, acquiring a decoding reference relationship of the decoding frame through a main thread, and judging whether the decoding frame meets a decoding condition or not according to the decoding reference relationship; and if the decoded frame satisfies the decoding condition, sending a decoding task corresponding to the decoded frame to a sub-thread so as to decode the decoded frame through the sub-thread. The decoding reference relation of the decoding frame is acquired and analyzed through the main thread, the decoding frame meeting the decoding condition is sent to the branch threads for decoding, the upper limit of the decoding parallelism degree can be improved, and the decoding speed is increased.
Owner:BEIJING DAJIA INTERNET INFORMATION TECH CO LTD

Compiling method and device, electronic equipment and readable storage medium

Embodiments of the invention provide a compiling method and apparatus, an electronic device and a readable storage medium. The method comprises the steps of converting a branch instruction in a target function into a control flow pseudo instruction related to an architecture of a compiler; performing a first instruction processing operation on any control flow pseudo instruction, and performing a second instruction processing operation on a vector instruction of which the operand type corresponding to the operand is a first preset type; and under the condition that the operand type corresponding to the operand of the control flow pseudo instruction or the vector instruction is a second preset type, determining a target physical predicate register and replacing the virtual predicate register corresponding to the control flow pseudo instruction or the vector instruction with the target physical predicate register. In this way, the number of the generated instructions is reduced, and the running efficiency of the program is improved to a certain extent. The target physical predicate registers are respectively distributed for different control flows, so that the overall execution efficiency of the program is improved, and the parallel execution capability and throughput of the program are improved.
Owner:LOONGSON TECH CORP

Design method, prediction system and equipment of advanced branch target address buffer

The invention discloses a design method of an advanced branch target address buffer area, which comprises the following steps of: S1, judging whether a first group of jumped branch instructions are unconditional direct branches or not, if so, entering S5; if not, entering S2; s2, judging whether the branch is a conditional direct branch, if so, entering S5; if not, entering S3; s3, when the first group of jump branch instructions are unconditional indirect branches, entering S4; s4, judging whether the actual jump address is the same as the address provided by the leading branch target address buffer area or not, and if not, resetting a saturation counter; if yes, the saturation counter counts, the first instruction block is expanded, and S5 is executed; and S5, linking the two instruction blocks. The invention further discloses a prediction system, and the flow predictor is introduced into the decoupling predictor. According to the method, the operation logic of the advanced branch target address buffer area is optimized, instruction parallel and instruction block extension connection are allowed, and the prediction efficiency is improved; the flow predictor is additionally arranged, the bubble waiting problem is solved, and the prediction speed is increased.
Owner:JIANGSU HUACHUANG MICROSYSTEM CO LTD

Analysis function imparting method, analysis function imparting device, and analysis function imparting program

A method includes: acquiring a hook point and a virtual program counter by analyzing a virtual machine of a script engine; acquiring a branch virtual machine instruction by analyzing an instruction set architecture; and providing an analysis function to the script engine based on the acquired virtual program counter and the acquired branch virtual machine instruction, wherein the analysis function is provided by applying a hook to the acquired hook point and wherein the hook includes processing of, in response to an occurrence of an exception, changing a pointing destination of a virtual stack pointer to a return destination of a function immediately before a part where the exception has occurred.
Owner:NT T INC

Instruction pipeline processing method of processor and processor

The invention provides an instruction pipeline processing method of a processor and the processor. A processor includes: a control module; the control module is set to execute the branch instruction speculatively according to the branch prediction direction when detecting that the first instruction subjected to initial decoding is the branch instruction, and execute the branch instruction if detecting that the second instruction subjected to initial decoding is the function call instruction or the function return instruction before the speculation execution result of the first instruction is generated. If yes, pausing all operations after the instruction processing assembly line performs initial decoding on the second instruction, and blocking the instruction fetching operation of the instruction processing assembly line on the next instruction until a speculation execution result of the first instruction is obtained; wherein the operation after the initial decoding comprises the step of carrying out a push-in or push-out operation of a return address stack (RAS) according to the second instruction. According to the technical scheme, the pollution risk caused by speculative execution of the branch instruction to the return address stack can be shielded, so that the hardware implementation logic of the return address stack is simplified, and the circuit area and power consumption are saved.
Owner:SUNMMIO SCIENCE & TECHNOLOGY (BEIJING) CO LTD

Instruction acquisition method and device, equipment and storage medium

The invention provides an instruction obtaining method and device, equipment and a storage medium. The method comprises the steps that a first instruction is obtained; the first instruction is an instruction which is in an instruction fetching stage of the processor and is not executed; under the condition that the first instruction is a branch instruction, determining that the next instruction is a second instruction for skipping execution; searching a jump address, a jump cache line and pre-decoding information of the second instruction in the first branch target buffer; under the condition that the jump address, the jump cache line and the pre-decoding information of the second instruction are cached in the first branch target buffer, outputting the jump cache line and the pre-decoding information of the second instruction; and obtaining the second instruction according to the jump cache line and the pre-decoding information of the second instruction. According to the invention, the idle period can be eliminated while the accuracy of the first branch target buffer is ensured.
Owner:SOPHGO TECH LTD

H2P branch prediction chip circuit architecture based on BrPerceptron

The invention belongs to the field of micro-architecture design of an integrated circuit processor. The invention provides an H2P branch prediction chip circuit architecture based on BrPerceptron, a variable operation track of a program is constructed based on a context-sensitive variable tracking mechanism, a program execution path topology is constructed based on a basic block division algorithm according to the variable operation track, multi-dimensional correlation detection is performed according to the program execution path topology to judge whether an H2P branch exists or not, and if yes, the H2P branch is predicted. And when the H2P branch instruction is judged to be the H2P branch instruction, enabling the BrPerceptron predictor to output, performing multi-stage feature fusion and outputting a prediction result, and realizing high-precision prediction for the H2P branch instruction.
Owner:SHANDONG LINGNENG ELECTRONIC TECH CO LTD

Self-adaptive frequency modulation method and device

The embodiment of the invention discloses a self-adaptive frequency modulation method and device which are used for improving the frequency modulation accuracy of a processor. The method comprises the steps that the computing device collects real-time monitoring data of the processor, the real-time monitoring data comprises one or more events monitored by a performance monitoring unit (PMU) of the processor, and the events comprise one or more of the following items: the number of instruction execution times, the cache hit rate and the branch prediction error rate. A predicted performance change rate of the processor is calculated based on the real-time monitoring data, the predicted performance change rate is determined based on a current performance change rate of the processor, the current performance change rate is determined based on the real-time monitoring data, and the predicted performance change rate is used for indicating the proportion of a reference performance value to an operation performance value of the processor. And determining a target frequency of the processor based on the target performance loss rate and the predicted performance change rate, wherein the target performance loss rate is used for indicating the predicted performance change rate tolerable by the processor.
Owner:HUAWEI TECH CO LTD

Systems and methods for branch misprediction aware cache prefetcher training

The disclosed device uses a control circuit configured to (i) receive branch misprediction information corresponding to a mispredicted branch window of instructions and (ii) send a misprediction status of a memory access from the mispredicted branch window of instructions, and a cache prefetcher of a cache configured to train using a set of memory accesses that are updated in response to receiving the misprediction status from the control circuit.
Owner:ADVANCED MICRO DEVICES INC

Instruction processing method and device, chip, equipment and storage medium

The embodiment of the invention discloses an instruction processing method and device, a chip, equipment and a storage medium. The method comprises the steps that a to-be-executed branch instruction and a target thread bundle used for executing the branch instruction are acquired; the target thread bundle comprises K threads, P effective threads exist in the K threads, and the branch instruction needs to be executed and processed in each effective thread; wherein K > = P > = 1, and K and P are integers; performing thread compression processing on the target thread bundle to obtain a sub-thread bundle; the sub-thread bundle comprises P effective threads of the target thread bundle; obtaining the number of available execution units in the target processor, and selecting corresponding effective threads for the execution units from the sub-thread bundles according to the number of the available execution units; and calling the execution unit to execute the branch instruction in the corresponding effective thread. The instruction processing efficiency of the target processor can be improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Biased Indirect Control Transfer Prediction

A processor may include an indirect control transfer prediction circuit. During fetch of an indirect control transfer instruction from memory to an instruction cache of the processor, the indirect control transfer prediction circuit may predict whether the indirect control transfer instruction is biased. Responsive to a prediction that the indirect control transfer instruction is biased, the indirect control transfer prediction circuit may cause the indirect control transfer instruction to be executed as an unconditional direct control transfer instruction according to the predicted bias.
Owner:APPLE INC

Instruction processing method and device, electronic equipment and readable storage medium

The embodiment of the invention provides an instruction processing method and device, electronic equipment and a readable storage medium, and the method comprises the steps: based on multiple pieces of source data and branch conditions corresponding to a to-be-executed branch jump instruction in a source program, selecting at least two to-be-selected branches contained in the branch jump instruction, determining jump branches respectively corresponding to the plurality of pieces of source data; taking at least two pieces of source data with the same jump branches as at least two pieces of target data, and writing the at least two pieces of target data into a first vector register; the operation types of the jump branches of the at least two pieces of target data serve as target types, a target vector instruction is generated based on the target types and the first vector register, and the target vector instruction is used for executing the operation of the target types on the at least two pieces of target data in the first vector register; and executing the target vector instruction. And the instruction execution efficiency is improved.
Owner:LOONGSON TECH CORP

OpenCL parallel defect detection method and device based on static analysis and storage medium

The invention discloses an OpenCL parallel defect detection method and device based on static analysis and a storage medium, relates to the field of computer compilation, and aims to discover parallel defects of OpenCL, improve code quality and automatically detect potential data conflicts and deadlock defects by processing specific keywords of OpenCL and analyzing on the basis of parallel grammar features of OpenCL. According to the method, problems can be found in the early stage of code development, compared with a dynamic detection method, the problems can be found before executable codes are generated by analyzing code files of OpenCL, the executable codes do not need to be modified and run, and the production environment and data cannot be affected. Compared with an analysis method based on a control flow diagram, the method has the advantages that the mode based on symbolic execution is adopted, the expansion diagram with the fence nodes is constructed, and branch information loss at branch instructions in a program is avoided.
Owner:SHANDONG INSPUR SCI RES INST CO LTD

Branch predictor selection method and selection device, and storage medium

The invention discloses a branch predictor selection method and device and a storage medium. The method comprises the steps of obtaining record data of a target jump instruction in a local historical register and a global historical register based on the target jump instruction; determining an instruction type of the target jump instruction based on the recorded data; determining a load state of the processor based on the operation parameters of the processor; and determining a target predictor according to the instruction type and the load state, and outputting a branch prediction result based on the target predictor. According to the selection method provided by the invention, the prediction accuracy can be improved, the adaptability is higher, the energy consumption is reduced, and the optimal balance between the prediction accuracy and the energy efficiency is realized.
Owner:INTERNATIONAL INNOVATION CENTER OF TSINGHUA UNIVERSITY SHANGHAI