Documente Academic
Documente Profesional
Documente Cultură
1. (b)
[
Y = ∑m (0, 1, 2, 4, 6, 9, 12, 14)
A B C D Y
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 0
0 1 0 0 1
0 1 0 1 0
0 1 1 0 1
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 0
1 1 0 0 1
1 1 0 1 0
1 1 1 0 1
1 1 1 1 0
AB = 00, Y = ? AB = 01, Y = ? AB = 10, Y = ? AB = 11, Y = ?
C C C C
0 1 0 1 0 1 0 1
D D D D
0 1 1 0 1 1 0 0 0 0 1 1
1 1 0 1 0 0 1 1 0 1 0 0
Y=C+D Y=D Y = CD Y= D
(2) Vidyalankar : S.E. – DLDA
A B Y C D
0 0 C+D
0 1 D
1 0 CD
0
1 1 D
1
4:1
2 MUX Y
3
A B
1. (c) (i) AB + AB = (A + B) (AB)
R.H.S. = (A + B) (A + B)
= (A.A + AB + BA + B.B)
= (0 + AB + BA + 0) (∵ A.A = 0)
= AB + BA
= L.H.S.
Fig.1
Prelim Question Paper Solutions (3)
• A full adder can be implemented using two half adders and the OR gate as shown in fig.2
Fig.2
Proof :
• Refer fig.2 and write the expression for sum output as,
S = (A ⊕ B) ⊕ Cin = A ⊕ B ⊕ Cin
This expression is same as that obtained for the full adder.
• Now write the expression for carry output C0 as
C0 = (A ⊕ B) Cin + AB
C0 = (AB + AB)Cin + AB
= ABCin + ABCin + AB
= ABCin + ABCin + AB(1 + Cin )
= ABCin + ABCin + AB + ABCin
= BCin (A + A) + ABCin + AB
= BCin + ABCin + AB
= BCin + ABCin + AB(1 + Cin )
= BCin + ABCin + AB + ABCin
= BCin + AB + ACin .(B + B)
∴ C0 = BCin + AB + ACin
• This expression is same that for a full adder. Thus we have proved that circuit shown in fig.2
really behaves like a full adder.
T.PO
T.PF PO
T PO PF
(ii) (1) Prime Implicant : The tabular method of simplification consists of two parts. The first is
to find by an exhaustive search all the terms that are candidate for inclusion in the
simplified function. These terms are called prime implicants.
(2) Input Variable : Binary logic deals with variables that take on two discrete values and
with operations that assume logical meaning. The two values the variables take may be
called by different names (e.g. true and false, yes and no, etc.) The variables that are
assigned to the input values are called as input variables.
(3) Min term : A min term is a product term that contains all of the input variables (each
literal no more than once) make up a Boolean expression.
(4) Max term : A max term is a sum term that contains all of the input variables that makes a
Boolean expression.
2. (b) (1) Arrays all minterms according to the number of 1's and group are form as one 1's, two 1's,
etc., as shown in table.
Group Minterm A B C D
1 4 0 1 0 0
8 1 0 0 0
2 5 0 1 0 1
9 1 0 0 1
12 1 1 0 1
3 11 1 0 1 1
13 1 1 0 1
4 15 1 1 1 1
Table (a)
(2) Combine the minterms into a group of two :
• Table shows the matched pairs of minterms in the adjacent groups of table (a) which
differ at only one location (bit position) with respect to each other. Place () mark on the
matched pairs in table (a).
Prelim Question Paper Solutions (5)
• The bit position where the minterms differ are represented by dashes (−) in the new terms
written in front of matched pairs.
Group Minterm A B C D
1 4−12 − 1 0 0
8−12 1 − 0 0
2 5−13 − 1 0 1
9−11 1 0 − 1
8−13 1 − 0 1
12−13 1 1 0 −
3 11-15 1 − 1 1
13−15 1 1 − 1
Table (b)
(3) Combine the minterm pairs into groups of four (Quad) : Group the minterm pairs of table (b)
(adjacent groups) to form minterm quads as shown in table (c) and place a () mark on the
matched pairs in table (b).
Group Minterm A B C D
1 4−12−5−13 − 1 0 −
8−12−9−13 1 − 0 −
2 9−11−13−15 1 − − 1
9−13−11−15 1 − − 1
Table (c)
No further grouping is possible after this. So the process of grouping stops here.
(4) Collect all nonchecked terms : Collect all the nonchecked (non-tick marked) terms from
tables (a), (b) and (c), because they are the prime implicants (PI)
∴ y = AD + BC + AC + ABC
(5) Prepare the PI table and obtain the EPIs : The PI table is shown in table (d).
Decimal number Give Minterms
PI
corresponding to PI 4 5 8 9 11 12 13 15
ABC 12, 13 × ×
AD 9, 11, 13, 15 × × × ×
BC 4, 5, 12, 13 × × × ×
AC 8, 9, 12, 13 × × × ×
Table (d)
(6) In the PI table find the columns containing only 1 cross (×) and encircle those (×) marks. Put
() mark in front of the corresponding PIs.
These () marked prime implicants in table (d) are the essential prime implicants (EPIs).
Hence the simplified expression for F is
F (A, B, C, D) = BC + AD + AC
Logic Diagram :
Step 1 : A B C D
y
(6) Vidyalankar : S.E. – DLDA
CD 01 1 0 1 1
CD 11 0 0 1 1
CD 10 0 0 1 1
F
C BC
Working
Case I : S = 0 and R = 0
When any one input of a NAND gate becomes 0, its output is forced to 1.
Here S = R = 0. Q and Q both will be forced to be equal to 1.
This is an indeterminate state and hence should be avoided.
This is also called as Race condition or forbidden condition.
Case II : S = 0 and R = l
Since S = 0, it forces Q to be 1. Hence both inputs to NAND gate 1 are 1.
Hence Q = 0.
Thus with S = 0 and R = 1 the outputs are
Q = 0 and Q = 1. This is the reset condition.
Case III : S = l, R=0
Since R = 0, Q is forced to 1. Hence both inputs to NAND-2 are 1.
Hence Q = 0
Thus with S = 1 and R = 0 the outputs are
Q = 1 and Q = 0. This is the set condition.
Case IV : S = 1, R = 1
Q n +1 = R ⋅ Q n and Q n + 1 = S ⋅ Qn
Using De−Morgan's Theorem
Q n +1 = R + Q n and Q n +1 = S + Q n
Substitute R = 0 and S = 0 to get
Q n +1 = 0 + Q n = Qn and Q n +1 = Q n + Q n
Thus there is no change in the outputs if S = R = 1.
(8) Vidyalankar : S.E. – DLDA
Clocked RS Flip-Flop :
The clocked RS flip-flop shown above. It is basically the S - R flip-flop using NAND gates with
an additional “clock” input. It is also called as level triggered SR-FF.
The outputs of simple RS flip-flop used to change instantly in response to any change made at the
input. But this doesn’t happen with the clocked S R flip-flop.
For this circuit, the change in output will take place if and only if the clock input is made active
i.e Clk=1.In short, this circuit will operate as an SR flip-flop if clock = 1 but there is no change in
the outputs if clock = 0.
When we consider the TOGGLE state we assume that the inputs do not change during the clock
pulse (CLK = 1), which is not true because of the feedback connections.
Now we have J = K= 1 and Q = 1 and after another time interval of ∆t the output will change
back to Q=0. Hence, we conclude that for the duration t of the clock pulse, the output will
oscillate back and forth between 0 and 1. At the end of the clock pulse, the value of Q is
uncertain. This situation is referred to as the race-around condition.
Clk
Truth Table :
J K Qn Qn Qn + 1 Qn +1
0 0 0 1 0 1
1 0 1 0
0 1 0 1 0 1
1 0 0 1
1 0 0 1 1 0
1 0 1 1
1 1 0 1 1 0
1 0 0 1
Excitation :
Qn Qn + 1 J K
0 0 0 ×
0 1 1 ×
1 0 × 1
1 1 × 0
4. (a) Shift Registers : An array of flip-flops is required to store binary information i.e., number of bits
in binary word. Thus one flip-flop is required for each bit. The combination of n flip flops can
therefore store n bit binary words. It is then called as a Register.
A shift register is a n bit register with a provision for shifting its stored data by one bit position at
each tick of the clock. This type of bit movement or shifting is essential for certain arithmetic and
logic operations used in microprocessors. According to the data movement in a register, they are
classified as shown in the block diagram.
(10) Vidyalankar : S.E. – DLDA
Serial Serial Serial
Input Register(s) Output Input Register(s)
MSB ……… LSB
Parallel Input
Parallel Output
MSB ……… LSB
Serial Parallel Input
Register(s) Output
………
Register(s)
………
Serial
Input
D0 Q0 D1 Q1 D2 Q2 D3 Q 3 Serial
Clk Clk Clk Clk Output
Clock
At each clock tick the register load from the data D3D2D1D0 or shifts the data depending on the
value of LOAD/SHIFT. Internally the device uses 2 input multiplexer on each flip flop to select
between the two cases.
When LOAD/SHIFT = 1,
The register loads a new data from the input D3D2D1D0
When LOAD/SHIFT = 0,
The register shifts the current contents by one bit position.
4. (b) (i)
Asynchronous Counter Synchronous Counter
1. In an Asynchronous Counter the output of In a Synchronous Counter all the Flip Flop’s
one Flip Flop acts as the clock Input of the are connected to a common clock signal.
next Flip Flop.
2. Speed is High. Speed is Low.
3. Only JK or T Flip Flop can be used to Synchronous Counter can be designed using
construct Asynchronous Counter. JK, RS, T and D Flip Flop.
4. Problem of Glitch arises. Problem of Lockout.
5. Only serial count either up or down is Random and serial counting is possible.
possible.
6. Settling time is more. Settling time is less.
7. Also called as serial counter. Also called as Parallel Counter.
8.
Prelim Question Paper Solutions (11)
(ii)
Combinational Circuits Sequential Circuits
1. In combinational circuits the output depends In sequential circuits the output depends not
only on the present set of inputs at any only on the present set of inputs but also the
instant of time. previous output.
2. No concepts of memory are used. To store the previous output memory is used.
3. Outputs are lost when input signals are Output signals are retained till the next
removed. levels of inputs are applied.
4. e.g., MUX DEMUX, ENCODER, e.g., FLIP FLOPS, COUNTERS SHIFT
DECODER. REGISTERS.
5. Clock is not used in combinational Logic Clock is the main feature of sequential
Circuits Circuits.
6.
INPUTS OUTPUTS
Input Combinational
Logic
Combinational
Logic Circuit
Memory
4. (c) Lock out condition is an erroneous condition which generally occurs in synchronous counters. It
occurs when the counter enters an invalid count state from a valid state and tends to remain in the
invalid loop.
Consider the 3-bit counter which counts the following sequence:
0 1 3 4 5 7
Here the invalid states are 2, 6.
If the counter enters state 2 (invalid) the counter becomes unpredictable and may enter the loop
For eg.
2 6
0 1 3 4 5 7
The delay times are measured between the 50 % voltage levels of input and output waveforms.
There are two delay times
tPHL → when output goes from High to Low
tPLH → when output goes from Low to High
Propagation delay is average of above two delay times.
Indeterminate Indeterminate
logic 0
VOL = 0.4 V VIL = 1.5 V
16 mA 5 nA logic 0
0V 0V
[TTL output current & voltage [CMOS input current & voltage
profile] profile]
When output of TTL low, the lower end of 3.3 KΩ is grounded. Therefore the TTL driver
sinks a current of
VCC 5V
Isink = = = 1.52 mA
R 3.3 K
Therefore there is no effect of 3.3 KΩ at low level of TTL.
When the TTL output is in the high state, means its output VOH = 2.4 V. Because of pull−up
resistor, output rises above 2.4 V, which forces the upper totem pole transistor (Q4) into
cutoff. The pull up action is now passive because the supply voltage pulling the output upto
+5V through pull-up resistor.
(14) Vidyalankar : S.E. – DLDA
The minimum resistance is determined by the maximum sink current of the TTL device
IOL (max) = 16 mA. In worst case, supply voltage may be high as 5.25 V. So minimum
resistance is
5.25 V
Rmin = = 328 ohms [std. 330 Ω]
16 mA
(ii) Different power supply:
(+5 V) (+12 V)
We know TTL works on supply voltage
from 4.75 V to 5.25 V. Similarly CMOS 6.8 KΩ
works on 3 to 15 V. So if different supplies
are present then net interfacing will be
following way.
TTL driver CMOS load
When TTL output is low, we can visualize a ground on the lower end of the pull up resistor.
Therefore TTL device has to sink current approximately.
12
Isink = = 1.76 mA
6.8 K
Similarly when TTL output is high, the output rises passively to +12 V. In other case the TTL
output is compatible with the CMOS input.
Rmin value we can take upto
12
Rmin = ≈ 750 Ω
16 mA
CMOS TTL
5V VCC = 5 V logic 1
logic 1 0.36 mA 40 µA
VOH = 4.5 V VIH = 2 V
Indeterminate Indeterminate
logic 0
VOL = 0.5 V VIL = 0.8 V
0.4 mA 1.6 mA logic 0
0V 0V
Prelim Question Paper Solutions (15)
5. (c)
Whenever a counter circuit is discussed it is assumed that outputs are reset. Whenever the power
is switched on, we cannot predict the output of Flip-Flop. Therefore a CLR terminal is normally
provided. The CLR terminal requires an external circuitry to force the output to go low. This is
called as the “POWER ON RESET” circuit.
In addition to the existing circuit one RC network with AND gate is used. When the power supply
is switched ON, Vcc will appear across RC network at time t0. Hence the capacitor starts
charging. The charging slope depends on RC time constant. When capacitor voltage (Voutput)
reaches to voltage Vth (Threshold Voltage), chip IC will consider it as HIGH logic. Therefore for
duration t1-t0 output of AND gate is ‘0’.Therefore the Flip Flop’s are cleared.
(16) Vidyalankar : S.E. – DLDA
D4 D3 D 2 P3 D1 P2 P1
∴ Hamming code =
(1 1 0 0 1 1 0) 2
= (1100110) 2
(ii) D 4 D3 D 2 D1 = (1001)2
P1 = 0; P2 = 0; P3 = 0
D4 D3 D 2 P3 D1 P2 P1
Hamming Code =
(1 0 0 1 1 0 0) 2
= (1001100) 2
6. (a) • The "Race Around Condition" that we are going to explain occurs when J = K = 1 i.e. when
the latch is in the toggle mode.
• Refer figure 1 which shows the waveforms for the various modes, when a rectangular
waveform is applied to the "Enable" input
Interval t0-t1 :
• During this interval J = 1, K = 0 and E = 0.
• Hence the latch is disabled and there is no change in Q.
Interval t1-t2 :
• During this interval J = 1, K = 0 and E = l.
• Hence this is a set condition and Q becomes 1.
• These changed outputs get applied at the inputs of NAND gates 3 and 4 of the JK latch. Thus
the new inputs to Gates 3 and 4 are :
NAND-3 : J = 1, E = l, Q = 1
NAND-4 : K = 1, E = 1, Q = 0.
• Hence R' will become 0 and S' will become 1.
• Therefore after a time period corresponding to the propagation delay, the Q and Q outputs
will change to, Q = 1 and Q = 0.
• These changed outputs again get applied to the inputs of NAND-3 and 4 and the outputs will
toggle again.
• Thus as long as J = K = 1 and E = 1, the outputs will keep toggling indefinitely as shown in figure
1. This multiple toggling in the J-K latch is called as Race Around condition. It must be
avoided.
Interval t3-t4 :
• During this interval J = 0, K = 1 and E = 1. Hence it is the reset condition.
• So Q becomes zero.
Operation :
• We will discuss the operation of the master slave JK FF with reference to its truth table.
• We must always remember one important thing that in the positive half cycle of the clock, the
master is active and in the negative half cycle, the slave its active. This is shown in figure 3.
Fig.3
Case 1 : Clock = ×, J = K = 0
(i) For clock = 1, the master is active, slave inactive. As J = K = 0. Therefore, outputs of master i.e.
Q and Q1 will not change. Hence the S and R inputs to the slave will remain unchanged.
(ii) As soon as clock = 0, the slave becomes active and master is inactive. But since the S and
R inputs have not changed, the slave outputs will also remain unchanged.
∴ he outputs will not change if J = K = 0.
We will talk in terms of B3 B2 B1 B0 and G3 G2 G1 G0. Let’s say given gray code is G3 G2 G1 G0
(a) B3 (binary MSB) = G3 (MSB as it is)
(b) B3 bit should be EX−ORed with next of gray, means B3 ⊕ G2, this will give B2,
∴B2 = B3 ⊕ G2.
(c) Resulting bit in step II is B2, is EX−ORed with next bit from gray i.e. G1, i.e. B2 ⊕ G1. The
resulting bit is B1, B2 ⊕ G1 = B1.
MSB LSB
Gray Code G3 G2 G1 G0
⊕ ⊕ ⊕
Binary Code B3 B2 B1 B0
(MSB) (LSB)
Let’s take one example to understand the same convert 0 1 0 1 gray to equivalent binary.
MSB LSB
Gray 0 1 0 1
⊕ ⊕ ⊕
Binary 0 1 1 0
MSB
B3 B2 B1 B0
B3 = G3 = 0.
B2 = B3 ⊕ G2 = 0 ⊕ 1 = 1
B1 = B2 ⊕ G1 = 1 ⊕ 0 = 1
B0 = B1 ⊕ G0 = 1 ⊕ 1 = 0
∴gray 0 1 0 1 ⇒ 0 1 1 0 binary.
Gray Binary
G3 G2 G1 G0 B3 B2 B1 B0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 1
0 1 0 1 0 1 1 0
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
1 0 0 0 1 1 1 1
1 0 0 1 1 1 1 0
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 0 1 0 1 1
1 1 1 1 1 0 1 0
Figure (a) shows 3-to-8 line decoder. Here, 3 inputs are decoded into eight outputs, each output
represent one of the minterms of the 3-input variables. The three inverters provide the
complement of the inputs and each one of the eight AND gates generate one of the minterms.
Enable input is provided to activate decoded output base on data inputs A, B and C. The table
shows the truth table for 3 to 8 decoder.
Prelim Question Paper Solutions (21)
• As shown in Figure 1(b) the multiplexer acts like a digitally controlled single pole, multiple way
switch. The output gets connected to only one of the n data inputs at given instant of time.
MUX
D0 D0
D1
D1
D2 n:1
Multiplexer Y (Output) D2 (Output)
Dn−1
E Dn−1
(Enable
input)
Sm−1 S1 S0 Sm−1 S0
Select inputs
(a) Block diagram of an n : 1 multiplexer (b) Equivalent circuit
Fig. 1
Necessity of Multiplexers:
• In most of the electronic systems, the digital data is available on more than one line. It is
necessary to route this data over a single line.
• Under such circumstances we require a circuit which selects one of the many inputs at a time.
• This circuit is nothing else but a multiplexer that has many inputs, one output and some select
inputs.
• Multiplexer improves the reliability of the digital system because it reduces the number of
external wired connections.
Advantages of Multiplexers:
1. It reduces the number of wires.
2. So it reduces the circuit complexity and cost.
3. We can implement many combinational circuits using MUX.
4. It simplifies the logic design.
5. It does not need the k maps and simplification.
Types of Multiplexers:
The types of multiplexer
1) 2: 1 multiplexer 2) 4: 1 multiplexer 3) 8: 1 multiplexer
4) 16: 1 multiplexer 5) 32: 1 multiplexer
Applications of a Multiplexer:
Some of the important applications of a multiplexer are as follows:
1. It is used as a data selector to select one out of many data inputs.
2. It is used for simplification of logic design.
3. In the data acquisition system.
4. In designing the combinational circuits.
5. In the D/A converters.
6. To minimize the number of connections.
Multiplexer Tree:
• The multiplexer having more number of inputs can be obtained by cascading two or more
multiplexers with less number of inputs.
• This is called as a multiplexer tree.
• This concept will be clear after solving the following examples.
Prelim Question Paper Solutions (23)
Demultiplexer Principle :
• The block diagram of a demultiplexer or decoder is shown in Figure 2(a).
• It has only one input, “n” outputs, and “m” select inputs.
• A demultiplexer performs the reverse operation of a multiplexer i.e. it receives one input and
distributes it over several outputs.
• At a time only one output line is selected by the select lines and the input is transmitted to the
selected output line.
• Hence a demultiplexer is equivalent to a single pole multiple way switch as shown in Figure 2(b).
Y0 Y0
Data Y1 Y1
Dn
input Y2 Data Y2
Demultiplexer Outputs input Outputs
Enable E
Yn−1 Yn−1
7. (b) ALU
Arithmetic Logic Unit (ALU) :
• ALU is a very widely used and popular combinational circuit.
• It is capable of performing the arithmetic as well as the logic operations.
• ALU is the heart of any microprocessor.
• Figure 1 shows the block diagram of ALU IC 74181, Table 1 gives the pin description and
Figure 2 gives its pin configuration.
• 74181 is a 24-pin IC dual in line (DTP) package.
• A (A0 − A3) and B (B0 − B3) are the two 4 bit variables.
Table 1: Pin description of 74181
Pin Name Description
A0 − A3 Operated inputs
B0 − B3 Operand inputs
S0 − S3 Function select inputs
M Mode control input
Cn Carry input (active low)
F0 − F3 Function output
A=B Comparator output (equality output)
G Carry generate output
P Carry propagate otput
Cn +4 Carry output (active low)
Fig. 1 : Block diagram of ALU IC 74181 Fig. 2 : Pin configuration of the ALU IC 74181
• It can perform a total of 16 arithmetic operations which includes addition, subtraction,
compare and double operations.
• It provides many logic operations such as AND, OR, NOR, NAND EX-OR, compare etc on
the two four bit variables.
• 74181 is a high speed 4 bit parallel ALU.
• It is controlled by four function select inputs S0 − S3. These lines can select 16 different
operations for one mode (arithmetic) and 16 another operations for the other mode (logic).
• M is the mode control input. It decides the mode of operation to be either arithmetic or logic.
M=0 For arithmetic operations
M =1 For logic operations
Prelim Question Paper Solutions (25)
• G and P outputs are used when a number of 74181 circuits are to be used in cascade alongwith
74182, the look ahead carry generator circuit to make the arithmetic operations faster.
• When mode control input is high (M = 1), then the logic operations are performed on the
individual bits and all the internal carries are enabled.
• When mode control input is low (M = 0), the arithmetic operations are performed on the two
4-bit words and all the internal carriers are enabled.
• IC 74181 incorporates full internal carry lookahead. This enhances its speed of operation to a
great extent.
• It provides a ripple carry between the devices using the Cn+4 output. (see cascading of two
74181s).
• For exploiting the option of carry lookahead between the packages, we have to use the P
(carry propagate) and G (carry generate) outputs. This option should be used only when the
speed requirements are stringent.
• If low speed of operation is acceptable, the ripple carry operation using C n+4 and Cn should be
exercised.
A = B Output :
1. A = B output indicates the logical equality of the two operands. This output goes HIGH when
the unit is in the subtract mode and A = B.
2. This output also goes high when all the four “Function outputs” are HIGH.
3. It is possible to wire AND the A = B outputs when more than one 74181s are being used. The
wire ANDing becomes possible because A = B is an open collector output. This enables us to
compare words which are longer than 4-bits.
Function tables: (If the question is 10 marks, then mention the functional table in details)
• Table 2(a) shows the function table for IC 74181. It is valid for the active high operands and
active high outputs, and with C n = 1 i.e. no carry.
Table 2(a): Function table for IC 74181 with active high data and C n = 1 (no carry)
Function Select Inputs Active high data and Cn = 1
S3 S2 S1 S0 Logic operations (M = 1) Arithmetic operations (M = 0)
0 0 0 0 F = A (Inversion) F=A
0 0 0 1 F = A + B (NOR) F=A+B
0 0 1 0 F = A.B F=A+ B
0 0 1 1 F=0 F = minus 1 (2’s comp)
0 1 0 0 F = AB (NAND) F = A plus A B
0 1 0 1 F = B (Invert) F = (A + B)plus A B
0 1 1 0 F = A ⊕ B (EXOR) F = A minus B minus 1
0 1 1 1 F = AB F = A B minus 1
1 0 0 0 F = A+ B F = A plus AB
1 0 0 1 F = A ⊕ B (EXNOR) F = A plus B
1 0 1 0 F=B F = (A + B ) plus AB
1 0 1 1 F = AB (AND) F = AB minus 1
1 1 0 0 F = logic 1 F = A plus A*
1 1 0 1 F=A+ B F = (A + B) plus A
1 1 1 0 F = A + B (OR) F = (A + B ) plus A
1 1 1 1 F=A F = A Minus 1
Each bit is shifted to the next more significant position.
• The arithmetic operations listed in function Table 2(a), correspond to no carry input. They
will get modified if the carry input is present as shown in Table 2(b).
(26) Vidyalankar : S.E. – DLDA
• It is possible to use IC 74181 with either active high inputs or with active low inputs. With
active low inputs the device produces active low outputs and with active high inputs it
produces active high outputs.
• The function table for active low inputs and outputs has been given in Table 2(b).
Table 2(b) : Function table for IC 74181 with active low data and C n = 0 (with carry).
Function Select Inputs Active Low data and Cn = 0
S3 S2 S1 S0 Logic operations M = 0 Arithmetic operations M = 1
0 0 0 0 F = A (inversion) F = A minus 1
0 0 0 1 F = AB (NAND) F = AB minus 1
0 0 1 0 F = A+B F = A B minus 1
0 0 1 1 F=1 F = minus 1
0 0 1 1 F = A+B F = A plus (A + B )
0 1 0 1 F = B (inversion) F = AB plus (A + B )
Synchronous Counters
When counter is clocked such that each flip-flop in the counter is triggered at the same time, the
counter is called as synchronous counter. Figure 2 shows two stage synchronous counter.
Here, clock signal is connected in parallel to clock inputs of both the flip-flops. But the QA
output of first stage is used to drive the J and K inputs of the second stage. Let us see the
operation of the circuit. Initially, we assume that the QA = QB = 0. When positive edge of the
first clock pulse is applied, flip flop A will toggle because JA = KA = 1, whereas flip-flop B output
will remain zero because JB = KB = 0. After first clock pulse QA = 1 and QB = 0. at negative
going edge of the second clock pulse both flip-flops will toggle because they both have a toggle
condition on their J and K inputs (JA = KA = JB = KB = 1). Thus after second clock pulse, QA = 0
and QB = 1. At negative going edge of the third clock pulse flip-flop A toggles making QA = 1,
but flip-flop B remains set i.e., QB = 1. Finally, at the leading edge of the fourth clock pulse both
flip-flop toggle as their JK inputs are at logic 1. This result QA = QB = 0 and counter recycled
back to its original state. The timing details of above operation is shown in figure 3.
CP
QA
QB
Fig.3: Timing diagram and state sequence for the 2-bit synchronous counter.
Looking at figure 4(b), we can see that QA changes on each clock pulse as we progress from its
original state to its final state and then back to its original state. To produce this operation, flip-
flop A is held in the toggle mode by connecting J and K inputs to HIGH. Now let us see what
flip-flop B does. Flip-flop B toggles, when QA is 1. When QA is a 0, flip-flop B is in the no-
change mode and remains in its present state. We can notice that flip-flop C has to change its
state only when QB and QA both are at logic 1. This condition is detected by AND gate and
applied to the J and K inputs of flip-flop C. Whenever both QA and QB are HIGH, the output of
the AND gate makes the J and K inputs of flip-flop C HIGH, and flip-flop C toggles on the
following clock pulse. At all other times, the J and K inputs of flip-flop C are held LOW by the
AND gate output, and flip-flop does not change state.
B0 = D4 + D5 + D6 + D7
B1 = D2 + D3 + D6 + D7
B2 = D1 + D3 + D5 + D7
I4 1 16 VCC
Pins Description
I5 2 15 EO
I0 to I7 Active low inputs
I6 3 14 GS
A 0 to A 2 Ative low outputs
I7 4 13 I3
IC 74148 EI Enable Input
EI 5 12 I2
EO Enable Output
A2 6 11 I1
GS Group Singal
A1 7 10 I0
GND 8 9 A0
Description :
• I0 to I7 are the eight active low inputs.
• A 0 to A 2 are the three active low outputs.
• EI is the active low enable input terminal. If EI is at logic 1 then it will force all the output to
become high i.e. inactive. This feature can be used to allow some time for the new input data
to settle down.
• GS is the group signal output. It is used for indication that one of the inputs is low i.e. active.
• If all the inputs are inactive (high) the enable output (EQ) goes to logic 0.
(30) Vidyalankar : S.E. – DLDA
Truth table :
The truth table of IC 74148 is shown in Table.