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]
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 Level | Positive Logic | Negative Logic |
|---|---|---|
| High (H) | 1 | 0 |
| Low (L) | 0 | 1 |
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:
| Feature | Description |
|---|---|
| Power Consumption | Very low (static power near zero) |
| Noise Margin | High |
| Fan-out | High |
| Speed | Moderate to high |
| Integration | Very 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:
| Feature | Detail |
|---|---|
| Bit Length | 8 bits per character |
| Total Characters | 2^8 = 256 possible characters |
| Developed by | IBM |
| Used in | IBM 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:
| Character | EBCDIC Code (Hex) | EBCDIC Code (Binary) |
|---|---|---|
| A | C1 | 1100 0001 |
| B | C2 | 1100 0010 |
| 0 | F0 | 1111 0000 |
| 1 | F1 | 1111 0001 |
Comparison with ASCII:
| Feature | ASCII | EBCDIC |
|---|---|---|
| Bits | 7/8 bits | 8 bits |
| Developer | ANSI | IBM |
| Usage | Universal (PCs, Internet) | IBM mainframes |
| Characters | 128/256 | 256 |
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.