Unit summary

  • Digital signals use a small set of levels, usually two, which represent 0 and 1; digital logic and computers are built on them.
  • The Von Neumann architecture keeps instructions and data in one memory and uses a CPU made of an ALU and a control unit.
  • Boolean algebra describes logic with AND, OR and NOT; its laws and De Morgan's theorems simplify expressions.
  • A K-map arranges the truth table so that groups of adjacent 1s give simplified product terms.
  • Groups on a K-map have sizes of powers of two, and don't care cells may be used to enlarge them.
  • SOP is obtained from groups of 1s and POS from groups of 0s.
  • Binary, octal and hexadecimal are positional systems; three bits make an octal digit and four bits a hexadecimal digit.
  • Subtraction in binary is performed by adding the 2's complement.
  • BCD addition needs a correction of 0110 when a digit sum exceeds 9.
  • BCD, Excess-3, Gray, ASCII and EBCDIC are codes designed for different purposes.
  • A parity bit detects single-bit errors; the Hamming code detects and corrects them.

Glossary

Term Meaning
2's complement Inverted bits plus 1; used for binary subtraction.
ALU The unit that performs arithmetic and logical operations.
Analog signal A signal that varies continuously over a range.
ASCII Seven-bit character code of 128 symbols.
BCD Code that writes each decimal digit in four bits.
Boolean algebra Algebra of variables that take only the values 0 and 1.
Control unit The unit that fetches, decodes and directs execution of instructions.
De Morgan's theorems Rules that connect AND, OR and NOT through complements.
Digital logic Circuits that work on digital signals using fixed rules.
Digital signal A signal with a fixed set of levels, usually two.
Don't care condition An input combination whose output does not matter.
EBCDIC Eight-bit character code used on IBM mainframes.
Excess-3 code BCD code in which 3 is added to each digit.
Gray code Code in which consecutive values differ in one bit.
Hamming distance Number of positions in which two code words differ.
Karnaugh map A grid arrangement of a truth table used to simplify functions.
Minterm A product term of all variables that equals 1 for one input combination.
Parity bit Extra bit that makes the number of 1s even or odd.
POS Product of sums form of a Boolean expression.
Prime implicant A product term from the largest possible group of adjacent 1s.
Radix The base of a positional number system.
SOP Sum of products form of a Boolean expression.
Stored-program concept Keeping instructions and data in the same memory.

Question bank

Short Answer Questions (2 marks each)

  1. Define a digital signal.
  2. Name the five functional units of a Von Neumann computer.
  3. State De Morgan's theorems.
  4. What is a minterm?
  5. Why are K-map labels written in Gray code order?
  6. What is a don't care condition?
  7. Convert binary 11010 to decimal.
  8. What is the 2's complement of 0101?
  9. Write the Excess-3 code of decimal 6.
  10. What is the Hamming distance between 1100 and 1010?

Medium Answer Questions (5 marks each)

  1. Explain the Von Neumann architecture with a block diagram.
  2. State the laws of Boolean algebra with their dual forms.
  3. Simplify F = A'B + AB + AB' using Boolean laws.
  4. Explain the rules for forming groups on a K-map.
  5. Convert decimal 156 to binary, octal and hexadecimal.
  6. Explain Gray code and convert binary 1101 into Gray code.

Long Answer Questions (15 marks each)

  1. Explain the three-variable and four-variable K-maps. Simplify F(A, B, C, D) = Σm(0, 1, 2, 5, 8, 9, 10) in SOP form.
  2. Explain don't care conditions with an example. Obtain the SOP and POS forms of F = Σm(1, 3, 4, 5, 7).
  3. Explain the number systems used in computing. Describe conversion between them with examples and explain binary subtraction using 2's complement.
  4. Explain BCD addition with an example. Describe BCD, Excess-3, Gray, ASCII and EBCDIC codes.

Sources

  • Official BCA syllabus Computer Architecture, course code 25BCA401DS02, Unit I