COA · Lecture notes · Unit 4

Microprogrammed Control

Unit-4 Microprogrammed Control

Looping

Outline

Control Memory

Address Sequencing

Microinstruction Code Format

Questions asked in exam

Control Memory

  • Section - 1

Microprogrammed Control Organization

  • Next-address generator (Sequencer)
  • Control address register
  • Control memory
  • (ROM)
  • Control
  • data
  • register
  • Next-address information
  • Control
  • word
  • External
  • input

Control Memory

  • A computer that employs a microprogrammed control unit will have two separate memories: a main memory and a control memory.
  • The control memory holds a fixed microprogram that can not be altered by the occasional user.
  • The microprogram consists of microinstructions that specify various internal control signals for execution of register microoperation.
  • Microinstructions generates the microoperations to fetch instruction from main memory; to evaluate the effective address, to execute the operation specified by the instruction, and to return control to the fetch of next instruction.

Address Sequencing

  • Section - 2

Address Sequencing (cont.)

  • Microinstructions are stored in control memory in groups, with each group specifying a routine.
  • The transformation from the instruction code bits to an address in control memory where the routine is located is referred to as a mapping process.
  • The address sequencing capabilities required in a control memory are:
    • Incrementing of the control address register.
    • Unconditional branch or conditional branch, depending on status bit conditions.
    • A mapping process from the bits of the instruction to an address for control memory.
    • A facility for subroutine call and return.

Address Sequencing (cont.)

  • Instruction code
  • Mapping
  • logic
  • Multiplexer
  • Control address register
  • (CAR)
  • Control memory
  • Branch
  • logic
  • Subroutine
  • register
  • (SBR)
  • Incrementer
  • Mux
  • select
  • Status
  • bits
  • Clock
  • Select a status bit
  • Branch address
  • Microoperations

Micro instruction Code Format

  • Section - 3

Microinstruction Code Format

  • F1, F2, F3: Microoperation fields
  • CD: Condition for branching
  • BR: Branch field
  • AD: Address field

F1

F2

F3

CD

BR

AD

Symbols & Binary Code for Microinstruction Fields

F1MicrooperationSymbol
000NoneNOP
001AC AC + DRADD
010AC 0CLRAC
011AC AC + 1INCAC
100AC DRDRTAC
101AR DR(0-10)DRTAR
110AR PCPCTAR
111M[AR] DRWRITE
F2MicrooperationSymbol
000NoneNOP
001AC AC - DRSUB
010AC AC DROR
011AC AC DRAND
100DR M[AR]READ
101DR ACACTDR
110DR DR + 1INCDR
111DR(0-10) PCPCTDR

Symbols & Binary Code for Microinstruction Fields (cont.)

F3MicrooperationSymbol
000NoneNOP
001AC AC + DRXOR
010AC AC’COM
011AC shl ACSHL
100AC shr ACSHR
101PC PC + 1INCPC
110PC ARARTPC
111Reserved
CDSymbolComments
00U - 1Unconditional branch
01I - DR(15)Indirect address bit
10S - AC(15)Sign bit of AC
11Z - AC = 0Zero value in AC
BRSymbolFunction
00JMPCAR AD if condition = 1, CAR CAR+1 if condition = 0
01CALLCAR AD, SBR CAR+1 if condition=1, CAR CAR+1 if condition=0
10RETCAR SBR (Return from subroutine)
11MAPCAR(2-5) DR(11-14), CAR(0,1,6) 0