Winter 2021 - DF
Winter 2021 - DF
ANS
z
(i) Octal aa
8 225 1
w
8 28 4
tA
3 3
Fractional part : 0.225
0.225 × 8 = 1.8 = 1
u
0.8 × 8 = 6.4 = 6
gr
0.4 × 8 = 3.2 = 3
Ja
0.2 × 8 = 1.6 = 1
0.6 × 8 = 4.8 = 4
0.8 × 8 = 6.4 = 6
0.4 × 8 = 3.2 = 3
= 341.1631463
(ii) Hexadecimal
16 225 1
14 14
ANS
z
aa
w
u tA
gr
Ja
TTL CMOS
TTL stands for Transistor Transistor CMOS stands for
Logic. The name is derived from use complementary metal oxide
of two bipolar junction transistor or semiconductor
BJTs in design of each logic gate
TTL is classification of integrated CMOS is another classification
circuits of ICs that uses field affect
transistors in design
TTL produces more noise CMOS produces less noise
TTL units are less efficient than CMOS CMOS units are more efficient
unit than TTL units
ANS
F(A, B, C) = BC + A
̅ ) BC + A (B + 𝑩
= (A + 𝑨 ̅ ) (C + 𝑪
̅)
= ABC + 𝑨 ̅ BC + A(BC + B𝑪 ̅+𝑩 ̅C + 𝑩
̅𝑪̅)
= ABC + 𝑨 ̅ BC + ABC + AB𝑪 ̅ + 𝑨𝑩̅C + A 𝑩
̅𝑪̅
= 111 + 011 + 101 + 110
= ∑(𝟕, 𝟑, 𝟓, 𝟒)
F = ∑ 𝒎(𝟑, 𝟒, 𝟓, 𝟕)
z
Q2(B) With logic diagram & truth table, explain working of 3 line to 8 line
decoder (4M) aa
w
ANS
tA
3 × 8 Decoder
The 3 to 8 line decoder is also known as binary to octal decoder
In a 3 to 8 line decoder, there is total eight outputs i.e Y0, Y1,Y2, Y3, Y4,
Y5, Y6, Y7 and three inputs A0, A1 and A2
The circuit has an enable input ‘E’ when enable E is set to 1, one of
these eight output will be 1
z
Y0=A0'.A1'.A2'
Y1=A0.A1'.A2'
aa
w
Y2=A0'.A1.A2'
tA
Y3=A0.A1.A2'
Y4=A0'.A1'.A2
u
Y5=A0.A1'.A2
gr
Y6=A0'.A1.A2
Y7=A0.A1.A2
Ja
Logic Circuit
ANS
z
aa
w
Analog voltage to be converted in a digital voltage to the non
tA
form with the help of D/A Converter. This analog signal is given to the
inverting input of the voltage comparator
Clock pulses are given to logic programmer output of the
programmer can change only when the clock pulse is present
Output of the programmer is given to decoder & display. This
decodes binary output used & energies display
Suppose analog voltage Va is given to comparator programmer sets
MSB to 1 & other bits to 0. This is converted into analog signal V by
by D/A Converter
Comparator compares signal with analog input signal V a. If Va > Vi
then output voltage V0 of comparator becomes HIGH(1). So when
second clock pulse comes programmer sets bit ahead of MSB to logic
1
OR
Q2(C) A combinational logic is defined by function (7M)
F1(A, B, C) = ∑ 𝒎(𝟑, 𝟓, 𝟔, 𝟕) F2(A, B, C) = ∑ 𝒎(𝟎, 𝟏, 𝟑, 𝟒, 𝟓, 𝟕)
Implement circuit with PLA having 3 inputs, 4 product terms & 2 outputs
z
ANS
aa
w
u tA
gr
Ja
ANS
gr
Ja
F(x, y, z) = ∑ 𝒎(𝟎, 𝟏, 𝟑, 𝟒, 𝟓, 𝟕)
F(x, y, z) = 000 + 001 + 011 + 100 + 101 + 111
F(x, y, z) = AIBICI + AIBIC + AIBC + ABICI + ABICI + ABC
F(x, y, z) = AIBI(CI + C) + BC (AI + A) + ABI (C + CI)
F(x, y, z) = AIBI + BC + ABI
F(x, y, z) = BI + BC
F(x, y, z) = (BI + B) (BI + C)
F(x, y, z) = BI + C
ANS
The clocked SR Flip Flop consists of 4 NAND gate, 2 inputs (S & R) & 2
outputs (Q & Q I). The clock pulse is given at the inputs of gate A & B
If the clock pulse input is replaced by an enable input, then it is said to
be SR latch. Let us assume that this flip flop works under positive edge
triggering. The following figure shows the block diagram and the logic
circuit of a clocked SR flip flop
z
aa
No change state [S = 0, R = 0]
w
When the clock pulse is applied, output of NAND gates A & B will
tA
be SI = 1 and R I = 1
For this case, if Q = 0, QI = 1 then both inputs form NAND gate C
u
z
aa
w
u tA
gr
Ja
Q3(C) Design Full Adder circuit using decoder & multiplexer (7M)
ANS
Using Decoder
z
Using Multiplexer
aa
Sum
w
u tA
gr
Carry
Ja
Logic Circuit
ANS
z
aa
w
tA
ANS
We first write present state, next state table for D FF. Along that we write
excitation inputs for JK FF
Excitation Table
Qn D Qn+1 J K
0 0 0 0 X
0 1 1 1 X
1 0 0 X 1
1 1 1 X 0
z
aa
From excitation table we can draw K – maps for J & K
w
u tA
gr
J=D ̅
K=𝑫
Ja
ANS
‘
State Diagram
z
Excitation Table
Q2
Present State
Q1 Q0 Q*2
aa
Next State
Q*1 Q*0
Inputs
DC DB
w
0 0 0 1 0 0 1 0
tA
1 0 0 0 1 0 0 1
0 1 0 0 0 1 0 0
0 0 1 1 1 0 1 1
u
1 1 0 0 0 0 0 0
gr
Ja
K maps :
Counter
z
aa
Q4(A) What is Race Condition in J – K Flip Flop (3M)
w
ANS
tA
then output Q will toggle as long as the clock remains high which
gr
ANS
z
ANS
aa
w
u tA
gr
Ja
W = BD + AD + ABI + BC
Through complementing twice we find
W = ((BD + AD + ABI + BC)I)I
z
W = ((BD)I (AD)I (ABI)I (BC)I)I
aa
X = BCID + BID + BIC
w
X = ((BCID)I + (BID)I + (BIC)I)I
tA
Y = ((CIDI)I (CDI)I
u
Z=0
gr
Ja
Circuit
ANS
z
aa
w
tA
Truth Table
u
gr
Ja
Y1 = A1A0 ̅̅̅̅
𝑩𝟎 + A0̅̅̅̅
𝑩𝟏 ̅̅̅̅
𝑩𝟎 + A1 ̅̅̅̅
𝑩𝟏
For Y2 (A = B) :
z
aa
w
u tA
gr
Ja
For Y3 (A < B)
ANS
ANS
A digital to analog convertor (DAC) converts digital input signal into
analog output signal
The digital signal is represented with binary code which is
z
combination of bits 0 and 1
Diagram
aa
w
u tA
gr
Ja
R – 2R ladder DAC
The R – 2R ladder DAC overcomes disadvantages of binary weighted
resistor DAC. As name suggest R – 2R ladder DAC produces an analog
output which is almost equal to digital input by using a R – 2R ladder
network in inverting adder circuit
The circuit diagram of 3 – bits R – 2R ladder DAC is shown in figure
z
reference voltage – VR when corresponding input bits are equal to ‘1’
aa
It is difficult to get the generalised output voltage equation of R – 2R
ladder DAC. But we can find the analog output values of R – 2R
w
ladder DAC for individual binary input combinations early
tA
Advantages of R – 2R ladder
R – 2R ladder DAC contains only 2 values of resistors R & 2R so
u
additionally
Q5(A) Perform following operation using 2s complement method
(11010)2 – (1000)2 (3M)
ANS
1s complement of 1000 is 0 1 1 1
+ 1
10 0 0
Adding
1 1 0 1 0
+ 1 0 0 0
1 1 0 1 0
Avoiding carry, answer is (10010) 2
ANS
ROM
ROM stands for Read – Only Memory. It is non volatile memory that
is used to store important information which is used to operate
system
As its name refers to read only memory we can only read programs &
data stored on it
It is also primary memory unit of computer system
It contains some electronic fuses that can be programmed for piece
of specific information
The information stored in ROM in binary format. It is also known as
z
permanent memory
Block Diagram aa
w
tA
Classification
u
gr
Ja
Features
ROM is non volatile memory
Information stored in ROM is permanent
Information & programs stored on it we can only read
Information & programs are stored on ROM in binary format
It is used in start – up process of computer
Types of ROM
1) PROM : Programmable Read Only Memory
2) EPROM : Erasable Programmable Read Only Memory
3) EEPROM : Electrically Erasable Programmable Read Only
Memory
4) MROM : Masked Read Only Memory
ANS
A binary ripple counter consists of series connection of
complementing flip flop with output of each flip flop connected to
clock pulse input of next high – order flip – flop
Flip – flop holding least significant bit receives incoming count pulses.
Diagram
z
Small circle in Cp input indicates that flip flop complements during
aa
negative going transition or when output to which it connected goes
from 1 to 0
w
The lower – order bit Q must be complemented with each count
pulse. Every time Q0 goes from 1 to it complements Q 1 every time Q1
tA
Q3 Q2 Q1 Q0 Value
Ja
0 0 0 0 0
0 0 0 1 1
0 0 1 0 2
0 0 1 1 3
0 1 0 0 4
0 1 0 1 5
0 1 1 0 6
0 1 1 1 7
1 0 0 0 8
1 0 0 1 9
1 0 1 0 10
1 0 1 1 11
1 1 0 0 12
1 1 0 1 13
1 1 1 0 14
Timing Diagram
z
ANS
aa
w
F = xy + yz + zx
tA
Truth Table
x y z F
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
ANS
F1 = ∑ 𝒎(𝟏, 𝟑, 𝟒, 𝟔)
F2 = ∑ 𝒎(𝟎, 𝟏, 𝟓, 𝟕)
z
aa
w
u tA
gr
Ja
ANS
z
In this circuit an integrator capacitor, AND gate, clock, counter, flip
flop, electronic switch are used
aa
There are 2 inputs of the electric switch in position A of analog
w
voltage V0 to be converted into digital is applied to integrator. In
tA
Advantages
1) Accuracy is more typical value is 0.05%
2) It is less costly
3) Effect of Temperature & weather condition is less
4) Noise rejection is good due to the dual slope technique
5) There is no effect of drift of the clock on the accuracy
Application
It is used in digital voltmeter and digital multimeter