Instruction Register

In computing, an instruction register (IR) is the part of a CPU's control unit that stores the instruction currently being executed or decoded. In simple processors each instruction to be executed is loaded into the instruction register which holds it while it is decoded, prepared and ultimately executed, which can take several steps.

Some of the complicated processors use a pipeline of instruction registers where each stage of the pipeline does part of the decoding, preparation or execution and then passes it to the next stage for its step. Modern processors can even do some of the steps out of order as decoding on several instructions is done in parallel.

Decoding the opcode in the instruction register includes determining the instruction, determining where its operands are in memory, retrieving the operands from memory, allocating processor resources to execute the command (in superscalar processors), etc.

The output of IR is available to control circuits which generate the timing signals that controls the various processing elements involved in executing the instruction.

Famous quotes containing the words instruction and/or register:

    “One year, I’d completely lost my bearings trying to follow potty training instruction from a psychiatric expert. I was stuck on step on, which stated without an atom of irony: “Before you begin, remove all stubbornness from the child.” . . . I knew it only could have been written by someone whose suit coat was still spotless at the end of the day, not someone who had any hands-on experience with an actual two-year-old.”
    —Mary Kay Blakely (20th century)

    “In 1872 I received a request like this and I did register and vote, for which I was arrested, convicted and fined $100. Excuse me if I decline to repeat the experience.”
    —Susan B. Anthony (1820–1906)