Búsqueda Imágenes Maps Play YouTube Noticias Gmail Drive Más »
Búsqueda avanzada de patentes | Imágenes de página | Historial web | Iniciar sesión

Patentes

  

United States Patent H9j

Guenthner et al.

[li] Patent Number: 4,594,659 [45] Date of Patent: Jun. 10, 1986

[54] METHOD AND APPARATUS FOR

PREFETCHING INSTRUCTIONS FOR A
CENTRAL EXECUTION PIPELINE UNIT

[75] Inventors: Russell W. Guenthner, Glendale;

William A. Shelly, Phoenix, both of
Ariz.; Gary R. Presley-Nelson, San
Francisco, Calif.; Kala J. Marietta,
Phoenix, Ariz.; R. Morse Wade,
Sunnyvale, Calif.

[73] Assignee: Honeywell Information Systems Inc., Phoenix, Ariz.

[21] Appl. No.: 434,197

[22] Filed: Oct. 13, 1982

[51] Int. CI/ G06F9/28

[52] U.S. CI. 364/200

[58] Field of Search 364/200, 900

[56] References Cited

U.S. PATENT DOCUMENTS

4,208,716 6/1980 Porter et al 364/200

4,325,120 4/1982 Colley et al 364/200

4,332,010 5/1982 Messina et al 364/200

4,399,507 8/1983 Cosgrove et al 364/200

4,521,851 6/1985 Trubisky et al 364/200

4,530,052 7/1985 King et al 364/200

Primary Examiner—Gareth D. Shaw

Assistant Examiner—Daniel K. Dorsey

Attorney, Agent, or Firm—A. A. Sapelli; J. S. Solakian;

A. Medved

[57] ABSTRACT

Method and apparatus for prefetching instructions for a pipelined central processor unit for a general purpose

digital data processing system. A table is maintained for purposes of predicting the target addresses of transfer and indirect instructions based on past history of the execution of those instructions. The prefetch mechanism forms instruction addresses and fetches instructions in parallel with the execution of previously fetched instructions by a central execution pipeline unit of the central processor unit. As instructions are prefetched, the transfer and indirect prediction (TIP) table is checked to determine the past history of those instructions. If no transfers or indirects are found, the prefetch proceeds sequentially. If transfer or indirect instructions are found, then the prefetch uses information in the TIP table to begin fetching the target instruction^).

The purpose of the prediction of target addresses is so that in the usual case instructions following a transfer can be executed at a rate of one instruction per pipeline cycle regardless of the pipeline depth or the frequency of transfers. Instructions are fetched two words at a time in order that the instruction fetch unit can stay ahead of the central execution pipeline. An instruction stack is provided for purposes of buffering double words of instructions fetched by the instruction fetch unit while waiting for execution by the central execution pipeline unit. The TIP table is updated based upon the actual execution of instructions by the central execution pipeline unit, and the correctness of the TIP table predictions is checked during execution of every instruction.

20 Claims, 11 Drawing Figures

[graphic]
[merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][table][merged small][merged small][merged small][subsumed][graphic][merged small][merged small][merged small][merged small][merged small][merged small][merged small][table][merged small][merged small][merged small]
[merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][merged small][table][merged small][merged small][merged small][graphic]
[merged small][table]
« AnteriorContinuar »