控制器

本文主要介绍了控制器的分类及应用。例如:交通标志状态图、交通标志真值表,通过这些图例来学习控制器的主要内容。然后学习了数据路径控制器的基本组成。我们可以将正在转换的数据从控制转换的状态机中分离出来。通过应用实例了解学习从逻辑到计算机数据路径的方法。
展开查看详情

1.Chapter 3 Digital Logic Structures

2.3- 2 Complete Example A blinking traffic sign No lights on 1 & 2 on 1, 2, 3, & 4 on 1, 2, 3, 4, & 5 on (repeat as long as switch is turned on) DANGER MOVE RIGHT 1 2 3 4 5

3.3- 3 Traffic Sign State Diagram State bit S 1 State bit S 0 Switch on Switch off Outputs Transition on each clock cycle.

4.3- 4 Traffic Sign Truth Tables Outputs (depend only on state: S 1 S 0 ) S 1 S 0 Z Y X 0 0 0 0 0 0 1 1 0 0 1 0 1 1 0 1 1 1 1 1 Lights 1 and 2 Lights 3 and 4 Light 5 Next State: S 1 ’S 0 ’ (depend on state and input) In S 1 S 0 S 1 ’ S 0 ’ 0 X X 0 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 1 1 1 1 0 0 Switch Whenever In=0, next state is 00.

5.3- 5 Traffic Sign Logic Master-slave flipflop

6.3- 5 Traffic Sign Logic Master-slave flipflop

7.Controller + Data Path Example (1) 3- 7

8.Controller + Data Path Example (2) 3- 8

9.3- 9 From Logic to Computer Data Path The data path of a computer is all the logic used to process information. See the data path of the LC-3 on next slide. Combinational Logic Decoders -- convert instructions into control signals, access memory Multiplexers – select inputs and outputs ALU (Arithmetic and Logic Unit) – performs operations on data Sequential Logic State machine -- coordinate control signals and data movement Registers and latches -- storage elements

10.3- 10 LC-3 Data Path