You are on page 1of 37

Functions of the Control Unit

Functions of the Control Unit

Control Unit Implementation

Control Unit Implementation

Control Unit Implementation

Single-cycle Implementation

10

Multi-cycle Implementation

11

Multi-cycle Implementation

12

Multi-cycle Datapath

13

Multi-cycle Implementation

14

Multi-cycle Implementation

15

Multi-cycle Datapath with control unit

16

Read Instruction

Get Register Values

Get Offset for Load/Store

10

Perform ALU Function

11

Store Result in Memory

12

Read Memory

13

Store Result in Register

14

Get Offset for Branch

15

Jump to Address

16

17

Multi-cycle Implementation

18

19

20

21

22

In state 6, ALUSelA=1 and ALUSelB=00 causing the two registers rs and rt to be used as operands by the ALU. ALUOp=10 causes the operation to be selected by the function field of the instruction.

In state 7, RegDst=1 causes the register rd to be written (RegWrite=1) with the result from the ALU (MemtoReg=0).

23

24

25

26

27

This is referred to as a hardwired implementation. 28

You might also like