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

24 results about "Instruction prefetch" patented technology

Cache prefetching is a technique used by computer processors to boost execution performance by fetching instructions or data from their original storage in slower memory to a faster local memory before it is actually needed (hence the term 'prefetch'). Most modern computer processors have fast and local cache memory in which prefetched data is held until it is required. The source for the prefetch operation is usually main memory. Because of their design, accessing cache memories is typically much faster than accessing main memory, so prefetching data and then accessing it from caches is usually many orders of magnitude faster than accessing it directly from main memory.

Instruction cache and prefetching method thereof

The invention provides an instruction cache and a prefetching method thereof. The instruction cache comprises a hit detection module, an instruction prefetching module and an operation module. The hit detection module checks whether a current instruction fetching request of a current thread bundle is hit. The instruction prefetching module dynamically determines an instruction prefetching range corresponding to the current instruction fetching request according to the execution progress of the current thread bundle. The operation module accesses the external storage to prefetch the instruction data corresponding to the instruction prefetch range. And in response to the fact that the hit detection module judges that the current instruction fetching request is hit, the operation module feeds back instruction data corresponding to the current instruction fetching request to the current thread bundle. And in response to the fact that the hit detection module judges that the current instruction fetching request is missed, the operation module accesses external storage so as to feed back instruction data corresponding to the current instruction fetching request to the current thread bundle.
Owner:SHANGHAI BIREN TECH CO LTD

Intelligent session flow scheduling method under converged communication architecture

The invention relates to the technical field of cloud fusion application operation support platforms, and discloses a session flow intelligent scheduling method under a fusion communication architecture, which comprises the following steps: monitoring a session flow logic sequence number of a current node; constructing an asynchronous mirror instance at the target node, and obtaining a computing power comparison parameter; adjusting an asynchronous mirror instance instruction execution rate to execute serial number chasing; after the sequence number difference value enters a synchronous threshold value, processor assembly line branch prediction data is injected, and instruction prefetching sequence filling is driven; according to the instruction level feature injection and execution phase alignment method, hardware execution momentum imbalance in a heterogeneous computing power environment is eliminated through instruction level feature injection and execution phase alignment, and progress connection and logic consistency of session streams at a migration interface are guaranteed.
Owner:SHENZHEN JINCHENGKE INFORMATION TECH CO LTD

Instruction prefetching method, processor and electronic equipment

The embodiment of the invention discloses an instruction prefetching method, a processor, electronic equipment and a computer readable storage medium. The method comprises the following steps: predicting and generating an instruction fetching block of a target instruction based on a branch prediction unit, and sending the instruction fetching block into an instruction fetching target queue; if the fetch block does not carry the first group of index information and the first path information of the target instruction, sending a prefetch request to an instruction cache unit based on the fetch target queue so as to cache the target instruction into the instruction cache unit; based on an instruction fetch unit, reading a fetch block from the fetch target queue so as to read a target instruction from an instruction cache unit; if the fetch block carries the first group of index information and the first path information, the fetch block is read from the fetch target queue based on the instruction fetch unit to obtain the first group of index information and the first path information, and the target instruction is read from the instruction cache unit according to the first group of index information and the first path information, so that redundant pre-fetch requests are reduced, and the operation efficiency is improved. And the power consumption of the processor is reduced.
Owner:GUANGDONG LEAPFIVE TECH CO LTD

Calculation scheduling method and device for AI chip, electronic equipment and storage medium

The invention provides a calculation scheduling method and device for an AI chip, electronic equipment and a storage medium. The method comprises the steps that a task distribution unit sends information of an instruction needing to be loaded in advance to a prefetching unit; in response to the information, received by the prefetching unit, of the instruction needing to be loaded in advance, the prefetching unit sends an instruction prefetching request corresponding to the instruction needing to be loaded in advance to the memory based on the information of the instruction needing to be loaded in advance; in response to the instruction prefetching request received by the memory, the memory sends an instruction needing to be loaded in advance to the prefetching unit; and in response to the instruction which needs to be loaded in advance and is received by the prefetching unit, the prefetching unit sends the instruction which needs to be loaded in advance to the plurality of calculation cores so as to cache the instruction which needs to be loaded in advance to the buffer corresponding to each calculation core.
Owner:BEIJING WEIFAN INTELLIGENT TECHNOLOGY CO LTD

A sub-real-time processor, a real-time processor and a system-on-a-chip

ActiveCN117369870BControl signalControl cell
This invention discloses a sub-real-time processor, a real-time processor, and a system-on-a-chip (SoC). The sub-real-time processor includes: a control unit for generating corresponding control signals and sending them to other units; an instruction prefetching unit for acquiring instructions to be executed and sending them to an execution unit; an execution unit for acquiring a set interval time corresponding to the instruction to be executed and sending it to a comparison unit, and executing the instruction to be executed upon receiving a start execution signal; an interval time counting unit for counting pulses based on a time reference and acquiring the current interval time count value and sending it to the comparison unit; and a comparison unit for generating a start execution signal and sending it to the execution unit when it detects that the set interval time is equal to the current interval time count value. The technical solution of this embodiment, by employing an interval time counting unit, can achieve timed execution of instructions, thereby improving the timing accuracy and real-time performance of instruction execution.
Owner:MORNINGCORE HLDG CO LTD

Compiler-generated KILO-instructions deep runahead

Methods and apparatus for a runahead process are provided to prevent frontend stalls when executing a computer program. Methods and apparatus profile and analyze the computer program when it is compiled to extract meta-data defining hyperblocks for the computer program. The hyperblocks each encompass a respective series of basic blocks having transitions that meet a specified threshold. When the computer program is executed, the runahead process is performed for program branches. In this process, a future path of hyperblocks is predicted from each branch and the instructions corresponding to those hyperblocks are prefetched to a memory cache so that they can be readily fetched. Cycles or large call stacks are removed to enable deep runaheads, which may span about a thousand instructions.
Owner:HUAWEI TECH CO LTD

Instruction Address Translation and Instruction Prefetch Engine

Techniques are provided for performing an instruction fetch operation, including determining an instruction address of a primary branch prediction path, requesting a level 0 translation lookaside buffer (TLB) to cache an address translation of the primary branch prediction path, determining one or both of an alternate control flow path instruction address and a lookahead control flow path instruction address, and requesting the level 0 TLB or an alternate level TLB to cache address translations of one or both of the alternate control flow path instruction address and the lookahead control flow path instruction address.
Owner:ADVANCED MICRO DEVICES INC

Multi-thread processor pipeline architecture system, scheduling method and equipment

The invention relates to the technical field of processor design, discloses a multi-thread processor pipeline architecture system, a scheduling method and equipment, and designs an instruction prefetching scheduling algorithm based on mixed priorities, and the algorithm realizes load balancing of thread instruction queues through a static level decision mechanism and a dynamic level decision mechanism. The static level preferentially processes an empty queue thread to avoid starvation, and the dynamic level dynamically adjusts instruction fetching priority according to each queue depth, thread validity and a branch risk state to ensure that an instruction stream is continuously and stably supplied to a subsequent stage; a coupled polling emission scheduling algorithm is provided, so that high complexity of full-permutation search is avoided, and structural conflicts and data conflicts are effectively reduced; a special hardware architecture is designed around the algorithm, a multi-program counter and an instruction queue are integrated at the front end, a double-transmitting channel, a multifunctional unit and a thread private register file are configured at the rear end, and the performance of the single-core CPU is improved by optimizing the hardware architecture.
Owner:YUANQIXIN (SHANDONG) SEMICONDUCTOR TECHNOLOGY CO LTD

FDIP-based novel instruction prefetching method and apparatus, and electronic device

The invention provides a novel instruction prefetching method and device based on FDIP and electronic device.The method comprises the steps that after a target instruction block address enters a target instruction fetching queue, the target instruction block address is matched with a label array of instruction cache for the first time; when it is determined that an instruction block corresponding to the target instruction block address is in an instruction cache, locking a target cache line corresponding to the target instruction block address, and unlocking the target cache line after an instruction fetching process of the target instruction block address is completed; when the target instruction block becomes the first entry of the target fetch queue, the fetch unit obtains the target instruction block from the instruction cache. According to the scheme, after the branch predictor generates the target instruction block address, the target instruction block address only needs to be matched with the tag array once, so that access conflicts and dynamic power consumption caused by two times of matching can be avoided, additional area overhead is avoided, the performance of a CPU can be improved, and the power consumption of the CPU can be reduced.
Owner:CHENGDU QUNXIN MICROELECTRONICS TECHNOLOGY CO LTD

Instruction prefetching method and device and artificial intelligence chip

The invention provides an instruction prefetching method and device and an artificial intelligence chip, and relates to the technical field of chip design and manufacturing, and the method comprises the steps: obtaining a thread bundle identifier of a current thread bundle; determining the current thread bundle as a memory access thread bundle based on the thread bundle identifier; and adjusting the instruction prefetch number of the current thread bundle. According to the method and the device provided by the invention, the memory access thread bundle is prevented from being excessively prefetched, and the saved instruction cache space is reserved for the calculation thread bundle which needs the instruction cache space, so that the instruction to be executed by the processor is efficiently prefetched, the overall utilization efficiency and the hit rate of instruction cache are improved, and the operation efficiency of the processor is improved. Unnecessary memory bandwidth consumption is reduced, and finally the overall processing performance of the processor is improved.
Owner:SHANGHAI BIREN TECH CO LTD

Microprocessor with instruction prefetching

A microprocessor efficiently performs instruction prefetching, having an instruction cache, a branch predictor, a fetch target queue coupled between the branch predictor and the instruction cache, and a comparator. The instruction cache caches contents for fetching in response to a fetch address. The fetch target queue stores at least one instruction address predicted by the branch predictor to be in a branch direction, to be read out as the fetch address, or output as a plurality of prefetch candidate addresses for selection as a prefetch address to operate the instruction cache for instruction prefetching. The comparator compares the plurality of prefetch candidate addresses with a previous prefetch address to determine which prefetch candidate address is the prefetch address, to exclude instruction prefetching of consecutive instructions of the same cache line.
Owner:VIA ALLIANCE SEMICON CO LTD

Microprocessor with instruction prefetching

A microprocessor efficiently performs instruction prefetching with an instruction cache, a branch predictor, a fetch target queue coupled between the branch predictor and the instruction cache, and a prefetch read pointer control circuit. The instruction cache caches content for fetching in response to a fetch address. The fetch target queue stores instruction addresses predicted by the branch predictor to be taken in a branch direction to be fetched as the fetch address or selected as a prefetch address to operate the instruction cache to perform instruction prefetching. The prefetch read pointer control circuit generates a prefetch read pointer to the fetch target queue such that the instruction prefetching performed by the fetch target queue in response to the prefetch address supplied by the prefetch read pointer does not fall behind the fetching performed in response to the fetch address supplied by a fetch read pointer.
Owner:VIA ALLIANCE SEMICON CO LTD

Using retired pages history for instruction translation lookaside buffer (TLB) prefetching in processor-based devices

Using retired pages history for instruction translation lookaside buffer (TLB) prefetching in processor-based devices is disclosed herein. In some exemplary aspects, a processor-based device is provided. The processor-based device comprises a history-based instruction TLB prefetcher (HTP) circuit configured to determine that a first instruction of a first page has been retired. The HTP circuit is further configured to determine a first page virtual address (VA) of the first page. The HTP circuit is also configured to determine that the first page VA differs from a value of a last retired page VA indicator of the HTP circuit. The HTP circuit is additionally configured to, responsive to determining that the first page VA differs from the value of the last retired page VA indicator of the HTP circuit, store the first page VA as the value of the last retired page VA indicator.
Owner:QUALCOMM INC

Network processor and chip

The invention relates to a network processor and a chip, and the method comprises the steps: an instruction prefetching module generates a prefetching instruction request according to a prefetching instruction address and a thread identifier of a target thread, and transmits the prefetching instruction request to an instruction memory; the instruction preprocessing module obtains a target instruction block returned by the instruction memory, stores a first special instruction in the target instruction block and a plurality of previous instructions in the instruction cache module, obtains a next prefetch instruction address according to the first special instruction, and if prediction succeeds, sends the next prefetch instruction address to the instruction cache module; if not, sending the predicted next prefetch instruction address, the thread state information and the corresponding thread identifier to an instruction prefetch module; the instruction pre-fetching module generates a new pre-fetching instruction request according to the next pre-fetching instruction address, the thread pre-fetching control signal and the corresponding thread identifier output by the instruction preprocessing module, and sends the new pre-fetching instruction request to the instruction memory, through the application, the instruction pre-fetching time delay of the processor can be reduced.
Owner:CHENGDU JAGUAR MICROSYSTEMS CO LTD

Instruction prefetch throttling

An apparatus is provided for limiting the effective utilisation of an instruction fetch queue. The instruction fetch entries are used to control the prefetching of instructions from memory, such that those instructions are stored in an instruction cache prior to being required by execution circuitry while executing a program. By limiting the effective utilisation of the instruction fetch queue, fewer instructions will be prefetched and fewer instructions will be allocated to the instruction cache, thus causing fewer evictions from the instruction cache. In the event that the instruction fetch entries are for instructions that are unnecessary to the program, the pollution of the instruction cache with these unnecessary instructions can be mitigated.
Owner:ARM LTD

Cost-driven prefetching

Systems and techniques for cost-based prefetching are described. In one example, a processor includes a cache system having a hierarchy of one or more cache levels and an instruction prefetcher associated with a cache level of the cache system. The instruction prefetcher encodes fetch requests to a prefetcher table and determines a cost associated with each entry based on a memory level from where the instructions associated with the fetch requests were fetched. The instruction prefetcher evicts entries in the prefetcher table based on the cost associated with one or more corresponding fetch requests in response to adding new entries. The described techniques hide instruction fetch latency that a processor frontend experiences with workloads that have code working sets that do not fit in higher levels of the cache system.
Owner:ADVANCED MICRO DEVICES INC

Selective Insertion of Prefetched Data and Instructions

Systems and techniques for low-power prefetching are described. In one example, a processor includes a cache system having a hierarchy of one or more cache levels and a prefetcher associated with a cache level of the cache system. The prefetcher determines a memory level from which data or instructions associated with a prefetch request is retrieved. In response to the data or instructions being retrieved from a level three cache, a lower cache level, or system memory, the prefetcher stores the data or instructions associated with the prefetch request in a level two cache. The described techniques reduce cache pollution in the level one cache without introducing additional storage overhead.
Owner:ADVANCED MICRO DEVICES INC

Instruction cache and prefetch method thereof

The application provides an instruction cache and a prefetch method thereof. The instruction cache comprises a hit detection module, an instruction prefetch module and an operation module. The hit detection module checks whether a current instruction fetch request of a current thread bundle hits. The instruction prefetch module dynamically determines an instruction prefetch range corresponding to the current instruction fetch request according to an execution progress of the current thread bundle. The operation module accesses an external storage to prefetch instruction data corresponding to the instruction prefetch range. In response to the hit detection module determining that the current instruction fetch request hits, the operation module feeds back the instruction data corresponding to the current instruction fetch request to the current thread bundle. In response to the hit detection module determining that the current instruction fetch request does not hit, the operation module accesses the external storage to feed back the instruction data corresponding to the current instruction fetch request to the current thread bundle.
Owner:SHANGHAI BIREN TECH CO LTD

Universal processor instruction extraction device and method

The invention discloses a general processor instruction extraction device and method, and the device comprises an instruction extraction unit, an instruction decoding unit and an instruction distribution unit, and also comprises a branch prediction unit which comprises two stages of predictors, and each stage of predictor can predict a branch jump address and direction; the decoupling queue is connected with the branch prediction unit and the instruction extraction unit and is used for caching a predicted branch jump address; the instruction hardware prefetcher is coupled with the branch prediction unit and is used for retrieving an instruction prefetch table according to the predicted branch jump address, generating a prefetch request and storing a prefetch instruction into an instruction cache prefetch queue for the instruction extraction unit to extract; the micro-operation cache is arranged at the downstream of the instruction decoding unit and used for storing decoded instructions and corresponding resource conflict information, and the stored information can be directly extracted by the instruction distribution unit; according to the invention, the hardware resource overhead can be reduced and the instruction supply efficiency can be improved on the premise of ensuring the performance.
Owner:NANJING YINGQI INTELLIGENT TECH CO LTD

Instruction prefetching method and device, electronic equipment and computer readable storage medium

The invention discloses an instruction prefetching method, an instruction prefetching device, electronic equipment and a computer readable storage medium. The instruction prefetching method comprises the following steps: in response to an instruction reading request received from any instruction cache, determining whether to execute an instruction prefetching operation for the instruction reading request by a last-stage cache; if it is determined that the instruction prefetching operation is executed, the prefetching step length of the instruction prefetching operation is determined; and prefetching the instruction from the target memory and caching the instruction based on the prefetching step length. According to the method, the hit rate of the request from the instruction cache in the last-stage cache can be improved, and the performance loss caused by instruction missing is reduced.
Owner:SHANGHAI BIREN TECH CO LTD