Lecture 20

Lecture 20 - Th The University of Texas at Dallas Erik...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas The CPU Control Unit We now have a fairly good picture of the logic circuits in the CPU. Having “designed” the ALU or datapath so that it can perform the necessary instructions, we now have to do e same thing for the control unit which decodes the same thing for the control unit, which decodes instructions and provides direction to the CPU. The MIPS control unit decodes the six bits on either df t h3 2 iti t ti d th ti th d end of the 32-bit instruction word, that is, the op code and function code * fields, to determine each instruction sequence. 1 © N. B. Dodge 09/09 Lecture # 20: Control Unit Design and Multicycle Implementation * On R-R instructions.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas The Central Processor Unit (CPU) ALU ontrol Unit Registers In lecture 19, we covered processing elements (blue), l d i t h i t A L U d d t b Instruction Fetch/Decode Control Unit including the registers, ALU, and data buses. We now address the control unit circuitry (red). Instruction decoding. 2 © N. B. Dodge 09/09 Lecture # 20: Control Unit Design and Multicycle Implementation g Control signals to ALU and other control elements.
Background image of page 2
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas Functionality of Control Unit 00 0000 10 0000 0 1000 0 1001 0 1010 0 0000 Op. code Shift amt. t0 t1 t2 Fn. code The control unit determines ALU functions in each instruction and selects operands for the ALU. p $ $ $ Bit 0 Bit 31 p The operation code (the left six bits of the instruction) determines the type of operation and in some cases (such as jump instructions) the actual instruction itself. In the case of register-register instructions, the function de etermines the instruction (for example, in the R/R 3 © N. B. Dodge 09/09 Lecture # 20: Control Unit Design and Multicycle Implementation code determines the instruction (for example, in the R/R instruction above, the function code 0x 20 means “add”).
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas Functionality of Control Unit (2) As mentioned before, e control unit is a 10 0000 Bit 0 To function code decoder the control unit is a collection of decoders and multiplexers . 1010 0 0000 To shift amount decoder To dest. reg. decoder The decoded instruction fields tell 1) the ALU what 000 0 1001 01 To source 2 reg. decoder o source 1 reg decoder () e Uw function to perform, (2) what operands to se 00 0000 0 1 0 Bit 31 To operation code decoder To source 1 reg. decoder 4 © N. B. Dodge 09/09 Lecture # 20: Control Unit Design and Multicycle Implementation use.
Background image of page 4
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas Current Architecture The ALU control uses instruction bits 0-5 to obtain information about the ALU operation in register-to- register instructions.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 40

Lecture 20 - Th The University of Texas at Dallas Erik...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online