2078 12

CSC116 ยท 2078 ยท 5 marks

Write short notes on (Any Two): Negative Logic, CMOS, EBCDIC

Write short notes on (Any Two): Negative Logic, CMOS, EBCDIC [5]

Digital LogicChapter 1: Binary SystemsBinary logic

Short Notes (Any Two): Negative Logic, CMOS, EBCDIC


1. Negative Logic

Definition: In digital systems, logic levels are represented by two voltage levels. The assignment of these voltage levels to logic 0 and logic 1 defines the logic convention used.

  • In Positive Logic: The higher voltage level represents logic 1 and the lower voltage level represents logic 0.
  • In Negative Logic: The lower voltage level represents logic 1 and the higher voltage level represents logic 0.

Key Points:

Voltage LevelPositive LogicNegative Logic
High (H)10
Low (L)01

Effect on Gates:

  • A gate that functions as an AND gate in positive logic behaves as an OR gate in negative logic, and vice versa.
  • This is a direct consequence of De Morgan's theorem.

Example:

  • A positive logic AND gate with inputs A, B and output F:
    • F = A ยท B (positive logic)
    • The same physical gate in negative logic performs: F = A + B (OR operation)

Significance:

  • The choice of logic convention does not change the physical hardware; it only changes the interpretation of the signals.
  • Negative logic is sometimes used to simplify circuit design or to match the active-low nature of certain hardware signals.

2. CMOS (Complementary Metal Oxide Semiconductor)

Definition: CMOS is a widely used technology for constructing integrated circuits. It uses a complementary pair of p-type (PMOS) and n-type (NMOS) Metal Oxide Semiconductor Field Effect Transistors (MOSFETs) to implement logic functions.

Basic Structure:

  • Every CMOS gate consists of two networks:
    • Pull-Up Network (PUN): Made of PMOS transistors, connects output to V_DD (logic 1) when active.
    • Pull-Down Network (PDN): Made of NMOS transistors, connects output to GND (logic 0) when active.
  • PUN and PDN are always complementary -- when one conducts, the other does not.

CMOS Inverter (NOT Gate):

        VDD
         |
       [PMOS]  <-- Gate Input A
         |
         +----> Output F = A'
         |
       [NMOS]  <-- Gate Input A
         |
        GND
  • When A = 1: NMOS ON, PMOS OFF โ†’ Output = 0
  • When A = 0: NMOS OFF, PMOS ON โ†’ Output = 1

Characteristics of CMOS:

FeatureDescription
Power ConsumptionVery low (static power near zero)
Noise MarginHigh
Fan-outHigh
SpeedModerate to high
IntegrationVery high density possible

Advantages:

  • Very low power dissipation -- power is consumed only during switching transitions.
  • High noise immunity.
  • Operates over a wide range of supply voltages (typically 3V to 15V).
  • Suitable for VLSI design due to high packing density.

Applications:

  • Microprocessors, memory chips (RAM, ROM), digital logic circuits, mobile devices.

3. EBCDIC (Extended Binary Coded Decimal Interchange Code)

Definition: EBCDIC is an 8-bit character encoding standard developed by IBM for use in its mainframe and midrange computer systems. The name stands for Extended Binary Coded Decimal Interchange Code.

Key Features:

FeatureDetail
Bit Length8 bits per character
Total Characters2^8 = 256 possible characters
Developed byIBM
Used inIBM mainframes, AS/400 systems

Structure:

  • The 8 bits are divided into:
    • 4 zone bits (higher order bits)
    • 4 numeric bits (lower order bits)
  • This is an extension of the older 6-bit BCD (Binary Coded Decimal) code.

Example of EBCDIC Codes:

CharacterEBCDIC Code (Hex)EBCDIC Code (Binary)
AC11100 0001
BC21100 0010
0F01111 0000
1F11111 0001

Comparison with ASCII:

FeatureASCIIEBCDIC
Bits7/8 bits8 bits
DeveloperANSIIBM
UsageUniversal (PCs, Internet)IBM mainframes
Characters128/256256

Significance:

  • EBCDIC was one of the earliest standardized character encoding systems.
  • It is not compatible with ASCII, which often requires conversion when transferring data between IBM mainframes and other systems.
  • Despite being largely replaced by ASCII and Unicode in modern systems, EBCDIC is still used in legacy IBM mainframe environments.

Note: Two of the above three topics are to be answered as per the question requirement (Any Two). All three are provided here for completeness.

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