Early instruction-length pre-decode of variable-length instructions in a superscalar processor
Abstract
A superscalar processor can dispatch two instructions per clock cycle. The first instruction is decoded from instruction bytes in a large instruction buffer. A secondary instruction buffer is loaded with a copy of the first few bytes of the second instruction to be dispatched in a cycle. In the previous cycle this secondary instruction buffer is used to determine the length of the second instruction dispatched in that previous cycle. That second instruction's length is then used to extract the first bytes of the third instruction, and its length is also determined. The first bytes of the fourth instruction are then located. When both the first and the second instructions are dispatched, the secondary buffer is loaded with the bytes from the fourth instruction. If only the first instruction is dispatched, then the secondary buffer is loaded with the first bytes of the third instruction. Thus the secondary buffer is always loaded with the starting bytes of undispatched instructions. The starting bytes are found in the previous cycle. Once initialized, two instructions can be issued each cycle. Decoding of both the first and second instructions proceeds without delay since the sta
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 38.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A pipelined decoder for decoding instructions having a variable length, the pipelined decoder for decoding and dispatching at least two instructions in a cycle, the pipelined decoder comprising: a primary instruction decode buffer, receiving instructions from a memory, the primary instruction decode buffer having sufficient size to contain several instructions when the instructions have a smaller length, the instructions including in sequence a first instruction, a last instruction, a next instruction, and at least a portion of an after-next instruction; a primary decoder, receiving a first
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗