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

121 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.

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

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 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

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

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

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

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:芯来智融半导体科技(上海)股份有限公司

A runtime hang detection and localization method and apparatus for parallel programs

The application provides a runtime suspension detection and positioning method and device for parallel programs, and applies to the technical field of large-scale computing. The method comprises the following steps: constructing a program counter value queue of each target execution unit at each sampling time; recording a stagnation program counter value of a target execution unit in a stagnation state; clustering the stagnation program counter value of the target execution unit to determine a suspended target execution unit; based on a machine instruction corresponding to the stagnation program counter value of the suspended target execution unit, obtaining source file and line number information corresponding to the stagnation program counter value through debugging information; and when the machine code corresponding to the stagnation program counter value of the suspended target execution unit is a call instruction, obtaining function call information. In this way, non-intrusive and low-load monitoring of parallel programs is realized, normal synchronization waiting and abnormal suspension processes are effectively distinguished, and problems are positioned to source code lines.
Owner:COMP NETWORK INFORMATION CENT CHINESE ACADEMY OF SCI

Electronic control device and moving body state estimation system

To provide an electronic control device that collects information for estimating a state of a moving body and transmits the information to an analysis device with a simple configuration, and a moving body state estimation system that estimates the state of the moving body on the basis of the information transmitted from the electronic control device.SOLUTION: The electronic control device 10 is configured to be able to transmit sampling data obtained by sampling the address values indicated by the program counters 18 and 20 to the analyzing device 40 as information for estimating the state of the moving object. The analysis device is configured to aggregate an appearance frequency of an address value for each address section with respect to the sampling data, generate operating point data having a plurality of address sections as elements, and estimate a state of the moving object based on the generated operating point data.SELECTED DRAWING: Figure 1
Owner:DENSO CORP

Instruction fetching method, device and equipment based on multi-level branch prediction and storage medium

The invention discloses an instruction fetching method and device based on multi-level branch prediction, equipment and a storage medium. The method comprises the steps of obtaining a value of a program counter of an initial instruction; inputting the value of the program counter into a preset pipeline level for processing, and obtaining a branch prediction result in combination with a branch prediction mechanism; and verifying the consistency of the branch prediction results step by step to obtain a target instruction. According to the method, the multi-stage assembly line and branch instruction prediction under different access frequencies are combined, so that the instruction reading efficiency is improved, and the overall performance of the processor assembly line is effectively improved. Through step-by-step confirmation of the branch prediction result, the accuracy and the high efficiency of the instruction stream are ensured, so that the processor can execute the program instruction more smoothly.
Owner:芯来智融半导体科技(上海)股份有限公司

Computer architecture using program counter indexed data address translation

An architecture of a computer processor providing a program counter (PC) for fetching instructions from a memory system comprises a program counter indexed address translation table (PCAT) having rows accessed with a program counter (PC) value, an entry in a row identifying a virtual memory address and a corresponding physical memory address. Translation between virtual memory addresses and the physical memory addresses is mediated by the PCAT holding the virtual and corresponding physical addresses. In some embodiments, this table can be accessed early in a fetch cycle and avoid likely translation lookaside buffer (TLB) misses.
Owner:WISCONSIN ALUMNI RES FOUND

Write-time memory fault processing method and device, terminal and storage medium

This invention discloses a method, apparatus, terminal, and storage medium for handling write-time memory faults, belonging to the field of memory. The method includes: when executing a memory unrepairable fault handling method, determining whether it is a memory synchronization fault; if it is a memory synchronization fault, obtaining the context register information of the interrupted process and obtaining the value of the program counter; determining the address of the interrupted instruction; based on the interrupted instruction address, reading the binary code corresponding to the interrupted instruction and parsing the opcode in the binary code; determining whether the currently interrupted process is in a write operation phase based on the opcode parsing result; if it is in a write operation phase, determining that a write-time memory fault has occurred; when using anonymous mapping, allocating a new physical page frame and replacing the original faulty physical page frame with the new physical page frame; identifying all page table entries involved in the original faulty physical page frame; and replacing the original information in all page table entries with the new physical page frame information.
Owner:KYLIN CORP

Slave core starting control method and device, electronic equipment and readable storage medium

The invention provides a slave core starting control method and device, electronic equipment and a readable storage medium. The method comprises the steps that an initial address of firmware executed by a slave core first serves as a value of a first variable and is written into the first variable; enabling a working clock of the slave core, and releasing a reset signal of the slave core to enable the slave core to enter a ready state; the value of the first variable is written into a slave core program counter configuration register, so that after the slave core detects that the slave core program counter configuration register changes, an initial address in the slave core program counter configuration register is loaded to a hardware program counter of the slave core, and operation is started based on the initial address pointed by the hardware program counter; and acquiring a firmware switching signal after the slave core executes the first executed firmware, and controlling the state switching of the slave core based on the firmware switching signal. According to the method, the starting position of the slave core is flexibly specified through the master core, the state of the slave core is switched, reset operation of the whole system is not needed in the process, and the method is suitable for scenes with high real-time performance requirements.
Owner:GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1

Processor and pipeline processing method

[Problem] To provide an InO processor with which it is possible to improve processing performance.. [Solution] According to one aspect of the present invention, there is provided a processor for executing sequentially issued instructions through pipelining, the processor comprising: a fetch unit for fetching an instruction from a memory that is set to a program counter; a decoding unit for decoding the instruction fetched by the fetch unit; a speculative issuance prediction unit for predicting, on the basis of reference information including a correlation between information for identifying a load instruction and speculative issuance possibility, whether the load instruction fetched by the fetch unit is can be speculatively issued; a queue control unit for holding instructions decoded by the decoding unit in an instruction queue, and, while sequentially issuing the instructions held in the instruction queue, performing advance issuance to issue a speculatable load instruction that is predicted to be speculatively issuable by the speculative issuance prediction unit prior to an instruction held in the instruction queue earlier than the speculatable load instruction; and a computation execution unit for executing the instructions issued by the queue control unit and writing the execution results to a register.
Owner:THE UNIV OF TOKYO

Processor program execution information monitoring method and chip device

This application proposes a method and chip device for monitoring processor program execution information, relating to the field of processor technology. It includes: real-time acquisition of the processor's raw program counter value, raw return address value, and hardware timestamp; compression processing of the raw program counter value and raw return address value to obtain compressed program counter value and compressed return address value, wherein the compression processing discards low-order alignment bits and high-order address bits; address range judgment of the raw program counter value and raw return address value to generate a program counter position flag and a return address position flag; concatenating the hardware timestamp, compressed program counter value, compressed return address value, program counter position flag, and return address position flag in a preset order into a fixed-width monitoring data packet; and reporting the monitoring data packet in response to the fulfillment of a preset trigger condition. This scheme can achieve effective monitoring of processor program execution information with low hardware overhead.
Owner:SHANGHAI QIMINGXIN SEMICONDUCTOR TECHNOLOGY CO LTD

Microprocessor performance prediction based on sampling and caching

A method comprising executing a plurality of threads using a plurality of processor cores of a processor, wherein each thread in the plurality of threads comprises a plurality of instructions; sampling, at every N cycle, to obtain a program counter (PC) corresponding to one instruction in the plurality of instructions; calculating an instructions per cycle (IPC) corresponding to the PC; caching the PC and the IPC as a cache entry in a cache; searching, at every J new instructions, the cache for a matching PC cache entry corresponding to a new instruction to be executed by the plurality of processor cores; updating an IPC value in a register with a corresponding IPC in the matching PC cache entry when the matching PC cache entry found in the cache; and switching a thread in the plurality of threads to a new thread based on the IPC value in the register.
Owner:FUTUREWEI TECHNOLOGIES INC

Technique for speculatively generating an output value in anticipation of its use by downstream processing circuitry

There is provided a data processing apparatus and method. The data processing apparatus comprises a filter circuit comprising storage circuitry to store program counter values and to assert a trigger signal in response to a lookup operation using a current program counter value hitting in the storage circuitry. The processing apparatus comprises a processing unit to generate an output in response to the trigger signal. The processing apparatus is provided with resolution circuitry, associated with a downstream processing stage, to determine whether the output is of use, and in that event to assert a false miss indication in the absence of the processing unit having been triggered to produce the output. The filter circuit is configured to maintain a trigger sensitivity metric in dependence on the false miss indication, and the chosen number of bits employed when performing the lookup operation is dependent on the trigger sensitivity metric.
Owner:ARM LTD

Processor for controlling pipeline processing based on jump instruction, and program storage medium

Provided is a processor controlling pipeline processing to avoid the occurrence of pipeline bubbles as much as possible even when executing jump instruction. The present processor executes pipeline processing in which: an instruction fetcher fetching a machine-language instruction based on a memory address set in a program counter; a decoder decoding the machine-language instruction output from the instruction fetcher into control information; and an executer executing the control information output from the decoder, are connected, and the present processor comprises: a table describing a head address and a head machine-language instruction for each destination of jump; and a pipeline controller setting, when the executer executing a control information of a jump, an address specifying a second machine-language instruction at a destination of the jump into the program counter by using the table, while to input a head machine-language instruction at the destination of the jump to the decoder.
Owner:TAKEOKA LAB +1

Tag checking procedure calls

System and techniques for tag checking procedure calls include specifying a value for a color in a program-counter relative (PC-relative) call instruction from a call site to a call target. A pointer is provided to steer the PC-relative call instruction to the call target based on the color. A function call is generated to the call target based on the pointer. Other systems, methods and apparatuses are also described.
Owner:INTEL CORP

Estimating progress of a computer program execution

The invention relates to a computer-implemented method (900) of estimating progress of an execution of a computer program. The program is executed while evolving an execution counter, indicative of a current control flow position of the computer program. The execution counter can for example be a program counter used to exchange messages in a system for cryptographic secure multi-party computation. The execution counter has an execution-independent part that corresponds to the control flow position regardless of the current execution. To estimate progress, the execution-independent part is mapped to an estimate accessed from a predetermined, e.g., pre-calibrated, progress estimation mapping.
Owner:ROSEMAN GRP BV