CSC116 ยท TU past paper
Digital Logic 2079 question paper
The complete TU 2079 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.
- Q1.10 marksNumericalDesign with state equations and state reduHideAnswer
Design the sequential circuit with respect to the following state diagram using T flip flops.[10]
- Q2.10 marksNumericalMultiplexersHideAnswer
Implement $F = \Sigma(1,4,5,7)$ using a. Multiplexer b. Decoder c. PLA [10]
- Q3.10 marksNumericalSynchronous CountersHideAnswer
Differentiate between combinational circuit and sequential circuit. Design mod-10 synchronous counter using J-K flip-flop. Show necessary truth tables and K-maps.[10]
- Q4.5 marksShift registersHideAnswer
Provide one example where shift left operator can be used. Explain serial-in-serial-out register. [5]
- Q5.5 marksNumericalcomplimentsHideAnswer
Carry out the following tasks:a. Perform 2's complement subtraction of 010110 - 100101b. Represent decimal number 10 in its BCD form [5]
- Q6.5 marksNumericalAddersHideAnswer
Derive the Boolean expression for sum and carry of half adder. Draw its combinational circuit. Implement it using only NOR gates. [5]
Half Adder: Derivation, Circuit, and NOR Implementation
Given
- Inputs: two single-bit binary values, $A$ and $B$
- Outputs: Sum $S$, Carry $C$
- Constraint: implement using only NOR gates
All required information is present in the question.
Solution
Truth Table
A B Sum (S) Carry (C) 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 Boolean Expressions
Sum: $S = 1$ for the minterms $(A=0,B=1)$ and $(A=1,B=0)$:
$$S = \bar{A}B + A\bar{B} = A \oplus B$$
Carry: $C = 1$ only when both inputs are 1:
$$C = A \cdot B$$
Combinational Circuit (XOR + AND)
A โโโฌโโโโโโโโโโโโ โ [XOR]โโโโโ S = A โ B B โโโผโโโโโโโโโโโโ โ โโโโโโโโโโโโโ โ [AND]โโโโโ C = AยทB B โโโโโโโโโโโโโโโNOR-Only Implementation
Basic NOR identities:
- $\bar{X} = X \text{ NOR } X$
- $X + Y = (X \text{ NOR } Y) \text{ NOR } (X \text{ NOR } Y)$
- $X \cdot Y = (X \text{ NOR } X) \text{ NOR } (Y \text{ NOR } Y)$
Carry $C = A \cdot B$. Using AND-from-NOR:
$$C = (A \text{ NOR } A) \text{ NOR } (B \text{ NOR } B) = \overline{\bar A + \bar B} = A\cdot B$$
Sum $S = A \oplus B$. The standard 5-gate NOR realization of XOR:
Gate Inputs Output G1 $A$ NOR $B$ $\overline{A+B}$ G2 $A$ NOR G1 $\overline{A + \overline{A+B}} = \bar A(A+B) = \bar A B$ G3 $B$ NOR G1 $\overline{B + \overline{A+B}} = \bar B(A+B) = A\bar B$ G4 G2 NOR G3 $\overline{\bar A B + A\bar B} = \overline{A\oplus B}$ G5 G4 NOR G4 $A \oplus B = S$ Verification of G4/G5: $\text{G4} = \overline{S}$, so $\text{G5}=\overline{\overline S}=S$. Correct.
Circuit diagram (NOR gates only):
A โโฌโโโโโโโโโโโ[G1]โโโโโฌโโโโโโโ[G2]โโโโ โ B โโโโโ โ A โโโโ โ โ โโโ[G3]โโโโโ โโ[G4]โโ[G5]โโ S โ B โโโโโโโโโโโโโโโโ โ (G4 fed twice) โ โโ[Ga: A NOR A = A']โโโ โ โโ[Gc]โโ C โโโโโโโโโโโโโโโโโโโโโโโ B โ[Gb: B NOR B = B']โโโGate count:
- Sum: 5 NOR gates (G1-G5)
- Carry: 3 NOR gates (Ga = $\bar A$, Gb = $\bar B$, Gc = final NOR)
- G1 is shared, but counting independently: Sum = 5, Carry = 3.
Summary
Output Expression NOR gates Sum $S = A \oplus B$ 5 Carry $C = A \cdot B$ 3 A wiring trap worth knowing: one tempting XOR construction does not work. Taking:
- G4 = G1 NOR G2 = $\overline{\overline{A+B} + \bar A}$. Evaluate: $= (A+B)\cdot A = A$, not $A\bar B$.
- G5 = G1 NOR G3 = $(A+B)\cdot B = B$, not $\bar A B$.
- G6 = G4 NOR G5 = $A$ NOR $B = \overline{A+B}$, which is NOT $A\oplus B$.
So those gate assignments do not yield the XOR. The correct minimal XOR uses 5 NOR gates with the wiring shown above, giving $S = A\oplus B$ and $C = A\cdot B$.
- Q7.5 marksNumericalBoolean FunctionsHideAnswer
Express Fโฒ=(x+y+z)โฒF' = (x + y + z)'Fโฒ=(x+y+z)โฒ as a sum of min-terms. [5]
- Q8.5 marksNumericalFour variable mapsHideAnswer
Minimize the following Boolean function using K-map $F(A, B, C, D) = \Sigma m(0,1,2,5,7,8,9,10,13,15)$. [5]
- Q9.5 marksRipple CountersHideAnswer
What are the practical implications of down counter? Explain BCD ripple counter. [5]
- Q10.5 marksNumericalDesign ProcedureHideAnswer
Design a combinational circuit with three inputs and one output. The output is 1 when the binary value of the inputs is an even number. [5]
- Q11.5 marksRead-only-MemoryHideAnswer
Differentiate between ROM and PLA. Explain different types of ROM. [5]
- Q12.5 marksIntegrated CircuitsHideAnswer
Write short notes on (Any two): a. Positive Logic b. I2L c. ASCII [5]
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 Level Logic 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:
Category Number of Characters Alphabets (uppercase A-Z and lowercase a-z) 62 Numerals (0-9) 10 Special Characters 66 Example:
Character ASCII (Decimal) ASCII (Binary) A 65 100 0001 a 97 110 0001 0 48 011 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.