发明名称 Method and apparatus for sequencing and decoding variable length instructions with an instruction boundary marker within each instruction
摘要 An apparatus and method are shown for decoding variable length instructions in a processor where a line of variable length instructions from an instruction cache are loaded into an instruction buffer and the start bits indicating the instruction boundaries of the instructions in the line of variable length instructions is loaded into a start bit buffer. A first shift register is loaded with the start bits and shifted in response to a lower program count value which is also used to shift the instruction buffer. A length of a current instruction is obtained by detecting the position of the next instruction boundary in the start bits in the first register. The length of the current instruction is added to the current value of the lower program count value in order to obtain a next sequential value for the lower program count which is loaded into a lower program count register. An upper program count value is determined by loading a second shift register with the start bits, shifting the start bits in response to the lower program count value and detecting when only one instruction remains in the instruction buffer. When one instruction remains, the upper program count value is incremented and loaded into an upper program count register for output to the instruction cache in order to cause a fetch of another line of instructions and a '0' value is loaded into the lower program count register. Another embodiment of the present invention includes multiplexors for loading a branch address into the upper and lower program count registers in response to a branch control signal.
申请公布号 US5881260(A) 申请公布日期 1999.03.09
申请号 US19980020474 申请日期 1998.02.09
申请人 HEWLETT-PACKARD COMPANY 发明人 RAJE, PRASAD A.;SIU, STUART C.
分类号 G06F9/30;G06F9/318;G06F9/38;(IPC1-7):G06F9/38;G06F9/00 主分类号 G06F9/30
代理机构 代理人
主权项
地址