Lec17 +Control+Implementation+III

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

EE204 Computer Architecture

Lecture 17- Control Unit Implemenetation


Handout # 4 on Mapping Control to Hardware is available on SLATE
1 Humaira, Spring 12 EE204-L17

Implementing a ROM based Control Unit


Control unit inputs
6 Opcode bits 4 Current State bits

Control unit outputs


16 Control signals 4 Next State bits

ROM 210 x 20 = 20Kbits


Very large, many locations have dont care

Humaira, Spring 12

EE204-L17

Implementing the Control signals using a smaller ROM continued..

Humaira, Spring 12

EE204-L17

Implementing the Control signals using a smaller ROM

Humaira, Spring 12

EE204-L17

Implementing the Next-State Control using a smaller ROM


Current State 0000 0001 0010 000000 R-format 0001 0110 xxxx 000010 jmp 0001 1001 xxxx 000100 beq 0001 1000 xxxx 100011 lw 0001 0010 0011 101011 sw 0001 0010 0101 xxxxxx 0001 Illegal Illegal

0011
0100 0101 0110

0100
0000 0000 0111

0100
0000 0000 0111

0100
0000 0000 0111

0100
0000 0000 0111

0100
0000 0000 0111

Illegal
Illegal Illegal Illegal

0111
1000 1001

0000
0000 0000
Humaira, Spring 12

0000
0000 0000

0000
0000 0000

0000
0000 0000

0000
0000 0000

Illegal
Illegal Illegal
EE204-L17

Implementing Controller using PLA

Humaira, Spring 12

EE204-L17

Implementing Next-State function with a Sequencer


Two ROM implementation 24 x 16 = 256 bits Control Signal ROM 210 x 4 = 4096 bits Next-State Ftn. ROM 94% of ROM corresponds to Next-State ftn. Increased instructions Increased states Increase in Next-State function ROM Counter Supplies next state address

Humaira, Spring 12

EE204-L17

Control Unit using a Next-State address counter


Control Unit Output Control Signals

PLA or ROM

AddrCtl 1

State Adder Address select logic

Opcode

Humaira, Spring 12

EE204-L17

Address Select Logic

Humaira, Spring 12

EE204-L17

You might also like