Unit summary

  • Combinational circuits give outputs that depend only on the present inputs; sequential circuits also depend on stored values.
  • A half adder adds two bits; a full adder adds three bits and can be chained to add words.
  • Subtractors give a difference and a borrow, and have the same form as adders.
  • A decoder activates one of 2 to the power n lines; an encoder produces the code of the active line.
  • A multiplexer selects one of many inputs; a demultiplexer sends one input to one of many outputs.
  • A flip-flop stores one bit and changes state at a clock edge.
  • SR, D, J-K and T flip-flops are described by truth tables and characteristic equations.
  • A register is a group of flip-flops with a common clock and may load in parallel.
  • Shift registers move bits one place per clock pulse; a bidirectional register uses mode lines.
  • Asynchronous counters are simple but slow; synchronous counters are faster and use extra gates.

Glossary

Term Meaning
Binary counter A circuit that steps through binary numbers in order.
Clock A periodic signal that controls when a sequential circuit may change.
Combinational circuit A circuit whose output depends only on its present inputs.
Decoder Circuit that activates one of 2 to the power n outputs from an n-bit code.
Demultiplexer Circuit that sends one input to one of many outputs.
Encoder Circuit that produces the binary code of the active input.
Excitation table Table of inputs needed to cause a required change of state.
Flip-flop Circuit that stores one bit and changes only on a clock edge.
Full adder Circuit that adds two bits and a carry-in.
Full subtractor Half subtractor that also accepts a borrow-in.
Half adder Circuit that adds two bits and gives sum and carry.
Half subtractor Circuit that subtracts one bit from another and gives difference and borrow.
Modulus The number of distinct states of a counter.
Multiplexer Circuit that selects one of many inputs for one output.
Parallel load Loading all bits of a register at the same time.
Priority encoder Encoder that gives the code of the highest-priority active input.
Race-around condition Repeated toggling of a level-triggered J-K flip-flop in one clock pulse.
Register A group of flip-flops that stores a binary word.
Ripple counter An asynchronous counter in which each stage clocks the next.
Sequential circuit A circuit whose output depends on present inputs and stored values.
Shift register A register that moves its bits one place per clock pulse.
Toggle To change to the opposite value.

Question bank

Short Answer Questions (2 marks each)

  1. Write the sum and carry equations of a half adder.
  2. What is a full subtractor?
  3. How many outputs does a 3-to-8 decoder have?
  4. What is a priority encoder?
  5. How many select lines are needed for a 16:1 multiplexer?
  6. State the invalid input of an SR flip-flop.
  7. Write the characteristic equation of a J-K flip-flop.
  8. What is meant by toggling?
  9. What is parallel load in a register?
  10. What is the modulus of a 3-bit binary counter?

Medium Answer Questions (5 marks each)

  1. Explain the full adder with its truth table and equations.
  2. Explain the half subtractor and the full subtractor.
  3. Describe a 2-to-4 decoder with its truth table.
  4. Explain the 4:1 multiplexer with its function table.
  5. Explain the J-K flip-flop with its truth table and characteristic equation.
  6. Describe how a T flip-flop is obtained from a J-K flip-flop.

Long Answer Questions (15 marks each)

  1. Design a full adder using its truth table and K-maps. Show how four full adders add two 4-bit numbers.
  2. Explain the multiplexer and the demultiplexer. Show how a 4:1 multiplexer can be used to implement a Boolean function.
  3. Describe the SR, D, J-K and T flip-flops with truth tables, characteristic equations and the race-around condition.
  4. Explain the 4-bit register with parallel load, the bidirectional shift register, and 4-bit synchronous and asynchronous binary counters.

Sources

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