Documentos de Académico
Documentos de Profesional
Documentos de Cultura
[MAR][PC]
[PC][PC]+1
[MDR][M([MAR])]
[IR][MDR]
CU[IR(opcode)]
The next stage is the decode-execute cycle where
the control unit takes the opcode from the instruction
register, and generates the control signals to control
the various parts of the CPU. The control unit is
responsible during the fetch cycle for moving the
contents of the PC to the MAR, executing a read
cycle, and moving the contents of the MDR to the IR.
Execution Examples
[MAR][IR(operand)]
The operand is transferred from the instruction register to
the MAR. The Control unit performs the read operation,
starting with buffering the contents stored in memory
location 4 in the MBR.
[MDR][M([MAR])]
The final operation is transferring the contents of the MBR
to A.
[A][MDR]
Once the execution stage as finished, the fetch-execute
cycle can being again. The cycle for the next
instruction can being.
Add 5
Add the contents of memory address 5 to the data
already stored in A.
[MAR][IR(operand)]
As in the previous example, the operand is transferred to
the MAR, and the contents of the memory location
pointed by the MAR are buffered in the MBR.
[MDR][M([MAR])]
At this point A and MBR store the data need for this
instruction. To perform the addition, a control signal is
set to the Arithmetic Logic Unit (ALU) where the
addition is performed.
In Parallel ALU[A]
ALU[MDR]
The two items of data are sent to the ALU and the result
of the addition is then transferred to the A.
[A]ALU
Summary
‘heart’ of the digital computer, responsible for reading a program’s
instruction from memory, executing it, and then control input’s and
output’s within the machine.
Fetch part of the fetch-execute in register-transfer language
– [MAR][PC]
– [PC][PC]+1
– [MDR][M([MAR])]
– [IR][MDR]
– CU[IR(opcode)]
The fetch part is the same for all instructions.
The execute part depends on the instruction fetched