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

178 results about "Program counter" patented technology

The program counter (PC), commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR), the instruction counter, or just part of the instruction sequencer, is a processor register that indicates where a computer is in its program sequence.

A microprocessor fault recovery device and method, and a chip

The present invention provides a microprocessor fault recovery device and method, and a chip, including a microprocessor CPU with a dual-core lock-step structure, a field backup module, and a safety management module; when running to a preset recovery point in the program code, the field backup module records the location of the recovery point and the values ​​of important parameters in the current field environment; when receiving a CPU fault indication, the safety management module notifies the CPU to suspend operation and notifies the field backup module to restore the field; the field backup module overwrites the corresponding current data with the backup data; after receiving a successful response to field recovery, the safety management module adjusts the program counter to the location of the recovery point and restarts the CPU. The present invention can quickly bring the system back to a safe operating state when a CPU error occurs, thereby improving the robustness of automotive-grade functional safety.
Owner:XINKE INTEGRATED CIRCUIT (SUZHOU) CO LTD

Using approximate membership query filters for efficient control flow integrity protection

A method includes fetching, at a program counter value, an instruction of a basic block of code; decoding the instruction; updating a checksum value with a checksum of the instruction; and determining whether a tuple of the program counter value and the checksum value is in an approximate membership query filter (AMQ-filter).
Owner:NXP BV

Pipelined Decoding Microarchitecture Design Method for RISC-V Vector Instructions

A pipelined decoding microarchitecture design method for RISC-V vector instructions includes the following steps: S1, extracting an instruction packet according to a PC, performing preprocessing, and writing a preprocessing result, each instruction field and preprocessed instruction information into a cache; S2, reading the cache, obtaining pre-decoding result data and recognizing each configuration instruction; S3, transmitting the pre-decoding result data to an instruction buffer, and acquiring field information, a split quantity and predicted vtype information; and splitting each instruction into multiple microoperations, and constructing a queue to store each microoperation; and S4, transmitting first, by means of the queue, each configuration instruction, performing decoding and execution, acquiring vtype information generated after execution, and when the vtype information generated after execution is identical with the predicted vtype information, controlling the number of microoperations input to multiple decoders, and transmitting a decoding result to an instruction slot.
Owner:JIANGSU HUACHUANG MICROSYSTEM CO LTD

Simulation result display method and device, storage medium and equipment

The invention belongs to the technical field of simulation, and particularly relates to a simulation result display method and device, a storage medium and equipment, and the display method comprises the steps: obtaining a global program counting address and instruction information according to a firmware logic file, and constructing a reference address mapping table based on the global program counting address and the instruction information; wherein the firmware logic file is a file for storing firmware execution logic related information; obtaining a firmware program counting address according to the firmware signal file; wherein the global program counting address comprises the firmware program counting address, and the firmware signal file is a file for storing response signal related information generated when the firmware executes the instruction information; in the execution process of playing back the instruction information, displaying the firmware program counting address based on the firmware program counting address and the reference address mapping table; according to the method, the debugging efficiency between the software and the firmware is improved.
Owner:NIUXIN SEMICON

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

An analysis function providing method executed by an analysis function providing device includes first analyzing a virtual machine of a script engine, and acquiring a hook point that is a part where an analysis code is inserted by applying a hook, and a virtual program counter that is a variable indicating an instruction of the virtual machine to be executed next, second analyzing an instruction set architecture that is a system of instructions of the virtual machine and acquiring a branch virtual machine instruction that is a virtual machine instruction that causes branch, and providing an analysis function by applying a hook, to the hook point of the script engine, the hook including processing of, when an exception has occurred, changing a destination pointed by the virtual program counter to a head of a basic block immediately after a basic block in which the exception has occurred.
Owner:NT T INC

An authentication code generating class of instructions

There is provided an apparatus, a method, and a computer program. The apparatus is provided with instruction decoding circuitry to decode instructions and processing circuitry to perform a processing operation in response to a decoded instruction. In response to an authentication code generating instruction, the processing circuitry is configured to generate an authentication code associated with an 10 authentication target value. For at least one type of the authentication code generating instruction, the processing circuitry is configured to generate an authentication code, when operating in a first code generation mode, by applying a code generating function to: a key; the authentication target value; a first modifier dependent on a stack pointer, and / or a second modifier dependent on a program counter address; and a further 15 modifier dependent on a further value obtained from an architecturally visible register different from the stack pointer register and the program counter register.
Owner:ARM LTD

Memory fault processing method and device during writing, terminal and storage medium

The invention discloses a memory fault processing method and device during writing, a terminal and a storage medium, and belongs to the field of memorys.The method comprises the steps that when a memory unrecoverable fault processing method is executed, whether a memory synchronization fault exists or not is judged, and when the memory synchronization fault exists, context register information of an interrupted process is obtained, and a value of a program counter is obtained; determining an address of the interrupted instruction, reading a binary code corresponding to the interrupted instruction based on the address of the interrupted instruction, and analyzing an operation code in the binary code; determining whether the currently interrupted process is in a write operation stage or not according to the analysis result of the operation code, and when the currently interrupted process is in the write operation stage, determining that a memory fault occurs during writing; when anonymous mapping is carried out, a new physical page frame is distributed, and the new physical page frame is used for replacing an original faulty physical page frame; determining all page table items related to the original fault physical page frame; and replacing the original information in all the page table entries with new physical page frame information.
Owner:KYLIN CORP

Dynamic binary translation caching method and system based on hotspot discovery

The invention relates to the technical field of code caching, and provides a dynamic binary translation caching method and system based on hotspot discovery, and the dynamic binary translation caching method comprises the following steps: S1, taking a virtual address of a client as a key value of a Hash conflict ring structure; s2, in a certain detection, if it is detected that the same translation block is hit for the second time according to the virtual address of the client and the program counter, and the number of hit translation blocks reaches a hit threshold value, triggering a hotspot transfer thread to update a hotspot counter corresponding to translation block information, pointing a head pointer of the hash bucket to the translation block information with the highest hotspot counter value; and S3, two groups of alternately used continuous memory spaces are adopted, translation codes of the old memory space are recovered through copy-on-write, new translation codes are written into the new memory space, and the translation codes of the old memory space are asynchronously migrated to the new memory space.
Owner:GUANGDONG UNIV OF TECH

Self-adaptive FFT (Fast Fourier Transform) processor module for large data volume processing

The invention belongs to the technical field of FFT (Fast Fourier Transform) calculation acceleration, and particularly relates to a self-adaptive FFT operation processor module for processing large data volume, which comprises an address generation module, a data rearrangement unit, a twiddle factor storage module, an FFT calculation module and a control module, the FFT calculation module comprises m rows of radix-2kMDC modules which are arranged side by side; the data rearrangement unit comprises a read-write data storage module and a data preprocessing module; the read-write data storage module consists of a plurality of memories; the data preprocessing module is composed of a plurality of parallel branch switching circuits and a plurality of shuffling units with different depths; the twiddle factor storage module is used for storing fixed constant twiddle factors and realizing repeated utilization of the constant twiddle factors according to the calculated points; the address generation module is used for generating an address sequence for data reading / writing by using a program counter, the control module is used for controlling and executing FFT calculation, and different FFT calculation requirements can be met. And the utilization rate of the butterfly operation unit and the calculation throughput rate of the whole architecture are improved.
Owner:CHONGQING UNIV

Double-write-back embedded scalar processor micro-architecture

PendingCN119829137AConcurrent instruction executionScalar processorEngineering
The invention discloses a double-write-back embedded scalar processor micro-architecture, which belongs to the technical field of embedded scalar processors, and comprises an arbitration component for arbitrating a program counter value flowing into an assembly line; the instruction fetching part is used for acquiring instruction data; the decoding component is used for acquiring a memory access operation code and a memory access operand when the instruction is a memory access instruction, and acquiring a non-memory access operation code and a non-memory access operand when the instruction is a non-memory access instruction; the execution component is used for calculating a memory access address according to the memory access operand; executing the non-memory access instruction according to the non-memory access operation code and the non-memory access operand to obtain a non-memory access instruction execution result; the memory access component is used for executing the memory access instruction according to the memory access operation code and the memory access address to obtain memory access data; and the write-back component is used for executing write-back operation of the memory access instruction and / or the non-memory access instruction according to the memory access data and / or the non-memory access instruction. According to the double-write-back embedded scalar processor micro-architecture, the performance, reliability and flexibility of an embedded scalar processor can be improved, and power consumption can be reduced.
Owner:WUXI ADVANCED TECH RES INST

Dynamic instruction fetch and instruction coverage method based on double-track assembly line and processor

The invention discloses a dynamic instruction fetch and instruction coverage method and a processor based on a double-track assembly line, and the dynamic instruction fetch method comprises the steps: when the current instruction fetch is a branch instruction, two instructions are fetched from a current instruction PC value plus 4 and a branch target address at the same time in a next clock period; and when the instruction is a non-branch instruction, taking one instruction in the next clock period. According to the instruction coverage method, primary and secondary parallel assembly lines are set, the primary assembly line processes an instruction with a previous instruction PC value plus 4, and the secondary assembly line processes a branch target address instruction; when branch jumping and target address matching are judged in the execution stage, instructions in all stages of the secondary assembly line cover instructions in corresponding stages of the main assembly line. The method can solve the problems of high delay, large misprediction penalty and low power consumption efficiency of branch prediction, and improves the performance of a processor.
Owner:HANGZHOU POLYTECHNIC

Virtual prototype platform branch prediction method and device, equipment and medium

The invention relates to a virtual prototype platform branch prediction method and device, equipment and a medium, and the method comprises the steps: calling a preset scoring strategy, and predicting the jump direction of a current branch instruction by a branch jump direction predictor in a branch prediction model according to a memory address corresponding to the current branch instruction; if the current branch instruction is in a skipping state, a branch skipping address predictor in the branch prediction model predicts a to-be-skipped program counter address corresponding to the current branch instruction according to a memory address corresponding to the current branch instruction by adopting a preset scoring strategy; if the current branch instruction is in a non-jump state, the branch jump address predictor determines a program counter address of a next instruction of the current branch instruction according to a memory address corresponding to the current branch instruction so as to complete branch prediction of the virtual prototype platform; according to the method, the coverage degree of branch prediction is remarkably improved, so that the function verification of the virtual prototype platform is more comprehensive.
Owner:GUANGDONG UNIV OF TECH +1

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

An analysis function providing method executed by an analysis function providing device includes first analyzing a virtual machine of a script engine and acquiring a virtual program counter that is a variable indicating an instruction of the virtual machine to be executed next and a conditional branch flag that is an area for holding a flag as to whether or not branch is made at a time of conditional branch in an execution state, and providing an analysis function to the script engine by applying a hook including processing of detecting an instruction sequence a number of times of repeated execution of which is greater than or equal to a threshold and stopping execution of the instruction sequence by rewriting a condition related to a conditional branch at an end of the instruction sequence on a basis of the virtual program counter and the conditional branch flag.
Owner:NT T INC

Instruction acquisition method, processor, system on chip and computing equipment

The embodiment of the invention provides an instruction obtaining method, a processor, a system on chip and computing equipment, the instruction obtaining method is applied to an instruction fetching unit of the processor, the processor further comprises a cache unit, a tight coupling storage unit and a program counter, and the instruction obtaining method comprises the steps that branch prediction information for a current jump instruction is received; based on the branch prediction information, determining a current storage unit where the current jump instruction is located from a cache unit and a tight coupling storage unit; based on the offset of the current program count value recorded by the program counter, the current jump instruction is taken out from the current storage unit, so that the time sequence pressure is reduced, the dominant frequency of the processor is improved, and meanwhile, the additional dynamic power consumption caused by simultaneously acquiring the jump instruction by double branches is effectively avoided; according to the method, the performance and the product endurance of the processor in processing discontinuous instructions are improved, more efficient and energy-saving instruction acquisition is realized on the premise of not sacrificing the processing speed, and the method is suitable for application scenes with higher requirements on the real-time performance and the product endurance.
Owner:ALIBABA DAMO (HANGZHOU) TECH CO LTD

Visual gateway debugging system and method based on swan mongolian operating system

The invention provides a visual gateway debugging system and a visual gateway debugging method based on a swan mongolian operating system, and relates to the technical field of IoT (Internet of Things) debugging. The system comprises the following steps: constructing a domain name forest structure based on DNS, TLS and HTTP traffic, and identifying an equipment identity; a debugging activation instruction is generated, and cross-device command transmission with the DSoftBus is carried out through the WebSocket and the DSoftBus; collecting program counters, stacks and variable states with microsecond-level precision; constructing a state tetrad atlas and executing compression processing; migrating a breakpoint context among multiple devices and reconstructing an execution environment; and graphically presenting a state graph, a variable track and a call stack, and supporting linkage of path playback and debugging control. According to the method, a full-process closed loop from equipment identification to debugging control and from state modeling to path playback is realized, the debugging efficiency, the automation level and the system visualization capability are improved, and the method is suitable for debugging and abnormity diagnosis scenes of the distributed intelligent terminal.
Owner:NANJING SHENDA ENG TECH CO LTD

Authentication code setting instruction and authentication code checking instruction

In response to an authentication code generating class of instruction, processing circuitry generates an authentication code associated with an authentication target value by applying a code generating function to the authentication target value, a key, a first modifier value and a second modifier value. For an authentication code setting instruction, the generated authentication code is written to a destination register. For an authentication code checking instruction, the processing circuitry checks whether the authentication code generated based on the authentication target value in response to the authentication code checking instruction corresponds to a reference authentication code obtained from a source register, and triggers an error response when they do not correspond. The first modifier value comprises a stack-pointer- dependent value. For at least one of the authentication code setting / checking instructions, the second modifier value comprises a program-counter-dependent value.
Owner:ARM LTD

Bytecode instruction execution method, virtual machine, equipment and medium

The invention discloses a bytecode instruction execution method, a virtual machine, equipment and a medium, and the method comprises the steps: determining a first target address from the storage address of each bytecode in a bytecode instruction execution request, and storing the first target address in a first register; the interpreter reads a first target address of the first register, and stores a first target byte code corresponding to the first target address to the second register; the interpreter adds 1 to the first target address stored in the first register to obtain a second target address; the interpreter executes the first target bytecode in the second register. According to the application, a program counter is mapped to a physical register, an interpreter executes a previous byte code, an address value stored in the physical register is changed to point to a next byte code to be executed, and the byte code is stored in another register, so that the interpreter directly reads and executes the byte code from the register; compared with the scheme of repeatedly accessing the program counter value from the RAM to execute the bytecode, the execution efficiency of the bytecode instruction is improved.
Owner:EASTCOMPEACE TECH

PC value log generation method

The embodiment of the invention provides a PC value log generation method, and relates to the technical field of storage. The method comprises the following steps: acquiring a program counter value output by a central processing unit core; compressing the program counter values to generate program counter value log data packets with specified formats corresponding to the program counter values; combining the generated one or more program counter value log data packets to obtain a combined data packet; and transmitting the combined data packet to a memory. The program counter value sequence collected by the program counter value method is compressed to generate the program counter value log data packet with the specified format, and the total size of the program counter value log data packet is smaller than the size of the program counter value sequence, so that the bandwidth for transmitting the program counter value is reduced.
Owner:BEIJING STARBLAZE TECH CO LTD

Low latency and highly programmable interrupt controller unit

A graph processing core includes a plurality of processing pipelines and an interrupt controller unit. Each processing pipeline executes one or more threads and includes, for each thread, a register indicating a currently executing program counter vector and another register indicating an interrupt or exception handler vector. The interrupt controller unit may receive interrupt or exception notifications from the processing pipelines, determine a handler vector based on the notification and a set of registers of the interrupt controller unit, and transmit the handler vector to the processing pipeline that issued the interrupt or exception notification. Further, the issuing pipeline may receive the handler vector from the interrupt controller unit, write a value in the first register into the second register, write the handler vector into the first register, and invoke an interrupt or exception hander based on the value written into the first register.
Owner:INTEL CORP

Thread scheduling method and device, compiling method and device, electronic equipment and storage medium

The invention provides a thread scheduling method and device, a compiling method and device, electronic equipment and a storage medium. The method for scheduling the threads comprises the following steps of: mapping a first register into a register for recording a return program counter through a first software instruction for a thread bundle to be subjected to thread bundle differentiation and synchronization, wherein the return program counter is used for recording a next instruction address to be executed in each thread of the thread bundle; the second register is mapped into a register for recording thread synchronization information for the thread bundle through a second software instruction, the thread synchronization information comprises a thread mask and a target program counter, and the thread mask is used for recording whether a thread currently participating in thread bundle differentiation and synchronization in the thread bundle is executed or not; the target program counter is used for recording a target instruction address to be skipped after synchronization is completed; and executing thread beam differentiation and synchronization by using the returned program counter obtained after mapping and thread synchronization information. According to the invention, the use of the register and the thread beam differentiation and synchronization are more flexible.
Owner:SHANGHAI BIREN TECH CO LTD

Method for monitoring an execution of a program code portion and corresponding system-on-chip

A method is provided for monitoring an execution of a selected program code portion stored in a memory address range between a start address and an end address. The method includes starting a timing when a program counter points to the start address of the selected program code portion. Current values of the program counter are compared with a set of target addresses specific to the selected program code portion including the end address of the selected program code portion. The timing is stopped when the program counter points to the end address of the selected program code portion. An error signal is generated in response to the timing duration being outside a nominal duration range specific to the selected program code portion.
Owner:STMICROELECTRONICS (GRAND OUEST) SAS

Performance counting device and chip

The invention relates to a performance counting device and a chip, and the performance counting device comprises a performance counting module which is used for receiving at least one instruction memory address from a program counter associated with the performance counting module, and according to the at least one instruction memory address and a pre-configured instruction memory address interval, counting the at least one instruction memory address; obtaining a statistical value of a performance signal of at least one instruction memory address in the instruction memory address interval; the storage module is used for storing the statistical value of the performance signal of the at least one instruction memory address of the performance statistical module; the write-in control module is used for writing the statistical value, obtained by the performance statistical module, of the performance signal of the at least one instruction memory address into the storage module; and the configuration module is used for configuring an instruction memory address interval of the performance statistics module. According to the method and the device, the configuration flexibility of performance statistics can be improved, performance statistics of a plurality of specified program segments can be realized at the same time on the basis, and parallel processing of the performance statistics and accurate positioning of the program segments are further realized.
Owner:SHANGHAI BIREN TECH CO LTD

Static instruction caching in a coprocessor architecture

Methods and systems relating to improved coprocessing architectures with static instruction caching are disclosed herein. A disclosed coprocessor architecture includes a processor, a coprocessor defined by an instruction set, a cache of static instruction blocks, and an instruction cache. The instruction set includes at least one static instruction. The instruction cache is configured to identify instructions in a series of instructions, provided by the processor for execution by the coprocessor, as either static instructions or dynamic instructions. The instruction cache is configured to, in response to identifying two or more sequential instructions in the series of instructions as static instructions, cache the two or more sequential instructions in the cache of static instruction blocks as an instruction block and store a program counter value of a program counter. The instruction cache is configured to provide the instruction block to the coprocessor from the cache of static instruction blocks when the program counter returns to the program counter value.
Owner:TENSTORRENT USA INC

Looping instruction

A processor (101) with an instruction set comprising a looping instruction and corresponding method are provided. The looping instruction is defined by a corresponding opcode and comprises a register operand for holding a sequence of subinstructions. The looping instruction causes the processor (101) to: repeatedly execute the looping instruction without incrementing a program counter, each execution of the looping instruction comprising: executing one of the subinstructions in the register operand; and modifying the register operand to contain a different set of subinstructions.
Owner:XMOS

Control register for storing instruction size information

A processor circuit that includes a plurality of register circuits and an event handler circuit is disclosed. The event handler circuit may detect a processing event that causes the processor circuit to halt execution of a current instruction and transfer control to a kernel. In response to a detection of the processing event, the event handler circuit may store a program counter value corresponding to the current instruction, information indicative of a cause of the processing event, and a size of the current instruction in corresponding register circuits of the plurality of register circuits.
Owner:APPLE INC

Thread scheduling method, device and equipment based on RISC-V architecture

The invention discloses a thread scheduling method, device and equipment based on an RISC-V framework. The method is applied to the electronic equipment based on the RISC-V architecture, an operating system kernel of the electronic equipment runs in a supervision mode of the RISC-V architecture, a user program of the electronic equipment runs in a user mode of the RISC-V architecture, and the method comprises the steps that the user program is analyzed, and a user mode stack, a kernel mode stack and a thread control block are created according to an analysis result; writing the entry address of the user program in the analysis result into an abnormal program counter in a supervision mode; and executing the supervision mode exception return instruction, switching the processor of the electronic equipment from the supervision mode to the user mode, jumping to the entry address of the user program, and starting to execute the user mode thread. The thread scheduling method based on the RISC-V architecture provided by the invention can be high in safety.
Owner:CHINA MOBILE M2M +1

Floating point unit exception handling method and device of industrial safety operating system and medium

The invention provides a floating point unit exception handling method and device of an industrial safety operating system and a medium. The method comprises the following steps: hooking a floating point exception handling function at an undefined instruction exception entry, and enabling the exception of a floating point unit to enter a unified handling flow; reading an abnormal comprehensive register of the processor to identify the floating point operation exception type, and reading a program counter register to obtain a trigger instruction address; performing standardized calculation on the operation under abnormal conditions according to a binary floating point arithmetic standard, generating result data corresponding to the operation, and forming abnormal mark information; writing the result data back to the destination register, and calculating a next instruction address according to the instruction set rule; and outputting the trigger instruction address, the exception type, the source operand and the result data as exception information through an interface from the kernel to a user side. According to the method, instant processing of the abnormal trigger point, continuous execution of the instruction, real-time output of the abnormal context and reduction of positioning and recovery time delay can be realized.
Owner:BEIJING HOLLYSYS TECHNOLOGY RESEARCH INSTITUTE CO LTD

Instruction fetching method, processor, system-on-chip, and computing device

Embodiments of the present description provide an instruction fetching method, a processor, a system-on-chip, and a computing device. The instruction fetching method is applied to an instruction fetch unit of a processor, and the processor further comprises a cache unit, a tightly-coupled memory unit, and a program counter. The instruction fetching method comprises: receiving branch prediction information for a current jump instruction; on the basis of the branch prediction information, determining, from the cache unit and the tightly-coupled memory unit, a current storage unit where the current jump instruction is located; and on the basis of an offset of a current program counter value recorded by the program counter, fetching the current jump instruction from the current storage unit. The timing pressure is reduced, the clock rate of the processor is increased, and the additional dynamic power consumption caused by fetching jump instructions from two branches simultaneously are effectively avoided, thereby improving the performance of the processor when processing non-sequential instructions and the product battery life, and implementing more efficient and energy-saving instruction fetching without sacrificing the processing speed; the present invention is applicable to application scenarios having high requirements for real-time performance and product battery life.
Owner:ALIBABA DAMO (HANGZHOU) TECH CO LTD

Processor that implements indirect addressing-style conditional jump instructions, program recording medium, and method

Provided is a processor enabling assembly code of a direct-addressing conditional-jump subroutine to be reduced. The processor includes a logic circuit executing a conditional-jump instruction of assembly code, and logically configured to: store, into an index register, an index register number that is an index to a jump-destination effective address; store jump-destination effective addresses differing from one another, or address offsets to jump-destination effective addresses differing from one another, into plural reference registers, respectively; fetch and decode a conditional jump instruction that is one instruction that quotes the index register; and then execute (S1) acquiring a jump-destination effective address or an address offset from the reference register corresponding to the index register number of the content of the index register and (S2) setting the acquired jump-destination effective address, or a jump-destination effective address calculated from the address offset, to a register serving as the program counter.
Owner:TAKEOKA LAB +1

Instruction processing method, apparatus, device, and storage medium

This application discloses an instruction processing method, apparatus, device, and storage medium, relating to the field of processor technology. The method includes: generating a first immediate value through a program counter, and using the first immediate value as a first program counter value; reading a first instruction from a memory unit according to the first program counter value through a processor instruction fetch unit; passing the first instruction to a pre-decoding unit so that the pre-decoding unit decodes and judges the first instruction; if the first instruction is a first preset instruction, then fetching, decoding, and executing the instruction through the processor instruction fetch unit and / or branch prediction unit. This application can improve the processor's clock frequency.
Owner:芯来智融半导体科技(上海)股份有限公司