Skip to main content

DEMUX applications; 010 − 011 by 2's complement

Short answer

A demux routes one data line to a selected output, enabling data distribution, serial-to-parallel conversion, and decoder operation. Subtracting 011 from 010: 2's complement of 011 is 101; adding 010+101=111 with no end carry indicates negative result; its magnitude from 2's complement is 001, so answer -1.

Explain the applications of de-multiplexer. Subtract 011 from 010 using 2's complement method.

Applications of a demultiplexer

A demultiplexer sends one input to one of many outputs selected by the select lines. Uses:

  • Data distribution / serial-to-parallel conversion: serial data on one line is sent to different output lines in turn.
  • Time-division demultiplexing in communication: separating signals from a shared line at the receiver (e.g. telephone exchanges).
  • Decoder function: with data input held at 1 (or used as enable), a 1:2n2^n DEMUX works as an nn-to-2n2^n decoder for memory address decoding and chip selection.
  • Boolean function generation: outputs give minterms, which can be ORed to realize functions (e.g. full adder).
  • Control signal routing in ALUs, microprocessors and multi-display systems.

(010)₂ − (011)₂ using 2's complement

Here 010=2010 = 2 and 011=3011 = 3; expected result 2−3=−12 - 3 = -1.

  1. 2's complement of the subtrahend 011011:
    • 1's complement: 100100
    • add 1: 100+1=101100 + 1 = 101
  2. Add to the minuend:
     010    (+2)
   + 101    (2's complement of 3)
   -----
     111    (no end carry)
  1. There is no end carry, so the result is negative and is in 2's complement form. Take the 2's complement of 111111 to get its magnitude:
    • 1's complement: 000000
    • add 1: 001001

Answer: (010)2−(011)2=−(001)2=(−1)10(010)_2 - (011)_2 = -(001)_2 = (-1)_{10}. In 3-bit 2's complement form the result is stored as 111111.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 4 questions →