2 Boolean Algebra And Logic Gates

Digital Logic · Unit 2 · 5 hrs

Boolean algebra and Logic Gates

Exam-focused notes for Boolean algebra and Logic Gates (Digital Logic, CSC116): what the TU syllabus asks and how it has actually been tested, with 4 solved past questions from this unit.

Boolean algebra and Logic Gates in short

This chapter develops the algebra that digital circuits are built on: the postulates and theorems of Boolean algebra, how a Boolean function is defined and put into standard form, the operations and physical gates that realize it, and the integrated circuit technology used to manufacture those gates.

Boolean algebra and Logic Gates: notes

Basic and Axiomatic definitions of Boolean algebra

Boolean algebra, named after the English mathematician George Boole, is the branch of algebra used to simplify logical statements and solve logical problems. Formally, it is defined by a set of elements $S$, one or more binary operators defined on that set, and a list of postulates that are assumed true without proof, from which every other rule of the system is derived.

A binary operator defined on $S$ takes two elements of $S$ and produces a result that also belongs to $S$; for example, if $C = a * b$ for every $a, b \in S$, then $*$ is a binary operator on $S$. The postulates that define a Boolean algebra are:

  • Closure: for every $a, b \in S$, both $a+b$ and $a \cdot b$ belong to $S$.
  • Existence of identity elements: there exist unique elements $0$ and $1$ in $S$ such that $a + 0 = a$ and $a \cdot 1 = a$ for every $a \in S$.
  • Commutative law: for every $a, b \in S$, $a+b=b+a$ and $a \cdot b = b \cdot a$.
  • Distributive law: for all $a,b,c \in S$, $a \cdot (b+c) = (a \cdot b)+(a \cdot c)$ and $a+(b \cdot c) = (a+b) \cdot (a+c)$.
  • Complement (inverse): for every $a \in S$ there exists $\overline{a} \in S$ such that $a + \overline{a} = 1$ and $a \cdot \overline{a} = 0$.
  • At least two elements: $S$ contains at least two elements $a, b$ such that $a \neq b$.

Basic Theorems and properties of Boolean Algebra

From these postulates a set of standard theorems can be derived, each stated for a single variable $x$ and its dual for $y, z$:

  1. Idempotent law: $x+x=x$ and $x \cdot x = x$.
  2. Identity with constants: $x+1=1$ and $x \cdot 0 = 0$.
  3. Involution: $\overline{\overline{x}} = x$.
  4. Associative law: $x+(y+z) = (x+y)+z$ and $x(yz)=(xy)z$.
  5. De Morgan's theorem: $\overline{x+y} = \overline{x},\overline{y}$ and $\overline{xy} = \overline{x}+\overline{y}$.
  6. Absorption: $x+xy=x$ and $x(x+y)=x$.

The principle of duality states that every algebraic expression obtained from the postulates of Boolean algebra remains valid if the operators + and $\cdot$ are interchanged and the identity elements 0 and 1 are interchanged throughout. This is why each theorem above appears in AND/OR pairs, and it means only one form of a proof needs to be worked out, the dual following automatically.

What this unit covers

  • Basic and Axiomatic definitions of Boolean algebra
  • Basic Theorems and properties of Boolean Algebra
  • Boolean Functions
  • Logic Operations
  • Logic Gates
  • Integrated Circuits

Boolean Functions

2079 · 5 marks

Express F′=(x+y+z)′F' = (x + y + z)'F′=(x+y+z)′ as a sum of min-terms. [5]

  • Function: $F' = (x + y + z)'$ - Variables: $x, y, z$ (3 variables, so $2^3 = 8$ possible combinations) Evaluate $F = (x + y + z)$ and its complement $F' = (x+y+z)'$ for all 8 rows. The sum $(x+y+z) = 0$ only when all variables are 0; otherwise it is 1. Decimal x y z F = (x+y+z) F′ = (x+y+z)′ --...
Open this answer on its own page →

2075 · 5 marks

Express the Boolean function F = A+B'C in a sum of minterms. [5]

  • Boolean function: $F = A + B'C$ - Variables: $A, B, C$ (3 variables, so $2^3 = 8$ possible minterms) --- $$A = A(B+B')(C+C') = (AB + AB')(C+C')$$ $$= ABC + ABC' + AB'C + AB'C'$$ $$B'C = B'C(A+A') = AB'C + A'B'C$$ $$F = ABC + ABC' + AB'C + AB'C' + AB'C + A'B'C$$ The term $AB'C$ appears twice, so...
Open this answer on its own page →

Integrated Circuits

2079 · 5 marks

Write short notes on (Any two): a. Positive Logic b. I2L c. ASCII [5]

Show solved answer

Short Notes (Any Two): a. Positive Logic and c. ASCII


a. Positive Logic

Positive Logic is a convention used in digital systems to assign binary logic values (0 and 1) to the two voltage levels present in a circuit.

Definition:

In positive logic, the higher voltage level is assigned the logic value 1 (HIGH) and the lower voltage level is assigned the logic value 0 (LOW).

Voltage LevelLogic Value
High Voltage (e.g., +5V)Logic 1
Low Voltage (e.g., 0V)Logic 0

Key Points:

  • It is the most commonly used logic convention in digital circuits and computers.
  • Logic gates (AND, OR, NOT, etc.) are designed and analyzed based on this convention.
  • The opposite convention is called Negative Logic, where the lower voltage level represents logic 1 and the higher voltage level represents logic 0.
  • The same physical circuit can perform different logical operations depending on whether positive or negative logic convention is applied.

Example:

  • In a TTL (Transistor-Transistor Logic) circuit, +5V = Logic 1 and 0V = Logic 0 under positive logic convention.

c. ASCII

ASCII stands for American Standard Code for Information Interchange.

Definition:

ASCII is a standard character encoding scheme used to represent text and control characters in computers and communication devices using binary numbers.

Key Features (from notes):

  • ASCII uses a 7-bit code, consisting of:
    • 3 zone bits (higher order bits)
    • 4 numeric bits (lower order bits)
  • Total possible combinations: 2^7 = 128 characters

Character Representation:

CategoryNumber of Characters
Alphabets (uppercase A-Z and lowercase a-z)62
Numerals (0-9)10
Special Characters66

Example:

CharacterASCII (Decimal)ASCII (Binary)
A65100 0001
a97110 0001
048011 0000

Additional Notes:

  • ASCII is considered an improvement over the BCD code as it can represent a much wider range of characters.
  • It is widely used in data communication, keyboards, and text files.
  • An extended version (ASCII-8) uses 8 bits, allowing 256 characters, which includes additional special and graphical symbols.
  • Another extended code, EBCDIC (Extended Binary Coded Decimal Interchange Code), is used mainly in IBM mainframe computers.

Open this answer on its own page →

2077 · 5 marks

Where is CMOS suitable to use? Define Power dissipation. Show that the positive logic NAND gate is a negative logic NOR gate and vice versa. [5]

--- CMOS (Complementary Metal-Oxide-Semiconductor) is suitable in the following situations: - Battery-operated and portable devices (calculators, watches, mobile devices) because of its extremely low static power consumption - VLSI and ULSI circuits where high packing density is required - System...

Open this answer on its own page →