Status register and Shift register Design
Status registerRelative magnitude of two numbers may be determined by subtracting one from the other.Also called as flag bits or condition code bitsStatus BitsC – CarryS – Sign bitZ – zero bitV – Overflow bit
Status register
Status registerC – Carry bitSet if the output carry of ALU is 1S – Sign bitSet if the highest order bit is 1Z – Zero bitSet if the ALU’s output contains all zerosV -  Overflow bitSet if there is any overflow. For a 8bit ALU, V is set if the result is greater than 127 and less than -128
(A-B) of unsigned numbers	A and B are unsigned numbers
SHIFTER
Shifter
Status register

Status register

  • 1.
    Status register andShift register Design
  • 2.
    Status registerRelative magnitudeof two numbers may be determined by subtracting one from the other.Also called as flag bits or condition code bitsStatus BitsC – CarryS – Sign bitZ – zero bitV – Overflow bit
  • 3.
  • 4.
    Status registerC –Carry bitSet if the output carry of ALU is 1S – Sign bitSet if the highest order bit is 1Z – Zero bitSet if the ALU’s output contains all zerosV - Overflow bitSet if there is any overflow. For a 8bit ALU, V is set if the result is greater than 127 and less than -128
  • 5.
    (A-B) of unsignednumbers A and B are unsigned numbers
  • 6.
  • 7.