CSC116 · TU past paper
Digital Logic 2077 question paper
The complete TU 2077 exam paper for Digital Logic (CSC116), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- 110 marksDesign ProcedureHideAnswer
Design a combinatorial circuit that generates 9's complement of a BCD number.[10]
The 9's complement of a BCD digit N is defined as: 9's complement = 9 - N Since BCD uses 4 bits to represent digits 0 through 9, we need a combinational circuit with 4 inputs (A, B, C, D) and 4 outputs (W, X, Y, Z). --- The BCD input rep...
- 210 marksNumericalProgrammable Logic ArrayHideAnswer
Implement the following functions using PLA:
$w(A,B,C,D)=\sum(7,12,13)$
$x(A,B,C,D)=\sum(7,8,9,10,11,12,13,14,15)$
$y(A,B,C,D)=\sum(0,2,3,4,5,6,7,8,10,11,15)$
$z(A,B,C,D)=\sum(1,2,8,12,13)$
[10]
Four 4-variable functions (A = MSB, D = LSB): - $w(A,B,C,D) = \sum(7,12,13)$ - $x(A,B,C,D) = \sum(7,8,9,10,11,12,13,14,15)$ - $y(A,B,C,D) = \sum(0,2,3,4,5,6,7,8,10,11,15)$ - $z(A,B,C,D) = \sum(1,2,8,12,13)$ AB\CD 00 01 11 10 ------------...
- 310 marksNumericalDesign with state equations and state reduHideAnswer
Design sequential circuit specified by the following state diagram using T flip-flops.[10]
The actual state diagram image is not provided in this question. The specific states, transitions, inputs, and outputs cannot be read. Any answer therefore depends entirely on assuming a particular state diagram. The working below assume...
- 45 marksNumericalSigned Binary numbersHideAnswer
List two major characteristics of digital computer. Represent -6 (negative six) using 8 bits in signed magnitude, signed-1's-complement and signed-2's-complement respectively. Represent decimal number 4673 in a) octal, and b) BCD. [5]
- Number to represent in 8-bit signed forms: $-6$ - Decimal number to convert: $4673$ (to octal and BCD) --- 1. Operates on discrete/binary data: A digital computer represents and processes all data as discrete binary values (0s and 1s) ...
- 55 marksIntegrated CircuitsHideAnswer
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 U...
- 65 marksSubtractorsHideAnswer
Design a full subtractor circuit with three inputs $x$, $y$, $B_{in}$ and two outputs $Diff$ and $B_{out}$. The circuit subtracts $x - y - B_{in}$, where $B_{in}$ is the input borrow, $B_{out}$ is the output borrow, and $Diff$ is the difference [5]
A full subtractor is a combinational circuit that performs subtraction of three bits: minuend (x), subtrahend (y), and input borrow (Bin). It produces two outputs: Diff (difference) and Bout (output borrow). The operation performed is: x...
- 75 marksDesign ProcedureHideAnswer
Design 4-bit even parity generator. [5]
A parity generator is a combinational circuit that generates a parity bit to be appended to a message before transmission. For even parity: the parity bit P is chosen such that the total number of 1s in all bits (message + parity bit) is...
- 85 marksShift registersHideAnswer
What is the difference between a serial and parallel transfer? Explain how to convert serial data to parallel and parallel data to serial. What type of register is needed? [5]
Serial vs Parallel Transfer, Conversion Methods, and Required Register Types
1. Difference Between Serial and Parallel Transfer
Feature Serial Transfer Parallel Transfer Data movement One bit per clock pulse, in sequence All bits transferred simultaneously in a single clock pulse Speed Slower (n clock pulses for n bits) Faster (only 1 clock pulse needed) Wires/Lines required Fewer (single data line) More (one line per bit) Hardware complexity Simpler connections More complex wiring From notes (ctx6): "In case of serial operation, digits are put in sequence, one digit for each clock pulse, whereas in case of parallel operation all digits get shifted simultaneously during a single clock pulse."
2. Types of Registers Needed
The Shift Register is the fundamental register used for both conversions. It supports the following modes (from ctx3):
- SISO - Serial In, Serial Out
- SIPO - Serial In, Parallel Out
- PISO - Parallel In, Serial Out
- PIPO - Parallel In, Parallel Out
3. Converting Serial Data to Parallel (Serial-In Parallel-Out: SIPO)
Register Needed: SIPO Shift Register
Working Principle:
- Data bits are fed into the register one bit at a time through the serial input line, synchronized with each clock pulse.
- After n clock pulses (for an n-bit register), all bits are stored in the flip-flops.
- All stored bits are then read out simultaneously from the parallel output lines.
Example (4-bit SIPO):
Suppose serial input data = 1011 (MSB first)
Clock Pulse Serial Input Q3 Q2 Q1 Q0 Initial - 0 0 0 0 CP 1 1 1 0 0 0 CP 2 0 0 1 0 0 CP 3 1 1 0 1 0 CP 4 1 1 1 0 1 After 4 clock pulses, parallel outputs Q3 Q2 Q1 Q0 = 1011 are available simultaneously.
From notes (ctx1): "In SIPO the data is stored serially but output is transferred in parallel."
4. Converting Parallel Data to Serial (Parallel-In Serial-Out: PISO)
Register Needed: PISO Shift Register
Working Principle:
- All n data bits are loaded simultaneously into the register through parallel input lines using a parallel load control signal (one clock pulse).
- The bits are then shifted out one at a time through the serial output line, one bit per clock pulse.
- After n clock pulses, all bits have been transmitted serially.
Example (4-bit PISO):
Suppose parallel input data = 1101
Clock Pulse Operation Serial Output CP 1 Parallel Load: 1101 loaded - CP 2 Shift right 1 (MSB out) CP 3 Shift right 1 CP 4 Shift right 0 CP 5 Shift right 1 (LSB out) Serial output sequence = 1 1 0 1
From notes (ctx1): "In PISO the data inputs are provided in parallel form and the output is transferred in serial sequence."
5. Summary
Conversion Register Type Input Mode Output Mode Serial to Parallel SIPO Serial (1 bit/clock) Parallel (all bits at once) Parallel to Serial PISO Parallel (all bits at once) Serial (1 bit/clock) The shift register with appropriate control signals (parallel load, shift right/left, clock pulse) as described in ctx2 is the essential hardware component for both conversions.
- 95 marksTriggering of flip-flopsHideAnswer
Explain negative-edge triggered D flip flop with necessary logic diagram and truth table. [5]
An edge-triggered flip flop is a flip flop that synchronises its state changes during the clock pulse transition. The output transition occurs at a specific level of the clock pulse. When the pulse input level exceeds this level, the inp...
- 105 marksRipple CountersHideAnswer
Illustrate the use of Binary ripple counter and BCD ripple counter. [5]
--- A binary ripple counter consists of a series connection of complementing flip-flops (T flip-flops or JK flip-flops) where the output of each flip-flop is connected to the clock input of the next higher-order flip-flop. The flip-flop ...
- 115 marksDesign with state equations and state reduHideAnswer
Write short notes on (Any two): RTL, State Reduction, POS [5]
Short Notes (Any Two)
1. RTL (Register Transfer Level)
RTL (Register Transfer Level) is a design abstraction used to describe the operation of a digital circuit in terms of the flow of data between registers and the logical operations performed on that data.
Key Points:
- RTL describes how data moves from one register to another through combinational logic.
- It is used in the design and synthesis of digital systems such as processors and controllers.
- RTL operations are described using Register Transfer Notation, for example:
R2 ← R1 + R3 (Add contents of R1 and R3, store in R2) R1 ← R2 (Transfer contents of R2 to R1)- A register is a group of flip-flops capable of storing binary information.
- RTL forms the basis of Hardware Description Languages (HDLs) like VHDL and Verilog.
- The three basic components in RTL design are:
- Registers -- for storing data
- Combinational Logic -- for performing operations
- Control Logic -- for determining when transfers occur
2. State Reduction
State Reduction is the process of minimizing the number of states in a sequential circuit (finite state machine) without changing its input/output behavior.
Why State Reduction?
- Fewer states means fewer flip-flops required.
- Leads to a simpler and more economical circuit design.
Method -- Identifying Equivalent States:
Two states are said to be equivalent if:
- For every possible input, they produce the same output, AND
- For every possible input, they transition to the same next state (or equivalent states).
Example:
Present State Input = 0 Input = 1 Output A B C 0 B A D 0 C B C 1 D A D 0 - States B and D produce the same output (0) and go to the same next states (A and D respectively -- check equivalence iteratively).
- If B and D are found equivalent, they can be merged into one state, reducing the total number of states.
Steps:
- List all states and their transitions.
- Identify pairs of states with the same output.
- Check if next states are also equivalent.
- Merge equivalent states and redraw the reduced state table.
3. POS (Product of Sums)
Product of Sums (POS) is a standard form of representing a Boolean function as a product (AND) of sum (OR) terms, where each sum term is called a maxterm.
Definition:
A maxterm is a sum (OR) of all variables in the function, each appearing either in complemented or uncomplemented form.
For n variables, there are 2^n possible maxterms.
Standard POS (Canonical POS / Maxterm Canonical Form):
Any Boolean function can be expressed as a product of maxterms. This is called the maxterm canonical form or standard POS form.
Example: F = (x+y+z)(x+y'+z)(x+y+z') = M₀ · M₂ · M₄ = ∏(0, 2, 4)
Example:
For a 2-variable function F(x, y):
Row x y Maxterm Symbol 0 0 0 x + y M₀ 1 0 1 x + y' M₁ 2 1 0 x' + y M₂ 3 1 1 x' + y' M₃ If F = 0 for rows 1 and 3:
F = M₁ · M₃ = (x + y')(x' + y') = ∏(1, 3)
Key Points:
- POS is the dual of SOP (Sum of Products).
- In a K-map, POS is obtained by grouping the 0s (as opposed to 1s for SOP).
- We write 0's in the square that correspond to the product of the sum.
- POS minimization using K-map gives a simplified product of sums expression.
- 125 marksNumericalNAND and NOR implementationHideAnswer
Simplify the following function and implement them with two level NOR gate circuit, $F(w, x, y, z) = wx' + y'z' + w'yz'$. [5]
$$F(w,x,y,z) = wx' + y'z' + w'yz'$$ Term $wx'$ ($w=1, x=0$, y,z any): - $1000=8,\ 1001=9,\ 1010=10,\ 1011=11$ Term $y'z'$ ($y=0, z=0$, w,x any): - $0000=0,\ 0100=4,\ 1000=8,\ 1100=12$ Term $w'yz'$ ($w=0, y=1, z=0$, x any): -