140 likes | 160 Views
William Stallings Computer Organization and Architecture 6 th Edition. Chapter 17 Microprogrammed Control. Structure - The Control Unit. Control Unit. CPU. Sequencing Logic. ALU. Control Unit. Internal Bus. Control Unit Registers and Decoders. Registers. Control Memory.
E N D
William Stallings Computer Organization and Architecture6th Edition Chapter 17 Microprogrammed Control
Structure - The Control Unit Control Unit CPU Sequencing Logic ALU Control Unit Internal Bus Control Unit Registers and Decoders Registers Control Memory
Microinstruction Table 16.1
Microinstructions • Each micro-operation is described in symbolic notation • A notation that describes a set of micro-operations occurring at one time is called a microinstruction • A sequence of microinstructions is a microprogram, or firmware • A microprogram is midway between hardware and software
Using Microprogramming in Control Unit • Each control line from the control unit can be represented by a binary bit • All the control lines construct a control word • Each micro-operation can be represented by a different control word • Put a sequence of control words into a memory, give each word an unique address, and a way to determine the address of next control word to be executed
Execute a Microinstruction • To execute a microinstruction, turn on all the control lines indicated by a 1 bit • Cause one or more micro-operations to be performed • If the condition bit is false, execute the next microinstruction in sequence • If the condition bit is true, the next microinstruction to be executed is indicated in the address field
Organization of Control Memory Fetch cycle routine Indirect cycle routine Interrupt cycle routine Execute cycle routine ADD routine • • • • • •
Key Elements of Control Unit • Control memory • Store microinstructions • Registers • Control address register • Control buffer register • Sequencing logic • Loads control address register • Issues READ command to control memory
Fig 17.4 Functioning of Microprogrammed Control Unit
Adv. and Disadv. of Mircoprogramming • Advantage • Simplifies the design of the control unit • Cheaper • More reliable • Disadvantage • Slower • Micropragrammed control unit is used in CISC processors • Hardwired implementation is used in RISC processors