2 functions of various registers the execution of an

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 6. Input/Output Register (I/O). This register is used to communicate with the input/output devices. All input information such as instructions and data are transferred to this register by an input device. Similarly, all output information to be transferred to an output device is found in this register. Figure 7.2 summarizes the functions of each of these registers. SI. Name of Register Function No. 1 Memory Address (MAR) Holds the address of the active memory location 2 Memory Buffer (MBR) Holds information on its way to and from memory 3 Program Control (PC) Holds the address of the next instruction to be executed 4 Accumulator (A) Accumulates results and data to be operated upon 5 Instruction (I) Holds an instruction while it is being executed 6 Input/Output (I/O) Communicates with the I/O devices Figure 7.2. Functions of various registers. The execution of an instruction by the CPU during program execution normally involves the following steps: 1. The control unit takes the address of the next program instruction to be executed from the program control register and reads the instruction from the corresponding memory address into the instruction register of the control unit. 2. The control unit then sends the operation part and the address part of the instruction to the decoder and the memory address register respectively. 3. The decoder interprets the instruction and accordingly the control unit sends signals to the appropriate unit that needs to be involved in carrying out the task specified in the instruction. For example, if it is an arithmetic or logic operation, the signal is sent to the ALU. In this case the control unit also ensures that the data corresponding to the address part of the instruction is loaded in a suitable register in the ALU before the signal is sent to the ALU. The ALU performs the necessary operation on the data and signals the control unit as soon as it has finished. 4. As each instruction is executed, the address of the next instruction to be executed automatically gets loaded into the program control register, and steps 1 to 4 get repeated. Processor Speed The operations of the ALU and t...
View Full Document

Ask a homework question - tutors are online