Sidan 1
Computer Engineering AddSub page 1
Basic Building Blocks
Multiplexer
+
Demultiplexer Adder
Computer Engineering AddSub page 2
The Program Counter
■ There is a special register inside the processor. ■ Big enough to hold an instruction address (32 bits). ■ Called the program counter (PC).
Computer Engineering AddSub page 3 Branch logic Sgn/Ze extend Zero ext. ALU A B 31 4 + + Computer Engineering AddSub page 4
Fetch - Execute
■ Fetch:
– Send the value in the PC to the instruction memory. – The instruction memory gives out one instruction.
■ Execute:
– Carry out the fetched instruction. – Also: PC := PC+4;
Fetch Execute ≅ 108 times per second
Computer Engineering AddSub page 5 Branch logic Sgn/Ze extend Zero ext. ALU A B 31 4 + + Computer Engineering AddSub page 6 Branch logic Sgn/Ze extend Zero ext. ALU A B 31 4 + +