2081 12

CSC213 ยท 2081 ยท 5 marks

Write short notes on: a) CISC b) Conditional branch

Write short notes on: a) CISC b) Conditional branch [5]

Computer ArchitectureChapter 5: Central Processing UnitRISC vs CISC

Quick answer

CISC is a processor design philosophy where the CPU is capable of executing a large number of complex instructions, each of which can perform multiple low-level operations (such as memory access, arithmetic, and logic) in a single instruction.

Short Notes: a) CISC b) Conditional Branch


a) CISC (Complex Instruction Set Computer)

Key Characteristics of CISC:

FeatureDescription
Instruction SetLarge and complex set of instructions
Instruction LengthVariable length instructions
Addressing ModesMany addressing modes supported
Memory AccessInstructions can directly access memory
HardwareComplex hardware with microprogram control unit
ExecutionSingle instruction may take multiple clock cycles

Key Points:

  • CISC emphasizes doing more work per instruction, reducing the number of instructions per program.
  • It uses microprogrammed control to implement complex instructions.
  • Examples: Intel x86, Intel 8086, VAX processors.
  • The compiler work is reduced since complex operations are handled directly by hardware.
  • CISC processors typically have a large control memory to store microinstructions for each complex instruction.

b) Conditional Branch

Conditional branch is a type of branching mechanism in which the transfer of control to a new address depends on the status (condition) of one or more status bits (flags) at the time of execution.

Definition:

Conditional branching is obtained by using part of a micro-instruction to select a specific status bit in order to determine its condition. The branch logic provides decision-making capabilities in the control unit.

How It Works:

  • A portion of the micro-instruction specifies which status bit to test (e.g., zero flag, carry flag, sign flag).
  • If the condition is TRUE -- the branch is taken and the program jumps to the specified address.
  • If the condition is FALSE -- execution continues sequentially (next instruction).

Block Diagram (Conceptual):

Control Memory
      |
      v
[Micro-instruction] --> [Branch Logic] <-- [Status Bits (flags)]
                               |
                    ---------------------
                    |                   |
              Condition TRUE      Condition FALSE
                    |                   |
             Branch Address      Next Sequential Address

Methods of Selecting Next Microinstruction Address:

The following methods are used:

  1. Incrementing of the control address register (sequential execution).
  2. Unconditional branch or conditional branch depending on status bit conditions.
  3. A mapping process from instruction bits to a control memory address.
  4. A facility for subroutine call and return.

Example:

  • In a basic computer, instructions like ISZ (Increment and Skip if Zero) use conditional branching:
    • After incrementing, if DR = 0, then PC is incremented by 1 (branch/skip).
    • Otherwise, execution continues normally.

Difference: Conditional vs Unconditional Branch

FeatureConditional BranchUnconditional Branch (BUN)
ConditionDepends on status bitAlways branches
FlexibilityMore flexibleFixed transfer
UseDecision making (if-else, loops)Simple jump

Significance:

Conditional branching is essential for implementing loops, if-else decisions, and program flow control in both high-level programs and microprogram control units.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.