BSc CSIT (TU) Science Digital Logic (BSc CSIT, CSC116) Question Paper 2080 Nepal
This is the official BSc CSIT (TU) (Science stream) Digital Logic (BSc CSIT, CSC116) question paper for 2080, as set in the regular annual examination. It carries 60 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Digital Logic (BSc CSIT, CSC116) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) exam or solving previous years' question papers, this 2080 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt any TWO questions.
Explain different methods of binary subtraction. Subtract 27 from 18 using 8-bit 2's complement representation.
Methods of Binary Subtraction
There are three common methods to subtract one binary number from another:
- Direct (borrow) method – subtract bit by bit just like decimal subtraction, generating a borrow of 2 from the next higher column when the minuend bit is smaller than the subtrahend bit. Simple for humans but awkward for hardware.
- 1's complement method – take the 1's complement of the subtrahend, add it to the minuend, then add any end-around carry back to the LSB. If a final carry is produced the result is positive; otherwise the result is negative and is itself in 1's complement form.
- 2's complement method – take the 2's complement of the subtrahend (1's complement + 1), add it to the minuend, and discard the final carry. If a carry-out is produced the result is positive (in true form); if no carry-out, the result is negative and stored in 2's complement form. This is the method used inside virtually all modern computers because subtraction reuses the same adder hardware used for addition.
Subtract 27 from 18 using 8-bit 2's complement
We compute .
Step 1 – Represent the numbers in 8-bit binary:
Step 2 – Find the 2's complement of 27 (the subtrahend):
27 = 0001 1011
1's comp. = 1110 0100
+ 1 = 0000 0001
2's comp. = 1110 0101 (= -27)
Step 3 – Add 18 and (-27):
0001 0010 (+18)
+ 1110 0101 (-27)
-----------
1111 0111 (no carry-out)
Step 4 – Interpret the result. There is no final carry-out, so the answer is negative and is in 2's complement form. Take the 2's complement of 1111 0111 to read its magnitude:
1111 0111
1's comp. = 0000 1000
+ 1 = 0000 1001 = 9
Result: , i.e. .
Minimize F(A,B,C,D) = Sum(0,2,4,6,8,10,12,14) using a K-map and implement using a multiplexer.
Minimize
Step 1 – Observe the minterms. Every listed minterm is an even number (0,2,4,6,8,10,12,14). An even minterm always has . Hence the function is 1 exactly when .
Step 2 – K-map. Placing 1's at all eight even cells:
| AB\CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 1 (m0) | 0 | 0 | 1 (m2) |
| 01 | 1 (m4) | 0 | 0 | 1 (m6) |
| 11 | 1 (m12) | 0 | 0 | 1 (m14) |
| 10 | 1 (m8) | 0 | 0 | 1 (m10) |
The 1's form a single group of eight (the two columns where ).
Step 3 – Minimized expression:
Implementation using a multiplexer
Treat as the select lines of an 8-to-1 MUX and let be the data variable. For each combination of the two minterms differ only in ; both are 1 when and 0 when . So every data input equals :
Thus one 8-to-1 MUX with select lines and every data input tied to realizes .
Even simpler, because depends on alone, a 2-to-1 MUX with select line , and gives .
Explain the working of SR, D, JK and T flip-flops with truth tables and excitation tables.
Flip-Flops: Working, Truth Tables and Excitation Tables
A flip-flop is a 1-bit edge/level-triggered memory element with a present state and a next state .
1. SR Flip-Flop
Set–Reset latch built from cross-coupled NOR/NAND gates. sets the output, resets it; is forbidden (indeterminate).
| S | R | Action | |
|---|---|---|---|
| 0 | 0 | No change | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | X | Invalid |
Characteristic eq.: (with ).
2. D Flip-Flop
Obtained by tying so the invalid state is removed. Output simply follows the data input on the clock edge.
| D | |
|---|---|
| 0 | 0 |
| 1 | 1 |
Characteristic eq.: .
3. JK Flip-Flop
Refines SR by replacing the forbidden state with a toggle.
| J | K | Action | |
|---|---|---|---|
| 0 | 0 | No change | |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Toggle |
Characteristic eq.: .
4. T Flip-Flop
JK with . toggles, holds. Useful in counters.
| T | |
|---|---|
| 0 | |
| 1 |
Characteristic eq.: .
Excitation Tables
These give the required inputs to cause a transition (X = don't care).
| S R | J K | D | T | ||
|---|---|---|---|---|---|
| 0 | 0 | 0 X | 0 X | 0 | 0 |
| 0 | 1 | 1 0 | 1 X | 1 | 1 |
| 1 | 0 | 0 1 | X 1 | 0 | 1 |
| 1 | 1 | X 0 | X 0 | 1 | 0 |
Excitation tables are the inverse of characteristic tables and are the key tool when designing synchronous counters/sequential circuits.
Section B: Short Answer Questions
Attempt any EIGHT questions.
Convert (734.25)8 into hexadecimal.
Convert to hexadecimal
Step 1 – Octal to binary (each octal digit = 3 bits):
So .
Step 2 – Group into 4-bit nibbles about the binary point (pad with 0's at the outer ends):
Integer part: 1 1101 1100 → 0001 1101 1100
Fraction part: 0101 01 → 0101 0100
Step 3 – Result:
State the duality principle of Boolean algebra.
Duality Principle of Boolean Algebra
The duality principle states that every valid Boolean identity remains valid (its dual) if we simultaneously:
- interchange the operators AND () and OR (), and
- interchange the identity elements 0 and 1,
leaving the variables and their complements unchanged.
Examples:
This principle is why Boolean theorems naturally come in pairs and is the basis of De Morgan's theorems.
Design a full adder using a decoder.
Full Adder using a Decoder
A full adder has inputs and outputs Sum () and Carry ():
Truth table:
| A | B | |||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Implementation. Use a 3-to-8 line decoder with as the three select/address inputs. The decoder activates exactly one of its eight outputs for each input combination (one minterm per line).
- Feed outputs into an OR gate to generate Sum.
- Feed outputs into another OR gate to generate Carry.
(If the decoder has active-low outputs, replace the OR gates with NAND gates.) Thus one 3-to-8 decoder plus two OR gates implements a complete full adder.
Explain the operation of a 4-to-2 priority encoder.
4-to-2 Priority Encoder
A priority encoder converts inputs into an -bit binary code, but unlike an ordinary encoder it resolves the case where several inputs are active simultaneously by giving precedence to the input of highest priority (usually the highest-numbered line, ).
For a 4-to-2 priority encoder: inputs , outputs , plus a valid bit that is 1 whenever at least one input is active.
Truth table (X = don't care):
| V | ||||||
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | X | X | 0 |
| 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| 0 | 0 | 1 | X | 0 | 1 | 1 |
| 0 | 1 | X | X | 1 | 0 | 1 |
| 1 | X | X | X | 1 | 1 | 1 |
Output equations:
Because has the highest priority, whenever the output is regardless of the lower inputs; lower lines are encoded only when all higher lines are 0. The valid output distinguishes the all-zero input from a genuine encoding.
Differentiate between PLA and PAL.
Difference between PLA and PAL
Both are Programmable Logic Devices that realize sum-of-products expressions, but they differ in which array is programmable.
| Feature | PLA (Programmable Logic Array) | PAL (Programmable Array Logic) |
|---|---|---|
| AND array | Programmable | Programmable |
| OR array | Programmable | Fixed |
| Flexibility | Higher – product terms can be shared among outputs | Lower – fixed OR limits product terms per output |
| Speed | Slower (two programmable arrays add delay) | Faster |
| Cost / complexity | More complex, costlier | Simpler, cheaper |
| Product-term sharing | Yes | No |
Key point: In a PLA both the AND and OR planes are programmable, whereas in a PAL only the AND plane is programmable and the OR plane is fixed. This makes PLA more flexible but slower and costlier; PAL is faster, cheaper and more widely used.
Explain the operation of a PIPO shift register.
PIPO Shift Register (Parallel-In Parallel-Out)
A PIPO register loads all data bits simultaneously in parallel and makes them available simultaneously in parallel at the outputs. It does not shift; it acts purely as a temporary parallel storage / buffer.
Construction. For an -bit register, flip-flops (usually D flip-flops) share a common clock. Each input is wired directly to one flip-flop, and each output is taken from that flip-flop. There are no interconnections between adjacent flip-flops, so no bit-shifting occurs.
Operation.
- On the active clock edge, every flip-flop captures its corresponding input bit at the same instant: .
- All outputs then present the loaded word at once and hold it until the next load.
Characteristics:
- Fastest mode of data transfer (one clock pulse loads the whole word).
- No serial path, so it is used mainly as a parallel data buffer/latch between functional blocks, not for serial communication.
For example, a 4-bit PIPO storing 1011: inputs appear at outputs after a single clock pulse.
Design a mod-10 (decade) counter.
Mod-10 (Decade) Counter Design
A mod-10 counter counts through 10 states (0000 to 1001) and then resets to 0000, ignoring the six unused states 1010–1111. It can be built as an asynchronous (ripple) or synchronous counter; a simple asynchronous design uses four JK flip-flops in toggle mode (all ).
Count sequence: .
Design idea (asynchronous reset method):
- Use four T/JK flip-flops () connected as a 4-bit ripple counter; each flip-flop's output clocks the next.
- The counter naturally counts 0–15. To make it stop at 9 we must force a reset on the count 1010 (decimal 10).
- State 1010 is the first count where and . Feed these into a NAND gate:
- Connect the NAND output to the asynchronous CLEAR of all four flip-flops. The instant the count reaches 1010, drives CLR low, immediately resetting the counter to 0000.
Result: the counter cycles through 0–9 (BCD) and rolls over, giving a modulus of 10. (A jam-free synchronous version uses the excitation table of JK flip-flops with K-maps for of each stage, but the asynchronous reset method above is the standard exam answer.)
Explain the difference between a multiplexer and a demultiplexer.
Multiplexer vs Demultiplexer
| Feature | Multiplexer (MUX) | Demultiplexer (DEMUX) |
|---|---|---|
| Function | Many-to-one: selects one of several inputs and routes it to a single output | One-to-many: routes a single input to one of several outputs |
| Data inputs | data inputs | 1 data input |
| Data outputs | 1 output | outputs |
| Select lines | select lines choose the input | select lines choose the output |
| Operation | Data selector / parallel-to-serial conversion | Data distributor / serial-to-parallel conversion |
| Example | 4-to-1 MUX (2 select lines) | 1-to-4 DEMUX (2 select lines) |
Summary: A multiplexer is a data selector that combines many input lines onto one output line under control of select lines, while a demultiplexer is a data distributor that takes one input line and steers it to one of many output lines. They perform complementary (inverse) operations, and a DEMUX is functionally the same as a decoder with an enable input.
Write short notes on look-ahead carry generator.
Look-Ahead Carry Generator
Problem it solves. In a ripple-carry adder each stage must wait for the carry from the previous stage, so the carry ripples through all stages, making the worst-case delay proportional to . A carry look-ahead (CLA) generator computes all carries in parallel directly from the input bits, drastically reducing addition delay.
Generate and Propagate signals. For each bit position with inputs :
Carry equations. Using , each carry can be expanded into a function of only the inputs and :
Since every carry is a two-level (AND-OR) function of the inputs, all carries are available after a constant gate delay, independent of the word length.
Sum: .
Advantages / drawback: Much faster than ripple-carry (speed independent of ), but the logic grows complex for large , so wide adders use block CLA stages.
Frequently asked questions
- Where can I find the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) question paper 2080?
- The full BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2080 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
- Does the Digital Logic (BSc CSIT, CSC116) 2080 paper come with solutions?
- Yes. Every question on this Digital Logic (BSc CSIT, CSC116) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
- How many marks is the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2080 paper?
- The BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2080 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
- Is practising this Digital Logic (BSc CSIT, CSC116) past paper free?
- Yes — reading and attempting this Digital Logic (BSc CSIT, CSC116) past paper on Kekkei is completely free.