×

Method and apparatus for counting remaining loop instructions and pipelining the next instruction

  • US 5,898,866 A
  • Filed: 01/13/1994
  • Issued: 04/27/1999
  • Est. Priority Date: 12/21/1988
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer system for executing a program loop a plurality of iterations, said program loop comprising one or more program instructions, said system comprising:

  • a first register for storing an address of one of said program instructions at a beginning of said loop;

    a second register for storing an integer representing a number of iterations that said program loop has yet to be executed;

    a third register for storing an integer representing a number of program instructions yet to be executed in a current iteration of said program loop; and

    computer hardware means,responsive to each program instruction within said program loop, for executing said each program instruction and decrementing said third register, responsive to completion of each iteration of said program loop, for decrementing said second register, and if said second register indicates that at least one more iteration is required, for continuing program execution with the program instruction whose address is stored in said first register, whereby no branch program instruction is required in said program loop, and if said second register indicates that all program iterations have been completed, for continuing program execution after said program loop, andresponsive to a value in said second register indicating a last iteration of said program loop and a value in said third register indicating that a predetermined integer greater than zero of program instructions remain to be executed in a last iteration of said program loop, for prefetching a next instruction to follow completion of a last program instruction in the last iteration of said program loop.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×