Related Concepts: 01 Arithmetic Circuits, Multipliers & Comparators | 03 Tree Networks (Cascading MUX, Decoders & DeMUX) | 04 Programmable Logic Devices (ROM & PLA)

5.02 Code Converters & Data Routing Implementations

MSI Component Architecture

Medium Scale Integration (MSI) components—such as Decoders, Multiplexers (MUX), and Demultiplexers (DeMUX)—drastically reduce hardware gate counts and wiring complexity by replacing custom SSI gate networks.


1. Core Data Routing Definitions

  • Decoder: Converts binary information from input lines to a maximum of unique output lines {generates all minterms internally}.
  • Multiplexer (MUX): Selects binary data from one of input lines and routes it to a single output controlled by select lines {Data Selector}.
  • Demultiplexer (DeMUX): Takes data from a single input line and routes it to one of output lines controlled by select lines {Data Distributor}.

2. Master Code Converter: 2,4,2,1 to 8,4,-2,-1

Major PYQ Problem (2017, 2019, 2020, 2023, 2024, 2025 - 14 Marks)

Question: Design a combinational circuit to convert a decimal digit from 2,4,2,1 code to 8,4,-2,-1 code.

Complete Conversion Truth Table:

DecimalInputs (2,4,2,1) Outputs (8,4,-2,-1) Weight Check
00 0 0 00 0 0 0
10 0 0 10 1 1 1
20 0 1 00 1 1 0
30 0 1 10 1 0 1
40 1 0 00 1 0 0
51 0 1 11 0 1 1
61 1 0 01 0 1 0
71 1 0 11 0 0 1
81 1 1 01 0 0 0
91 1 1 11 1 1 1
  • Don’t Care Conditions: Unused 2,4,2,1 binary combinations .

3. Implementing Full-Adder using 4x1 Multiplexers

Major PYQ Problem (2021 - 10 Marks)

Inputs: . Use two 4x1 MUXes (select lines ).

graph TD
    subgraph 4x1 MUX Full-Adder Implementation
        S1[Select S1 = X] & S0[Select S0 = Y] --> MUX_Sum[MUX 1: Sum S]
        S1 & S0 --> MUX_Carry[MUX 2: Carry Out C]
        
        Z[Input Z] -->|I0=Z, I1=Z', I2=Z', I3=Z| MUX_Sum
        Z -->|I0=0, I1=Z, I2=Z, I3=1| MUX_Carry
    end

4. Implementing Full-Adder using 3-to-8 Decoder

Major PYQ Problem (2019 - 7 Marks)

Inputs: connected to 3-to-8 decoder select lines.

  • Sum Output (): Connect decoder output pins 1, 2, 4, 7 to a 4-input OR gate .
  • Carry Output (): Connect decoder output pins 3, 5, 6, 7 to a second 4-input OR gate .

Past Year Questions (PYQs)

  • [PYQ 2018, 2019]: Define Decoder, MUX, DeMUX. (06 Marks)
  • [PYQ 2017, 2019, 2020, 2023, 2024, 2025]: 2,4,2,1 to 8,4,-2,-1 code converter. (14 Marks)
  • [PYQ 2021]: Full-Adder using two 4x1 MUXes. (10 Marks)
  • [PYQ 2019]: Full-Adder using 3-to-8 decoder and two OR gates. (07 Marks)