Digital Logic Design Module
Digital Logic Design Module
ELECTRICAL ENGINEERING
DEPARTMENT
OF
ELECTRICAL & COMPUTER ENGINEERING
Prepared by
EYOB GEDLIE
Feb, 2022
i
Contents of Course
Digita logic Design
The Decimal Number System, The Binary Number System, The Octal Number System, The
Hexadecimal Number System, Data Types, Number System, Arithmetic Operation, 1’s, 2’s, 9’s
& 10’s Complements, Binary Coded Decimal(BCD), Boolean Logic Operations, Sum of
Products and Products of Sum, Karnaugh Map, Logic Gates and Networks, Introduction of
Arithmetic Operation, Half Adder & Full Adder, Half & Full Subtractor, 4-Bit Parallel
Adder/Subtractor, BCD Adder, The Design of Combinational Circuits, Combinational Circuits,
Multiplexers (Data Selectors), Demultiplexers (Data Distributors), Encoders, Parity
Generators/Checkers, Latches, Flip Flops, D Flip Flop, Master-Slave Flip-Flops, Counters,
Asynchronous Counter, Asynchronous down counter, Up down counter, Registers, Shift
Registers, Universal Shift Registers, Shift Register Counters, Introduction of Memory Devices,
Random Access Memory, Read Only Memory (ROM), Programmable Read Only Memory,
Erasable Programmable Read Only Memory.
ii
DIGITAL LOGIC DESIGN
OBJECTIVES
This course provides in-depth knowledge of switching theory and the logic design techniques of digital
circuits, which is the basis for design of any digital circuit. The course objectives are:
• To learn basic techniques for the design of digital circuits and fundamental concepts used in
the design of digital systems.
Chapter 1:
Number System and Boolean Algebra :
Number Systems, Base Conversion Methods, Complements of Numbers, Codes- Binary Codes, Binary
Coded Decimal Code and its Properties, Unit Distance Codes, Error Detecting and Correcting Codes.
Chapter 2:
Minimization Techniques:
Introduction, The minimization with theorems, The Karnaugh Map Method, Three, Four and
Five variable K- Maps, Prime and Essential Implications, Don’t Care Map Entries, Using the Maps for
Simplifying, Quine-McCluskey Method, Multilevel NAND/NOR realizations.
classification of sequential circuits, The binary cell, The S-R-Latch Flip-Flop The D-Latch
Flip-Flop, The “Clocked T” Flip-Flop, The “ Clocked J-K” Flip-Flop, Design of a Clocked Flip-Flop, Timing
and Triggering Consideration.
Chapter 4:
Sequential Circuits:
Introduction, Basic Architectural Distinctions between Combinational and Sequential circuits,
Latches,Flip-Flops, SR,JK,D,T and Master slave, characteristic Tables and equations, Conversion from
one type of Flip-Flop to another,
Counters - Design of Single Mode Counter, Ripple Counter, Ring Counter, Shift Register, Ring counter
using Shift Register UNIT -V:
Memory Devices:
Clasification of memories – ROM : ROM organization, PROM, EPROM,EEPROM, RAM: RAM
organization, Write operation, Read operation, Static RAM , Programmable Logic Devices:
Programmable Logic Array(PLA),Programmable Array Logic, Implementaion of
Now a day’s digital systems are used in wide variety of industrial and consumer products
such as automated industrial machinery, pocket calculators, microprocessors, digital computers,
digital watches, TV games and signal processing and so on. Characteristics of Digital systems
Digital systems use digital circuits that can process digital signals which can take either 0 or 1
for binary system.
1. Ease of programmability
The digital systems can be used for different applications by simply changing the program
without additional changes in hardware.
The cost of hardware gets reduced by use of digital components and this has been possible
due to advances in IC technology. With ICs the number of components that can be placed in a given
area of Silicon are increased which helps in cost reduction.
3.High speed
Digital processing of data ensures high speed of operation which is possible due to advances in
Digital Signal Processing.
4. High Reliability
Digital systems are highly reliable one of the reasons for that is use of error correction codes.
5. Design is easy
The design of digital systems which require use of Boolean algebra and other digital
techniques is easier compared to analog designing.
DIGITAL LOGIC DESIGN Page no. 5
6. Result can be reproduced easily
Since the output of digital systems unlike analog systems is independent of temperature,
noise, humidity and other characteristics of components the reproducibility of results is higher in
digital systems than in analog systems.
Number system is a basis for counting varies items. Modern computers communicate and
operate with binary numbers which use only the digits 0 &1. Basic number system used by humans
is Decimal number system.
For Ex: Let us consider decimal number 18. This number is represented in binary as 10010.
We observe that binary number system take more digits to represent the decimal number. For
large numbers we have to deal with very large binary strings. So this fact gave rise to three new
number systems.
• The base decides the total number of digits available in that number system.
• First digit in the number system is always zero and last digit in the number system is always
base-1.
The left most bit, which has the greatest weight is called the Most Significant Bit (MSB). And
the right most bit which has the least weight is called Least Significant Bit (LSB).
For Ex: 1001.012 = [ ( 1 ) × 23 ] + [ ( 0 ) × 22 ] + [ ( 0 ) × 21 ] + [ ( 1 ) × 20 ] + [ ( 0 ) ×
2-1 ] + [ ( 1 ) × 22 ]
1001.012 = 9.2510
The decimal system has ten symbols: 0,1,2,3,4,5,6,7,8,9. In other words, it has a base of 10.
Octal Number System
Digital systems operate only on binary numbers. Since binary numbers are often very long, two
shorthand notations, octal and hexadecimal, are used for representing large binary numbers. Octal
systems use a base or radix of 8. It uses first eight digits of decimal number system. Thus it has digits
from 0 to 7.
The human beings use decimal number system while computer uses binary number system.
Therefore it is necessary to convert decimal number system into its equivalent binary.
=4x83+0x82+5x81+7x80+0x8-1+6x8-2
=2048+0+40+7+0+0.0937
=2095.093710 vi)
Decimal to Octal Conversion
8 | 378
|
8 |47 --- 2
8 |5 --- 7 ↑
|
0 --- 5
=5728
0.9310 to octal :
0.53x8=4.16
0.16x8=1.28
=0.73418
378.9310=572.73418 vii)
Hexadecimal to Decimal Conversion
Ex: 5C716 to decimal
=1280+192+7
Ex: 2598.67510
1 6 2598
16 162 -6 10 -
2
= A26 (16)
0.67510=0.675x16 -- 10.8
=0.800x16 -- 12.8 ↓
=0.800x16 -- 12.8
=0.800x16 -- 12.8
=0.ACCC16
2598.67510 = A26.ACCC16
The simplest way is to first convert the given octal no. to binary & then the binary no. to
hexadecimal.
Ex: 756.6038
First convert the given hexadecimal no. to binary & then the binary no. to
octal. Ex: B9F.AE16
B 9 F . A E
1011 1001 1111 . 1010 1110
101 110 011 111 . 101 011 100
5 6 3 7 . 5 3 4
=5637.534
Complements:
In digital computers to simplify the subtraction operation & for logical manipulation complements
are used. There are two types of complements used in each radix system.
Instead of subtracting one no. from other the compliment of the subtrahend is added to
minuend. In sign magnitude form, an additional bit called the sign bit is placed in front of the no. If
the sign bit is 0, the no. is +ve, If it is a 1, the no is _ve.
Ex:
0 1 0 1 0 0 1
↓
Sign bit =+41 magnitude
↑
1 1 0 1 0 0 1
Ex:
Given no. Sign mag form 2‘s comp form 1‘s comp form
01101 +13 +13 +13
010111 +23 +23 +23
10111 -7 -7 -8
1101010 -42 -22 -21
Special case in 2’s comp representation:
Whenever a signed no. has a 1 in the sign bit & all 0‘s for the magnitude bits, the decimal
equivalent is -2n , where n is the no of bits in the magnitude . Ex: 1000= -8 & 10000=-16
5. Significant information is containd in the 1‘s of the +ve no.s & 0‘s of the _ve no.s
6. A _ve no. may be converted into a +ve no. by finding its 2‘s comp.
Decimal Sign 2‘s comp form Sign 1‘s comp form Sign mag form
+7 0111 0111 0111
+6 0110 0110 0110
+5 0101 0101 0101
+4 0100 0100 0100
+3 0011 0011 0011
+2 0010 0010 0010
+1 0011 0011 0011
+0 0000 0000 0000
-0 -- 1111 1000
-1 1111 1110 1001
-2 1110 1101 1010
-3 1101 1100 1011
-4 1100 1011 1100
-5 1011 1010 1101
-6 1010 1001 1110
-7 1001 1000 1111
8 1000 -- --
Methods of obtaining 2’s comp of a no:
• In 3 ways
DIGITAL LOGIC DESIGN Page no. 13
1. By obtaining the 1‘s comp of the given no. (by changing all 0‘s to 1‘s & 1‘s to 0‘s) & then
adding 1.
2. By subtracting the given n bit no N from 2n
3. Starting at the LSB , copying down each bit upto & including the first 1 bit
encountered , and complimenting the remaining bits.
Ex: Express -45 in 8 bit 2‘s comp form
00101101
11010010
+1
__ _____ ___
2n = 100000000
Subtract 45= -00101101
+1
___
bits 11010011
Ex:
-73.75 in 12 bit 2‘compform
I method
01001001.1100
10110110.0011
+1
10110110.0100 is 2‘s
II method:
28 = 100000000.0000
Sub 73.75=-01001001.1100
Orginalno : 01001001.1100
10110110.0100
2’s compliment Arithmetic:
• The 2‘s comp system is used to rep –ve no.s using modulus arithmetic . The word
length of a computer is fixed. i.e, if a 4 bit no. is added to another 4 bit no . the result
will be only of 4 bits. Carry if any , from the fourth bit will overflow called the
Modulus arithmetic.
Ex:1100+1111=1011
• In the 2‘s compl subtraction, add the 2‘s comp of the subtrahend to the minuend . If
there is a carry out , ignore it , look at the sign bit I,e, MSB of the sum term .If the
MSB is a 0, the result is positive.& it is in true binary form. If the MSB is a ` ( carry in
or no carry at all) the result is negative.& is in its 2‘s comp form. Take its 2‘s comp to
find its magnitude in binary.
+14 = 00001110
-14 = 11110010 2‘s comp
+46 = 00101110
-14 =+11110010 2‘s comp form of -14
No carry , MSB is a 1, result is _ve & is in 2‘s comp. The magnitude is 2‘s comp of
11001111. i.e, 00110001 = 49. so result is -49
+87.5 = 01010111.1000
-45.75=+11010010.0100
+99 = 01100011
-99 = 10011100
DIGITAL LOGIC DESIGN Page no. 17
+77.25 = 01001101.0100
-77.25 = 10110010.1011
so is for 8 and 1 codes, 7 and 2, 6 and 3, 5 and 4. Codes 2421, 5211, and excess-3 are reflective, whereas
the 8421 code is not.
Sequential Codes
A code is said to be sequential when two subsequent codes, seen as numbers in binary representation,
differ by one. This greatly aids mathematical manipulation of data. The 8421 and Excess-3 codes are
sequential, whereas the 2421 and 5211 codes are not.
Non weighted codes are codes that are not positionally weighted. That is, each position
within the binary number is not assigned a fixed value. Ex: Excess-3 code
Excess-3 Code
Excess-3 is a non weighted code used to express decimal numbers. The code
derives its name from the fact that each binary code is the corresponding 8421
code plus 0011(3).
The gray code belongs to a class of codes called minimum change codes, in
which only one bit in the code changes when moving from one code to the next.
The Gray code is non-weighted code, as the position of bit does not contain any
weight. The gray code is a reflective digital code which has the special property
that any two subsequent numbers codes differ by only one bit. This is also called a
unit- distance code. In digital Gray code has got a special place.
Gray Code MSB-1 is the XOR of binary code MSB and MSB-1.
MSB-2 bit of gray code is XOR of MSB-1 and MSB-2 bit of binary code.
MSB-N bit of gray code is XOR of MSB-N-1 and MSB-N bit of binary code. 8421
BCD code ( Natural BCD code):
Each decimal digit 0 through 9 is coded by a 4 bit binary no. called natural binary
codes. Because of the 8,4,2,1 weights attached to it. It is a weighted code & also sequential .
it is useful for mathematical operations. The advantage of this code is its case of conversion
to & from decimal. It is less efficient than the pure binary, it require more bits.
The disadvantage of the BCD code is that , arithmetic operations are more complex than they are in
pure binary . There are 6 illegal combinations 1010,1011,1100,1101,1110,1111 in these codes, they
are not part of the 8421 BCD code system . The disadvantage of 8421 code is, the rules of binary
addition 8421 no, but only to the individual 4 bit groups. BCD Addition:
It is individually adding the corresponding digits of the decimal no,s expressed in 4 bit binary
groups starting from the LSD . If there is no carry & the sum term is not an illegal code , no
correction is needed .If there is a carry out of one group to the next group or if the sum term is an
illegal code then 610(0100) is added to the sum term of that group & the resulting carry is added to
the next group.
(a)25+13
In BCD 25= 0010 0101
38 0011 1000
___ _________________
/ / / /
+1 +1 +1 +1
1 2 1 6 . 4
BCD Subtraction:
Performed by subtracting the digits of each 4 bit group of the subtrahend the digits from the
corresponding 4- bit group of the minuend in binary starting from the LSD . if there is no borrow
from the next group , then 610(0110)is subtracted from the difference term of this group.
(a)38-15
23 0010 0011
No borrow, so correct
difference.
.(b) 206.7-147.8
Form the 9‘s & 10‘s compliment of the decimal subtrahend & encode that no. in
the 8421 code . the resulting BCD no.s are then added.
___ _________________
. 0110 +1 End around carry
+1011 0011 0110 .
+0110
. 0111
It is a non-weighted BCD code .Each binary codeword is the corresponding 8421 codeword plus
0011(3).It is a sequential code & therefore , can be used for arithmetic operations..It is a self-
complementing code.s o the subtraction by the method of compliment addition is more direct in xs-
3 code than that in 8421 code. The xs-3 code has six invalid states 0000,0010,1101,1110,1111.. It
has interesting properties when used in addition & subtraction. Excess-3 Addition:
Add the xs-3 no.s by adding the 4 bit groups in each column starting from the LSD. If there is no
carry starting from the addition of any of the 4-bit groups , subtract 0011 from the sum term of
Subtract the xs-3 no.s by subtracting each 4 bit group of the subtrahend from the corresponding 4
bit group of the minuend starting form the LSD .if there is no borrow from the next 4-bit group add
0011 to the difference term of such groups (because when decimal digits are subtracted in xs-3 &
there is no borrow , result is normal binary). I f there is a borrow , subtract 0011 from the
differenceterm(b coz taking a borrow is equivalent to adding six invalid states , result is in xs-6)
Ex: 267-175
________
Xs-3 subtraction using 9’s & 10’s compliment methods: Subtraction is performed by the 9‘s
compliment or 10‘s compliment Ex:687-348 The subtrahend (348) xs -3 code & its compliment are:
9‘s comp of 348 = 651
687 687
339 (1)338
+1 end around carry
_
+1 +1 propagate carry
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _-
Gray code is a non-weighted code & is not suitable for arithmetic operations. It is not a BCD code . It
is a cyclic code because successive code words in this code differ in one bit position only i.e, it is a
unit distance code.Popular of the unit distance code.It is also a reflective code i.e,both reflective &
unit distance. The n least significant bits for 2n through 2n+1-1 are the mirror images of thosr for 0
through 2n-1.An N bit gray code can be obtained by reflecting an N- 1 bit code about an axis at the
end of the code, & putting the MSB of 0 above the axis & the MSB of 1 below the axis.
Reflection of gray codes:
1100 8 1000
1101 9 1001
1111 10 1010
1110 11 1011
1010 12 1100
1011 13 1101
1001 14 1110
1000 15 1111
Parity: The simplest techniques for detecting errors is that of adding an extra bit known as
parity bit to each word being transmitted.Two types of parity: Oddparity, evenparity
forodd parity, the parity bit is set to a ‗0‘ or a ‗1‘ at the transmitter such that the total no. of
1 bit in the word including the parity bit is an odd no.For even parity, the parity bit is set to
a ‗0‘ or a ‗1‘ at the transmitter such that the parity bit is an even no.
Ans:
Checksums:
Simple parity can‘t detect two errors within the same word. To overcome this, use a sort of 2
dimensional parity. As each word is transmitted, it is added to the sum of the previously transmitted
words, and the sum retained at the transmitter end. At the end of transmission, the sum called the
check sum. Up to that time sent to the receiver. The receiver can check its sum with the transmitted
sum. If the two sums are the same, then no errors were detected at the receiver end. If there is an
error, the receiving location can ask for retransmission of the entire data, used in teleprocessing
systems.
Block parity:
Block of data shown is create the row & column parity bits for the data using odd parity.
A code is said to be an error –correcting code, if the code word can always be deduced from an
erroneous word. For a code to be a single bit error correcting code, the minimum distance of that
code must be three. The minimum distance of that code is the smallest no. of bits by which any two
code words must differ. A code with minimum distance of 3 can‘t only correct single bit errors but
also detect ( can‘t correct) two bit errors, The key to error correction is that it must be possible to
detect & locate erroneous that it must be possible to detect & locate erroneous digits. If the location
of an error has been determined. Then by complementing the erroneous digit, the message can be
corrected , error correcting , code is the Hamming code , In this , to each group of m information or
message or data bits, K parity checking bits denoted by P1,P2,----------pk located at positions 2 k-1
from left are added to form an (m+k) bit code word. To correct the error, k parity checks are
performed on selected digits of each code word, & the position of the error bit is located by forming
an error word, & the error bit is then complemented. The k bit error word is generated by putting a
0 or a 1 in the 2 k-1th position depending upon whether the check for parity involving the parity bit
Pk is satisfied or not.Error positions & their corresponding values :
C4 C3 C2 C1 C4 C3 C2 C1 C3 C2 C1
0 0000 0000 000
1 0001 0001 001
2 0010 0010 010
3 0011 0011 011
4 0100 0100 100
5 0101 0101 101
6 0 110 0 1 10 110
7 0 111 0 1 11 111
8 1 0 0 0 1 0 0 0
9 1 001 1 0 01
10 1 010 1 0 10
11 1 011 1 0 11
12 1 10 0 1 1 0 0
13 1 10 1
14 1 11 0
15 1 1 1 1
P1 P2 D3 P4 D5 D6 D7
D—Data bits P-
Parity
bits
0 00 00 0 0 0 1 0 00 0 1 1
1 11 01 0 0 1 1 0 01 1 0 0
2 01 01 0 1 1 0 10 0 1 0 1
3 10 00 0 1 1 1 1 00 1 1 0
4 10 01 1 0 0 0 0 01 1 1 1
5 010 0 1 0 1 1 1 10 0 0 0
6 11 00 1 10 0 0 11 0 0 1
7 00 01 1 11 1 0 11010
8 11 10 0 00 0 1 100 11
9 00 11 0 01 0 1 1 1100
Ex: Encode the data bits 1101 into the 7 bit even parity Hamming Code
1 1 0 1
Bits 1,3,5,7 (C1 1001) →no error →put a 0 in the 1‘s position→C1=0
Bits 4,5,6,7 (C4 1001)) →no error →put a 0 in the 4‘s position→C3=0
12-Bit Hamming Code:It transmit 8 data bits, 4 parity bits located at position 20 21 22 23
Word format is
Alphanumeric Codes:
These codes are used to encode the characteristics of alphabet in addition to the decimal digits. It is
used for transmitting data between computers & its I/O device such as printers, keyboards & video
display terminals.Popular modern alphanumeric codes are ASCII code & EBCDIC code.
Digital Logic Gates
Boolean functions are expressed in terms of AND, OR, and NOT operations, it is easier to
implement a Boolean function with these type of gates.
NAND and NOR gates are called Universal gates. All fundamental gates (NOT, AND, OR) can be
realized by using either only NAND or only NOR gate. A universal gate provides flexibility and offers
enormous advantage to logic designers.
NAND Known as a “universal” gate because ANY digital circuit can be implemented with NAND gates
alone.
To prove the above, it suffices to show that AND, OR, and NOT can be implemented using NAND
gates only.
Boolean Algebra: In 1854, George Boole developed an algebraic system now called Boolean
algebra. In 1938, Claude E. Shannon introduced a two‐valued Boolean algebra called switching
algebra that represented the properties of bistable electrical switching circuits. For the formal
definition of Boolean algebra, we shall employ the postulates formulated by E. V. Huntington in
1904.
Boolean algebra is a system of mathematical logic. It is an algebraic system consisting of the set of
elements (0, 1), two binary operators called OR, AND, and one unary operator NOT. It is the basic
Axioms or Postulates of Boolean algebra are a set of logical expressions that we accept
without proof and upon which we can build a set of useful theorems.
OR Law
Law1: A+0=A
AND Law
Law2: A+1=1
Law1: A.0=0 (Null law)
Law3: A+A=A (Impotence
Law2: A.1=A (Identity law)
law)
Law3: A.A=A (Impotence law)
CLOSURE: The Boolean system is closed with respect to a binary operator if for every pair of
Boolean values,it produces a Boolean result. For example, logical AND is closed in the Boolean
system because it accepts only Boolean operands and produces only Boolean results.
ASSOCIATIVE LAW:
A binary operator * on a set S is said to be associative whenever (x * y) * z = x * (y * z) for all x, y, z Î S,
forall Boolean values x, y and z.
COMMUTATIVE LAW:
A binary operator * on a set S is said to be commutative whenever x * y = y * x for all x, y, z є S
IDENTITY ELEMENT:
A set S is said to have an identity element with respect to a binary operation * on S if there exists an
element e є S with the property e * x = x * e = x for every x є S
• x·1=1
• x+x=x
• x·x=x
• x + x’ = x
• x · x’ = 0
• x+y=y+x
• x+(y+z)=(x+y)+z
• x (yz) = (xy) z
• x ( y + z ) = xy + xz
• x + yz = ( x + y )( x + z)
• ( x + y )’ = x’ y’
• ( xy )’ = x’ + y’
• (x’)’ = x
DeMorgan's Theorem
Associative law
Law2: A(B.C) = (A.B)C
Law1: A +AB =A
Solution: A(1+B)
A
A(1+B)
A
Consensus Theorem
The BC term is called the consensus term and is redundant. The consensus term is formed
from a PAIR OF TERMS in which a variable (A) and its complement (A’) are present; the
consensus term is formed by multiplying the two terms and leaving out the selected
variable and its complement
Consensus Theorem1 Proof:
AB+A’C+BC=AB+A’C+(A+A’)BC
=AB+A’C+ABC+A’BC
Principle of Duality
Each postulate consists of two expressions statement one expression is transformed into the other
by interchanging the operations (+) and (⋅) as well as the identity elements 0 and 1.
Such expressions are known as duals of each other.
If some equivalence is proved, then its dual is also immediately true. If we prove: (x.x)+(x’+x’)=1,
then we have by duality: (x+x)⋅(x’.x’)=0
The Huntington postulates were listed in pairs and designated by part (a) and part (b) in below
table.
Table for Postulates and Theorems of Boolean algebra
Part-A Part-B
A+0=A A.0=0
A+1=1 A.1=A
A+A=A (Impotence law) A.A=A (Impotence law)
A+ A=1 A. A=0
--
x y z F1
0 0 0 0
The function F1 is equal to 1 if x is equal to 1 or if both y’ and z
0 0 1 1
are equal to 1. F1 is equal to 0 otherwise. The complement
0 1 0 0
operation dictates that when y’ = 1, y = 0. Therefore, F1 = 1 if x
0 1 1 0 = 1 or if y = 0 and z = 1.
A Boolean function expresses the logical relationship between
1 0 0 1
binary variables and is evaluated by determining the binary value
1 0 1 1
of the expression for all possible values of the variables.
1 1 0 1 A Boolean function can be represented in a truth table.
x y z F1 F2 F3
0 0 0 0 1 1
0 0 1 0 0 1
Note:
Q: Let a function F() depend on n variables. How many rows are there in the truth table of F() ? A: 2n
rows, since there are 2n possible binary patterns/combinations for the n variables.
Truth Tables
• Enumerates all possible combinations of variable values and the corresponding function
value
• Truth tables for some arbitrary functions
F1(x,y,z), F2(x,y,z), and F3(x,y,z) are shown to the below.
0 1 0 0 0 1
0 1 1 0 1 1
1 0 0 0 1 0
1 0 1 0 1 0
1 1 1 1 0 1
1 0 1 0 0
1 1 0 1 1
1 1 1 0 0
Example: Prove
x’y’z’ + x’yz’ + xyz’ = x’z’ + yz’
Proof:
x’y’z’+ x’yz’+ xyz’
= x’y’z’ + x’yz’ + x’yz’ + xyz’
= x’z’(y’+y) + yz’(x’+x)
= x’z’•1 + yz’•1
= x’z’ + yz’
Complement of a Function
The complement of a function is derived by interchanging (• and +), and (1 and 0), and
complementing each variable.
Otherwise, interchange 1s to 0s in the truth table column showing F.
The complement of a function IS NOT THE SAME as the dual of a function.
Example
Find G(x,y,z), the complement of F(x,y,z) = xy’z’ + x’yz
Ans: G = F’ = (xy’z’ + x’yz)’
= (xy’z’)’ • (x’yz)’ DeMorgan
= (x’+y+z) • (x+y’+z’) DeMorgan again
Note: The complement of a function can also be derived by finding the function’s dual, and then
complementing all of the literals
Definitions
Minterm
Represents exactly one combination in the truth table.
Denoted by mj, where j is the decimal equivalent of the minterm’s corresponding binary
combination (bj).
A variable in mj is complemented if its value in bj is 0, otherwise is uncomplemented.
Example: Assume 3 variables (A, B, C), and j=3. Then, bj = 011 and its corresponding minterm is
denoted by mj = A’BC
Maxterm
Example: Assume 3 variables (A, B, C), and j=3. Then, bj = 011 and its corresponding maxterm is
denoted by Mj = A+B’+C’
Truth Table notation for Minterms and Maxterms
DIGITAL LOGIC DESIGN Page no. 45
• Minterms and Maxterms are easy to denote using a truth table. Example: Assume 3 variables
x,y,z (order is fixed)
x y z Minterm Maxterm
0 0 0 x’y’z’ = m0 x+y+z = M0
0 0 1 x’y’z = m1 x+y+z’ = M1
0 1 0 x’yz’ = m2 x+y’+z = M2
0 1 1 x’yz = m3 x+y’+z’= M3
1 0 0 xy’z’ = m4 x’+y+z = M4
1 0 1 xy’z = m5 x’+y+z’ = M5
1 1 0 xyz’ = m6 x’+y’+z = M6
1 1 1 xyz = m7 x’+y’+z’ = M7
Canonical Forms
Every function F() has two canonical forms:
Canonical Sum-Of-Products (sum of minterms)
Canonical Product-Of-Sums (product of maxterms) Canonical Sum-Of-Products:
The minterms included are those mj such that F( ) = 1 in row j of the truth table for F( ).
Canonical Product-Of-Sums:
The maxterms included are those Mj such that F( ) = 0 in row j of the truth table for F( ).
a b c f1
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
Shorthand: ∑ and ∏
• f1(a,b,c) = ∑ m(1,2,4,6), where ∑ indicates that this is a sum-of-products form, and m(1,2,4,6)
indicates that the minterms to be included are m1, m2, m4, and m6.
• f1(a,b,c) = ∏ M(0,3,5,7), where ∏ indicates that this is a product-of-sums form, and M(0,3,5,7)
indicates that the maxterms to be included are M0, M3, M5, and M7.
• Example:
f1(a,b,c)= a’b’c + a’bc’ + ab’c’ + abc’
= m1 + m2 + m4 + m6
= ∑(1,2,4,6)
= ∏(0,3,5,7)
= (a+b+c)•(a+b’+c’)•(a’+b+c’)•(a’+b’+c’)
Standard Forms
Example-2.
Express the Boolean function F = xy + x’z as a product of maxterms.
Solution: First, convert the function into OR terms by using the distributive law:
F = xy + x’z = (xy + x’)(xy + z)
= (x + x’)(y + x’)(x + z)(y + z)
= (x’+ y)(x + z)(y + z)
The function has three variables: x, y, and z. Each OR term is missing one variable; therefore, x’+ y =
x’ + y + zz’ = (x’ + y + z)(x’ + y + z’) x + z = x + z + yy’ = (x + y + z)(x + y’ + z) y + z = y + z + xx’ = (x + y +
z)(x’ + y + z)
Combining all the terms and removing those which appear more than once, we finally obtain
F = (x + y + z)(x + y’ + z)(x’ + y + z)(x’ + y + z)
F= M0M2M4M5
A convenient way to express this function is as follows: F(x, y, z) = πM(0, 2, 4, 5)
The product symbol, π, denotes the ANDing of maxterms; the numbers are the indices of the
maxterms of the function.
A two-variable k-map can have 22=4 possible combinations of the input variables A and B.
Each of these combinations, , B,A ,AB(in the SOP form) is called a minterm.
The minterm may be represented in terms of their decimal designations – m0 for , m1 for
B,m2 for A and m3 for AB, assuming that A represents the MSB. The letter m stands for
minterm and the subscript represents the decimal designation of the minterm. The
presence or absence of a minterm in the expression indicates that the output of the logic
circuit assumes logic 1 or logic 0 level for that combination of input variables.
A two-variable k-map has 22=4 squares .These squares are called cells. Each square on
the k- map represents a unique minterm. The minterm designation of the squares are
placed in any square, indicates that the corresponding minterm does output expressions.
And a 0 or no entry in any square indicates that the corresponding minterm does not
appear in the expression for output.
k-map of ∑m(0,2,3)
F= m1+m2=∑m(1,2)The k-map is
To minimize Boolean expressions given in the SOP form by using the k-map, look for
adjacent adjacent squares having 1‘s minterms adjacent to each other, and combine them to
form larger squares to eliminate some variables. Two squares are said to be adjacent to each
other, if their minterms differ in only one variable. (i.e, B&A differ only in one variable. so
they may be combined to form a 2-square to eliminate the variable B.similarly all other.
The necessary condition for adjacency of minterms is that their decimal designations must
differ by a power of 2. A minterm can be combined with any number of minterms adjacent to it
to form larger squares. Two minterms which are adjacent to each other can be combined to
f1 = m0+m1= + B= (B+
f2 = m0+m2= + = ( + )=
= + +A +AB
= (B+ ) +A(B+ )
= +A
=1
EX: Reduce the minterm f= +A +AB using mapping Expressed in terms of minterms, the
given expression is F=m0+m1+m2+ m3=m∑(0,1,3)& the figure shows the k-map for f and its
reduction . In one 2-square, A is constant as a 0 but B varies from a 0 to a 1, and in the other
2- square, B is constant as a 1 but A varies from a 0 to a 1. So, the reduced expressions is +B.
The main criterion in the design of a digital circuit is that its cost should be as low as
possible. For that the expression used to realize that circuit must be minimal.Since the cost
is proportional to number of gate inputs in the circuit in the circuit, an expression is
considered minimal only if it corresponds to the least possible number of gate inputs. &
there is no guarantee for that k-map in SOP is the real minimal. To obtain real minimal
expression, obtain the minimal expression both in SOP & POS form form by using k-maps
and take the minimal of these two minimals.
The 1‘s on the k-map indicate the presence of minterms in the output expressions,
where as the 0s indicate the absence of minterms .Since the absence of a minterm in the
SOP expression means the presense of the corresponding maxterm in the POS expression
of the same .when a SOP expression is plotted on the k-map, 0s or no entries on the k-map
DIGITAL LOGIC DESIGN Page no. 53
represent the maxterms. To obtain the minimal expression in the POS form, consider the 0s
on the k-map and follow the procedure used for combining 1s. Also, since the absence of a
maxterm in the POS expression means the presence of the corresponding minterm in the
SOP expression of the same , when a POS expression is plotted on the k-map, 1s or no
entries on the k-map represent the minterms. Mapping of POS expressions:
Each sum term in the standard POS expression is called a maxterm. A function in two
variables (A, B) has four possible maxterms, A+B,A+ , +B, +
. They are represented as M0, M1, M2, and M3respectively. The uppercase letter M stands for
maxterm and its subscript denotes the decimal designation of that maxterm obtained by
treating the non-complemented variable as a 0 and the complemented variable as a 1 and
putting them side by side for reading the decimal equivalent of the binary number so
formed.
For mapping a POS expression on to the k-map, 0s are placed in the squares
corresponding to the maxterms which are presented in the expression an d1s are placed in
the squares corresponding to the maxterm which are not present in the expression. The
decimal designation of the squares of the squares for maxterms is the same as that for the
minterms. A two-variable k-map & the associated maxterms are asthe maxterms of a two-
variable k-map
To obtain the minimal expression in POS form, map the given POS expression on to
the K-map and combine the adjacent 0s into as large squares as possible. Read the squares
putting the complemented variable if its value remains constant as a 1 and the non-
DIGITAL LOGIC DESIGN Page no. 54
complemented variable if its value remains constant as a 0 along the entire square (
ignoring the variables which do not remain constant throughout the square) and then write
them as a sum term.
A changes from a 0 to a 1. f5
Is read as a 0 because both the variables are changing along the square.
The given expression in terms of maxterms is f=πM(0,1,3). It requires two gates inputs
for realization of the reduced expression as
F=AB‘
In this given expression ,the maxterm M2 is absent. This is indicated by a 1 on the k-map. The
corresponding SOP expression is ∑m2 or AB‘. This realization is the same as that for the POS
form.
Three-variable K-map:
In the standard POS form, the eight possible combinations are:A+B+C, A+B+C ,
A+B +C,A+B + C ,A + B+ C,A + B + C ,A + B + C,A + B + C . Each oneof these combinations
designated by M0, M1, M2, M3, M4, M5, M6, and M7respectively is called a maxterm. A is the
MSB of the maxterm designator and C is the LSB.
A three-variable k-map has, therefore, 8(=23) squares or cells, and each square on
the map represents a minterm or maxterm as shown in figure. The small number on the
top right corner of each cell indicates the minterm or maxterm designation.
The binary numbers along the top of the map indicate the condition of B and C for
each column. The binary number along the left side of the map against each row indicates
the condition of A for that row. For example, the binary number 01 on top of the second
column in fig indicates that the variable B appears in complemented form and the variable
C in non- complemented form in all the minterms in that column. The binary number 0 on
the left of the first row indicates that the variable A appears in complemented form in all
the minterms in that row, the binary numbers along the top of the k-map are not in normal
binary order. They are, infact, in the Gray code. This is to ensure that twophysically
adjacent squares are really adjacent, i.e., their minterms or maxterms differ by only one
variable.
=110=m6;ABC=111=m7.
For reducing the Boolean expressions in SOP (POS) form plotted on the k-map, look
at the 1s (0s) present on the map. These represent the minterms (maxterms). Look for the
minterms (maxterms) adjacent to each other, in order to combine them into larger squares.
Combining of adjacent squares in a k-map containing 1s (or 0s) for the purpose of
simplification of a SOP (or POS)expression is called looping. Some of the minterms
(maxterms) may have many adjacencies. Always start with the minterms (maxterm) with
the least number of adjacencies and try to form as large as large a square as possible. The
larger must form a geometric square or rectangle. They can be formed even by wrapping
around, but cannot be formed by using diagonal configurations. Next consider the minterm
(maxterm) with next to the least number of adjacencies and form as large a square as
possible. Continue this till all the minterms (maxterms) are taken care of . A minterm
(maxterm) can be part of any number of squares if it is helpful in reduction. Read the
minimal expression from the k-map, corresponding to the squares formed. There can be
more than one minimal expression.
Two squares are said to be adjacent to each other (since the binary designations
along the top of the map and those along the left side of the map are in Gray code), if
they are physically adjacent to each other, or can be made adjacent to each other by
wrapping around. For squares to be combinable into bigger squares it is essential but
not sufficient that their minterm designations must differ by a power of two.
1. Plot the k-map and place 1s(0s) corresponding to the minterms (maxterms) of the SOP
(POS) expression.
2. Check the k-map for 1s(0s) which are not adjacent to any other 1(0). They are isolated
minterms(maxterms) . They are to be read as they are because they cannot be combined
even into a 2-square.
= + C+ +
= ( +C)+ B(C+ )
= + B
= ( +B)=
Some possible maxterm groupings and the corresponding minimal POS expressions read
from the k-map are
In this figure, along the 4-square formed by M1, M3, M7, M5, A and B are changing from a 0
to a 1, where as C remains constant as a 1. SO it is read as . Along the 4-squad formed by
+C. Similarly, the 2-square formed by M7 andM6 is read as + , while the 2-square
formed by M2 and M6 is read as +C. The minimal expression is the product of these sum
terms, i.e, f2 =( + )+( + )+( +C)
Ex:Reduce the expression f=∑m(0,2,3,4,5,6) using mapping and implement it in AOI logic
as well as in NAND logic.The Sop k-map and its reduction , and the implementation of the
minimal expression using AOI logic and the corresponding NAND logic are shown in figures
below
1. m5 has only one adjacency m4 , so combine m5 and m4 into a square. Along this 2-
square A remains constant as 1 and B remains constant as 0 but C varies from 0 to 1.
So read it as A .
2. m3 has only one adjacency m2 , so combine m3 and m2 into a square. Along this 2-
square A remains constant as 0 and B remains constant as 1 but C varies from 1 to 0.
So read it as B.
3. m6 can form a 2-square with m2 and m4 can form a 2-square with m0, but observe
that by wrapping the map from left to right m0, m4 ,m2 ,m6 can form a 4-square. Out
of these m2 andm4 have already been combined but they can be utilized again. So
make it. Along this 4-square, A is changing from 0 to 1 and B is also changing from 0
to 1 but C is remaining constant as 0. so read it as .
4. Write all the product terms in SOP form. So the minimal SOP expression is
fmin=
Four variable k-map expressions can have 24=16 possible combinations of input variables such
as , ,------------ABCD with minterm designations m0,m1 -------------------- m15 respectively
in SOP form & A+B+C+D, A+B+C+ ,---------- + + + with maxterms M0,M1, ---------
-
-M15 respectively in POS form. It has 24=16 squares or cells.The binary number
designations of rows & columns are in the gray code. Here follows 01 & 10 follows 11
called Adjacency ordering.
EX:
Five variable k-map can have 25 =32 possible combinations of input variable as
, E,--------ABCDE with minterms m0, m1-----m31 respectively in SOP &
16 squares each.The left block represents minterms from m0 to m15 in which A is a 0, and
the right block represents minterms from m16 to m31 in which A is 1.The 5-variable k-map
may contain 2-squares, 4-squares , 8-squares , 16-squares or 32-squares involving these
two blocks. Squares are also considered adjacent in these two blocks, if when
superimposing one block on top of another, the squares coincide with one another.
POS is F=πM(2,3,7,8,9,10,11,12,16,17,18,19,20,21,23,26,27)
The real minimal expression is the minimal of the SOP and POS forms.
1. There is no isolated 1s
2. M12 can go only with m13. Form a 2-square which is read as A‘BCD‘
3. M0 can go with m2,m16 and m18 . so form a 4-square which is read as B‘C‘E‘
4. M20,m21,m17 and m16 form a 4-square which is read as AB‘D‘
3.
4.M8
5. M28
6.M30
Fmin= A‘BcD‘+B‘C‘E‘+AB‘D‘+C‘D
Don’t care combinations:For certain input combinations, the value of the output is
unspecified either because the input combinations are invalid or because the precise value
of the output is of no consequence. The combinations for which the value of experiments
are not specified are called don‘t care combinations are invalid or because the precise value
of the output is of no consequence. The combinations for which the value of expressions is
not specified are called don‘t care combinations or Optional Combinations, such
expressions stand incompletely specified. The output is a don‘t care for these invalid
combinations.
DIGITAL LOGIC DESIGN Page no. 66
Ex:In XS-3 code system, the binary states 0000, 0001, 0010,1101,1110,1111 are unspecified. &
never occur called don‘t cares.
A standard SOP expression with don‘t cares can be converted into a standard POS
form by keeping the don‘t cares as they are & writing the missing minterms of the SOP form as
the maxterms of the POS form viceversa.
Ex:f=∑m(1,5,6,12,13,14)+d(2,4)
Or f=π M(0,3,7,9,10,11,15).πd(2,4)
=++++(+
Each square or rectangle made up of the bunch of adjacent minterms is called a subcube.
Each of these subcubes is called a Prime implicant (PI). The PI which contains at leastone
which cannot be covered by any other prime implicants is called as Essential Prime
DIGITAL LOGIC DESIGN Page no. 67
implicant (EPI).The PI whose each 1 is covered at least by one EPI is called a Redundant
Prime implicant (RPI). A PI which is neither an EPI nor a RPI is called a Selective Prime
implicant (SPI).
F(A,B,C,D)= CD+ABC+A D + B
The RPI ‗BD‘ may be included without changing the function but the resulting expression
would not be in minimal SOP(MSP) form.
Here, the MSP form is obtained by including two EPI‘s & selecting a set of SPI‘s to cover
remaining uncovered minterms 5,13,15. & these can be covered as
DIGITAL LOGIC DESIGN Page no. 68
(A) (4,5) &(13,15) ---------- B +ABD
(B) (5,13) & (13,15) -------- B D+ABD
(C) (5,13) & (15,11) ------- B D+ACD
The maxterms are called falseminterms. The PI‘s is obtained by using the
maxterms are called False PI‘s (FPI). The FPI which contains at least one ‗0‘ which can‘t be
covered by only other FPI is called an Essential False Prime implicant (ESPI)
F(A,B,C,D)= ∑m(0,1,2,3,4,8,12)
=π M(5,6,7,9,10,11,13,14,15)
Fmin= ( + )( + )( + )( + )
All the FPI, EFPI‘s as each of them contain atleast one ‗0‘ which can‘t be covered by any other
FPI
PA+P =P (P is set of literals) on all adjacent pairs of terms, yields the set of all PI‘s from
which a minimal sum may be selected.
Consider expression
∑m(0,1,4,5)= + C+A +A C
DIGITAL LOGIC DESIGN Page no. 70
First, second terms & third, fourth terms can be combined
( + )+ (C+ )= +A
Reduced to
( + )=
The same result can be obtained by combining m0& m4 & m1&m5 in first step & resulting
terms in the second step .
Procedure:
• Decimal Representation
• Don‘t cares
• PI chart
• EPI
• Dominating Rows & Columns
• Determination of Minimal expressions in comples cases.
Branching Method:
Design Procedure:
2. The number of available input variables and required output variables is determined.
Adders:
Digital computers perform variety of information processing tasks,the one is
arithmetic operations.And the most basic arithmetic operation is the addition of two binary
digits.i.e, 4 basic possible operations are:
0+0=0,0+1=1,1+0=1,1+1=10
The first three operations produce a sum whose length is one digit, but when augends and
addend bits are equal to 1,the binary sum consists of two digits.The higher significant bit of
this result is called a carry.A combinational circuit that performs the addition of two bits is
called a half- adder. One that performs the addition of 3 bits (two significant bits & previous
carry) is called a full adder.& 2 half adder can employ as a full-adder.
The Half Adder: A Half Adder is a combinational circuit with two binary inputs (augends
and addend bits and two binary outputs (sum and carry bits.) It adds the two inputs (A and
B) and produces the sum (S) and the carry (C) bits. It is an arithmetic operation of addition
of two single bit words.
S=A𝐵+𝐴
The carry (C) is the AND of A and B (it is 0 unless both the inputs are 1).Therefore,
C=AB
A half-adder can be realized by using one X-OR gate and one AND gate a
NAND LOGIC:
From the truth table, a circuit that will produce the correct sum and carry bits in response
to every possible combination of A,B and Cin is described by
and
S=A B Cin
The sum term of the full-adder is the X-OR of A,B, and Cin, i.e, the sum bit the modulo
sum of the data bits in that column and the carry from the previous column. The logic
DIGITAL LOGIC DESIGN Page no. 81
diagram of the full-adder using two X-OR gates and two AND gates (i.e, Two half adders)
and one OR gate is
Even though a full-adder can be constructed using two half-adders, the disadvantage is that
the bits must propagate through several gates in accession, which makes the total
propagation delay greater than that of the full-adder circuit using AOI logic.
The Full-adder neither can also be realized using universal logic, i.e., either only NAND
gates or only NOR gates as
NAND Logic:
Subtractors:
A Half-subtractor is a combinational circuit that subtracts one bit from the other and
produces the difference. It also has an output to specify if a 1 has been borrowed. . It is used
to subtract the LSB of the subtrahend from the LSB of the minuend when one binary
number is subtracted from the other.
outputs d and b. d indicates the difference and b is the output signal generated that informs
the next stage that a 1 has been borrowed. When a bit B is subtracted from another bit A, a
difference bit (d) and a borrow bit (b) result according to the rules given as
The output borrow b is a 0 as long as A≥B. It is a 1 for A=0 and B=1. The d output is the
result of the arithmetic operation2b+A-B.
A circuit that produces the correct difference and borrow bits in response to every possible
combination of the two 1-bit numbers is , therefore ,
That is, the difference bit is obtained by X-OR ing the two inputs, and the borrow bit is
obtained by ANDing the complement of the minuend with the subtrahend.Note that logic
for this exactly the same as the logic for output S in the half-adder.
NAND Logic:
NOR Logic:
during the subtraction of the LSBs, it affects the subtraction in the next higher column; the
subtrahend bit is subtracted from the minuend bit, considering the borrow from that
column used for the subtraction in the preceding column. Such a subtraction is performed
by a full-subtractor. It subtracts one bit (B) from another bit (A) , when already there is a
borrow bi from this column for the subtraction in the preceding column, and outputs the
difference bit (d) and the borrow bit(b) required from the next d and b. The two outputs
present the difference and output borrow. The 1s and 0s for the output variables are
determined from the subtraction of A-B-bi.
From the truth table, a circuit that will produce the correct difference and borrow bits in
response to every possiblecombinations of A,B and bi is
NAND Logic:
NOR Logic:
33
Binary Parallel Adder:
A binary parallel adder is a digital circuit that adds two binary numbers in parallel
form and produces the arithmetic sum of those numbers in parallel form. It consists of full
adders connected in a chain , with the output carry from each full-adder connected to the
input carry of the next full-adder in the chain.
The interconnection of four full-adder (FA) circuits to provide a 4-bit parallel adder.
The augends bits of A and addend bits of B are designated by subscript numbers from right
to left, with subscript 1 denoting the lower –order bit. The carries are connected in a chain
through the full-adders. The input carry to the adder is Cin and the output carry is C4. The S
output generates the required sum bits. When the 4-bit full-adder circuit is enclosed within
an IC package, it has four terminals for the augends bits, four terminals for the addend bits,
four terminals for the
sum bits, and two
terminals for the input and
output carries. AN n-bit
parallel adder requires
n-full adders. It can be
constructed from 4-bit, 2-bit and 1-bit full adder ICs by cascading several packages. The
output carry from one package must be connected to the input carry of the one with the
next higher –order bits. The 4-bit full adder is a typical example of an MSI function.
34
Ripple carry adder:
In the parallel adder, the carry –out of each stage is connected to the carry-in of
the next stage. The sum and carry-out bits of any stage cannot be produced, until sometime
after the carry-in of that stage occurs. This is due to the propagation delays in the logic
circuitry,
which lead to a time delay in the addition process. The carry propagation delay for each
full- adder is the time between the application of the carry-in and the occurrence of the
carry-out.
The 4-bit parallel adder, the sum (S1) and carry-out (C1) bits given by FA1 are not valid, until
after the propagation delay of FA1. Similarly, the sum S2 and carry-out (C2) bits given by FA2
are not valid until after the cumulative propagation delay of two full adders (FA1 and FA2) ,
and so on. At each stage ,the sum bit is not valid until after the carry bits in all the preceding
stages are valid. Carry bits must propagate or ripple through all stages before the most
significant sum bit is valid. Thus, the total sum (the parallel output) is not valid until after
the cumulative delay of all the adders.
The parallel adder in which the carry-out of each full-adder is the carry-in to the next most
significant adder is called a ripple carry adder.. The greater the number of bits that a ripple
carry adder must add, the greater the time required for it to perform a valid addition. If two
numbers are added such that no carries occur between stages, then the add time is simply
the
35
4- Bit Parallel Subtractor:
The subtraction of binary numbers can be carried out most conveniently by means of
complements , the subtraction A-B can be done by taking the 2‘s complement of B and
adding
it to A . The 2‘s complement can be obtained by taking the 1‘s complement and adding 1 to
the least significant pair of bits. The 1‘s complement can be implemented with inverters as
Binary-Adder Subtractor:
A 4-bit adder-subtractor, the addition and subtraction operations are combined into
one circuit with one common binary adder. This is done by including an X-OR gate with
each full-adder. The mode input M controls the operation. When M=0, the circuit is an
adder, and when M=1, the circuit becomes a subtractor. Each X-OR gate receives input M
and one of the inputs of B. When M=0, .The full-adder receives the value of B , the
input carry is 0
36
and the circuit performs A+B. when and C1=1. The B inputs are complemented
and a 1 is through the input carry. The circuit performs the operation A plus the 2‘s
complement of B.
the time required for the carries to propagate or ripple through all of the stages of the
adder. The look-ahead carry adder speeds up the process by eliminating this ripple carry
delay. It examines all the input bits simultaneously and also generates the carry-in bits for
all the stages simultaneously.
The method of speeding up the addition process is based on the two additional
functions of the full-adder, called the carry generate and carry propagate functions.
Consider one full adder stage; say the nth stage of a parallel adder as shown in fig.
we know that is made by two half adders and that the half adder contains an X-OR gate to
produce the sum and an AND gate to produce the carry. If both the bits An and Bn are 1s, a
carry has to be generated in this stage regardless of whether the input carry Cin is a 0 or a 1.
This is called generated carry, expressed as Gn= An.Bn which has to appear at the output
through the OR gate as shown in fig.
37
Thereis another possibility of producing a carry out. X-OR gate inside the half-adder
sum bit and and output carryC0= Pn.Cn=( )Cn which becomes carry for the (n+1)
thstage.
Consider the case of both Pn and Cn being 1. The input carry Cn has to be propagated
to the output only if Pn is 1. If Pn is 0, even if Cn is 1, the and gate in the second half-adder
will inhibit Cn . the carry out of the nth stage is 1 when either Gn=1 or Pn.Cn =1 or both Gn and
Pn.Cn are equal to 1.
For the final sum and carry outputs of the nth stage, we get the following
Boolean
expressions.
38
Observe the recursive nature of the expression for the output carry
at the nth stage which becomes the input carry for the (n+1)st stage .it is possible to
express the output carry of a higher significant stage is the carry-out of the previous stage.
Based on these , the expression for the carry-outs of various full adders are as follows,
the input variables in SOP form. Which is two level AND-OR or equivalent NAND-NAND
form. Observe that the full look-ahead scheme requires the use of OR gate with (n+1) inputs
and AND gates with number of inputs varying from 2 to (n+1).
39
2’s complement Addition and Subtraction using Parallel Adders:
Most modern computers use the 2‘s complement system to represent negative
numbers and to perform subtraction operations of signed numbers can be performed
using only the addition operation ,if we use the 2‘s complement form to represent negative
numbers.
The circuit shown can perform both addition and subtraction in the 2‘s complement.
This adder/subtractor circuit is controlled by the control signal ADD/SUB‘. When the
ADD/SUB‘ level is HIGH, the circuit performs the addition of the numbers stored in
registers A and B. When the ADD/Sub‘ level is LOW, the circuit subtract the number in
register B from the number in register A. The operation is:
When ADD/SUB‘ is a 1:
1. AND gates 1,3,5 and 7 are enabled , allowing B0,B1,B2and B3 to pass to the OR gates
9,10,11,12 . AND gates 2,4,6 and 8 are disabled , blocking B0‘,B1‘,B2‘, and B3‘ from
reaching the OR gates 9,10,11 and 12.
40
2. The two levels B0 to B3 pass through the OR gates to the 4-bit parallel adder, to be
added to the bits A0 to A3. The sum appears at the output S0 to S3
When ADD/SUB‘ is a 0:
1. AND gates 1,3,5 and 7 are disabled , allowing B0,B1,B2and B3 from reaching the OR
gates 9,10,11,12 . AND gates 2,4,6 and 8 are enabled , blocking B 0‘,B1‘,B2‘, and B3‘
from reaching the OR gates.
2. The two levels B0‘ to B3‘ pass through the OR gates to the 4-bit parallel adder, to be
added to the bits A0 to A3.The C0 is now 1.thus the number in register B is converted
to its 2‘s complement form.
Adders/Subtractors used for adding and subtracting signed binary numbers. In computers ,
the output is transferred into the register A (accumulator) so that the result of the addition
or subtraction always end up stored in the register A This is accomplished by applying a
transfer pulse to the CLK inputs of register A.
Serial Adder:
A serial adder is used to add binary numbers in serial form. The two binary numbers
to be added serially are stored in two shift registers A and B. Bits are added one pair at a
41
time through a single full adder (FA) circuit as shown. The carry out of the full-adder is
transferred to a D flip- flop. The output of this flip-flop is then used as the carry input for
the next pair of significant bits. The sum bit from the S output of the full-adder could be
transferred to a third shift register. By shifting the sum into A while the bits of A are shifted
out, it is possible to use one register for storing both augend and the sum bits. The serial
input register B can be used to transfer a new binary number while the addend bits are
shifted out during the addition.
Initially register A holds the augend, register B holds the addend and the carry flip-
flop is cleared to 0. The outputs (SO) of A and B provide a pair of significant bits for the full-
adder at x and y. The shift control enables both registers and carry flip-flop , so, at the clock
pulse both registers are shifted once to the right, the sum bit from S enters the left most
flip-flop of A , and the output carry is transferred into flip-flop Q . The shift control enables
the registers for a number of clock pulses equal to the number of bits of the registers. For
each succeeding clock pulse a new sum bit is transferred to A, a new carry is transferred to
Q, and both registers are shifted once to the right. This process continues until the shift
control is disabled. Thus the addition is accomplished by passing each pair of bits together
with the previous carry through a single full adder circuit and transferring the sum, one bit
at a time, into register A.
42
Initially, register A and the carry flip-flop are cleared to 0 and then the first number is
added from B. While B is shifted through the full adder, a second number is transferred to it
through its serial input. The second number is then added to the content of register A while a
third number is transferred serially into register B. This can be repeated to form the addition of
two, three, or more numbers and accumulate their sum in register A.
The parallel adder registers with parallel load, whereas the serial adder uses shift
registers. The number of full adder circuits in the parallel adder is equal to the number of bits in
the binary numbers, whereas the serial adder requires only one full adder circuit and a carry
flip- flop. Excluding the registers, the parallel adder is a combinational circuit, whereas the serial
adder is a sequential circuit. The sequential circuit in the serial adder consists of a full-adder and
a flip-flop that stores the output carry.
BCD Adder:
1. Add the 4-bit BCD code groups for each decimal digit position using ordinary binary
addition.
2. For those positions where the sum is 9 or less, the sum is in proper BCD form and no
correction is needed.
3. When the sum of two digits is greater than 9, a correction of 0110 should be added to
that sum, to produce the proper BCD result. This will produce a carry to be added to
the next decimalposition.
A BCD adder circuit must be able to operate in accordance with the above steps. In other words,
the circuit must be able to do the following:
The first requirement is easily met by using a 4- bit binary parallel adder such as the 74LS83
IC .For example , if the two BCD code groups A3A2A1A0and B3B2B1B0 are applied to a 4-bit
parallel adder, the adder will output S4S3S2S1S0 , where S4 is actually C4 , the carry –out of the
MSB bits.
The sum outputs S4S3S2S1S0 can range anywhere from 00000 to 100109when both the
BCD code groups are 1001=9). The circuitry for a BCD adder must include the logic needed to
detect whenever the sum is greater than 01001, so that the correction can be added in. Those
cases , where the sum is greater than 1001 are listed as:
Let us define a logic output X that will go HIGH only when the sum is greater than 01001 (i.e,
for the cases in table). If examine these cases ,see that X will be HIGH for either of the following
conditions:
1. Whenever S4 =1(sum greater than15)
X=S4+S3(S2+S1)
Whenever X=1, it is necessary to add the correction factor 0110 to the sum bits, and to
generate a carry. The circuit consists of three basic parts. The two BCD code groups A 3A2A1A0
and B3B2B1B0 are added together in the upper 4-bit adder, to produce the sum S4S3S2S1S0. The
logic gates shown implement the expression for X. The lower 4-bit adder will add the correction
0110 to the sum bits, only when X=1, producing the final BCD sum output represented by
∑3∑2∑1∑0. The X is also the carry-out that is produced when the sum is greater than 01001.
When X=0, there is no carry and no addition of 0110. In such cases, ∑3∑2∑1∑0= S3S2S1S0.
Two or more BCD adders can be connected in cascade when two or more digit decimal
numbers are to be added. The carry-out of the first BCD adder is connected as the carry-in of the
second BCD adder, the carry-out of the second BCD adder is connected as the carry-in of the
third BCD adder and so on.
EXCESS-3(XS-3) ADDER:
1100 9 in Xs-3
+1000 5 in xs-3
___ _ _ __
1 0100 there is a carry
(1) (4)
EX:
Implementation of xs-3 adder using 4-bit binary adders is shown. The augend (A3
A2A1A0) and addend (B3B2B1B0) in xs-3 are added using the 4-bit parallel adder. If the carry is a
1, then 0011(3) is added to the sum bits S3S2S1S0 of the upper adder in the lower 4-bit
parallel
adder. If the carry is a 0, then 1101(3) is added to the sum bits (This is equivalent to subtracting
0011(3) from the sum bits. The correct sum in xs-3 is obtained
1. Complement thesubtrahend
2. Add the complemented subtrahend to theminuend.
3. If carry =1, result is positive. Add 3 and end around carry to the result . Ifcarry=0, the
result is negative. Subtract 3, i.e, and take the 1‘s complement of the result.
1100 9 in xs-3
--------
------------
0111
------------
1000 5 in xs-3
The minuend and the 1‘s complement of the subtrahend in xs-3 are added in the upper 4-
bit parallel adder. If the carry-out from the upper adder is a 0, then 1101 is added to the sum bits
of the upper adder in the lower adder and the sum bits of the lower adder are complemented to
get the result. If the carry-out from the upper adder is a 1, then 3=0011 is added to the sum bits
of the lower adder and the sum bits of the lower adder give the result.
Binary Multipliers:
In binary multiplication by the paper and pencil method, is modified somewhat in digital
machines because a binary adder can add only two binary numbers at a time.
In a binary multiplier, instead of adding all the partial products at the end, they are added two at
a time and their sum accumulated in a register (the accumulator register). In addition, when the
multiplier bit is a 0,0s are not written down and added because it does not affect the final result.
Instead, the multiplicand is shifted left by one bit.
Multiplier 1001
This multiplication process can be performed by the serial multiplier circuit , which multiplies two
4-bit numbers to produce an 8-bit product. The circuit consists of following elements
X register: A 4-bit shift register that stores the multiplier --- it will shift right on the falling edge
of the clock. Note that 0s are shifted in from the left.
B register: An 8-bit register that stores the multiplicand; it will shift left on the falling edge of the
clock. Note that 0s are shifted in from the right.
A register: An 8-bit register, i.e, the accumulator that accumulates the partial products.
Adder:An 8-bit parallel adder that produces the sum of A and B registers. The adder outputs S7
through S0 are connected to the D inputs of the accumulator so that the sum can be transferred
to the accumulator only when a clock pulse gets through the AND gate.
The circuit operation can be described by going through each step in the multiplication of 1110
by 1001. The complete process requires 4 clock cycles.
1. Before the first clock pulse: Prior to the occurrence of the first clock pulse, the register
A is loaded with 00000000, the register B with the multiplicand 00001110, and the register X
with the multiplier 1001. Assume that each of these registers is loaded using its asynchronous
inputs(i.e., PRESET and CLEAR). The output of the adder will be the sum of A and B,i.e.,
00001110.
2. First Clock pulse:Since the LSB of the multiplier (X0) is a 1, the first clock pulse gets
through the AND gate and its positive going transition transfers the sum outputs into the
accumulator. The subsequent negative going transition causes the X and B registers to shift
right and left, respectively. This produces a new sum of A andB.
3. Second Clock Pulse: The second bit of the original multiplier is now in X0 . Since this bit
is a 0, the second clock pulse is inhibited from reaching the accumulator. Thus, the sum
outputs are not transferred into the accumulator and the number in the accumulator does not
change. The negative going transition of the clock pulse will again shift the X and B registers.
Again a new sum is produced.
4. Third Clock Pulse:The third bit of the original multiplier is now in X0;since this bit is a 0,
the third clock pulse is inhibited from reaching the accumulator. Thus, the sum outputs are
not transferred into the accumulator and the number in the accumulator does not change. The
negative going transition of the clock pulse will again shift the X and B registers. Again a new
sum is produced.
5. Fourth Clock Pulse: The last bit of the original multiplier is now in X0 , and since it is a 1,
the positive going transition of the fourth pulse transfers the sum into the accumulator. The
accumulator now holds the final product. The negative going transition of the clock pulse
shifts X and B again. Note that, X is now 0000, since all the multiplier bits have been shifted
out.
Code converters:
The availability of a large variety of codes for the same discrete elements of
information results in the use of different codes by different digital systems. It is sometimes
necessary to use the output of one system as the input to another. A conversion circuit must be
44
inserted between the two systems if each uses different codes for the same information. Thus a
code converteris a logic circuit whose inputs are bit patterns representing numbers (or
character)in one cod and whose outputs are the corresponding representationin a different
code. Code converters are usually multiple output
circuits.
To convert from binary code A to binary code B, the input linesmust supply thebit
combination of elements as specified by code A and the output lines must generate the
correspondingbit combination of codeB. A combinationalcircuitperforms this transformation
by means of logicgates.
For example, a binary–to-gray code converter has four binary input lines , BB B 2,B 1 and four
gray code output lines 4G,G3,G2,G1. When the input is 0010, for instance,4 the3, output should be
0011and so forth. To design a code converter, we use a code table treating it as a truth table to
express each output as a Boolean algebraic functio
n of all the inputs.
In this example, of binary–to-gray code conversion, we can treat the binary to the
gray code table as four truth tables to derive expressions 4for ,
G3,
G G2, and G1. Each of these
four expressions would, in general, contain all the four input variables B 4, B3,B 2,and B1.
Thus,this code converter is actually equivalent to four logic circuits, one for each of the truth
tables.
The logic expression derived for the code converter can be simplified using the usual
techniques, including ‗don‘t cares‘ if present. Even if the input is an unweighted code, the same
cell numbering method which we used earlier can be used, but the cell numbers --must
correspond to the input combinations as if they were -4-2an
-18weighted code. s
Design of a-bit
4 binary to gray code converter:
45
Design of a 4-bit gray to Binary code converter:
46
D
e
s
i
g
n
o
f
4
-
b
i
t
B
C
D
t
o
X
S
-
3
c
o
d
e
c
o
n
v
e Design of a BCD to gray code converter:
r
t
e
r
:
Design of a SOP circuit to Detect the Decimal numbers 5 through 12 in a 4 - bit gray code
Input:
Design of a SOP circuit to detect the decimal numbers 0,2,4,6,8 in a 4 -bit 5211 BCD code
input:
48
Design of a Combinational circuit to produce the 2’s complement of a 4-bit binary number:
Comparators:
49
1. Magnitude Comparator:
4- Bit MagnitudeComparator:
51
IC Comparator:
ENCODERS:
Octal to Binary Encoder:
This allows multiple circuits to share the same output line or lines (such as a bus which cannot listen to
more than one device at a time).
Three-state outputs are implemented in many registers, bus drivers, and flip-flops in the 7400 and 4000
series as well as in other types, but also internally in many integrated circuits. Other typical uses are
internal and external buses in microprocessors, computer memory, and peripherals. Many devices are
controlled by an active-low input called OE (Output Enable) which dictates whether the outputs should be
held in a high-impedance state or drive their respective loads (to either 0- or 1level).
Chapter 4
SEQUENTIAL CIRCUITS
The Basic Latch
Basic latchis a feedback connection of two NOR gates or two NAND gates
Gated latch is a basic latch that includes input gating and a control signal
The latch retains its existing state when the control input is equal to 0
Its state may be changed when the control signal is equal to 1. In our discussion
we referred to the control input as the clock We consider two types of gated
latches:
Gated SR latch uses the S and R inputs to set the latch to 1 or reset it to 0,
respectively.
Gated D latch uses the D input to force the latch into a state that has the
samelogic value as the D input.
The minimum time that the input signal must be stable prior to the edge of the clock
signal.
Hold Time th
The minimum time that the input signal must be stable after the edge of the
clock signal.
Flip-Flops
It can have its output state changed only on the edge of the controlling
clock signal
The master stage is active during half of the clock cycle, and the slave
stage is active during the other half.
The output value of the flip-flop changes on the edge of the clock that
activates the transfer into the slave stage.
Master-Slave D Flip-Flop
A Positive-Edge-Triggered D Flip-Flop
Excitation Tables
Conversions of flip-flops
Sequential Circuit Design
• A counter can count occurrences of events and can generate timing intervals for
control purposes A Simple Shift Register
Parallel-Access Shift Register
Counters
• Like registers, the state, or the flip-flop values themselves, serves as the “output.”
A B A B
0 0 0 1
0 1 1 0
1 0 1 1
1 1 0 0
Benefits of counters
– The PC increments once on each clock cycle, and the next program
instruction is then executed.
A Three-Bit Up-Counter
Q1 is connected to clk, Q2 and Q3 are clocked by Q’ of the preceding stage (hence
called asynchronous or ripple counter
A Three-Bit Down-Counter
Shift registers:
In digital circuits, a shift register is a cascade of flip-flops sharing the same clock, in which
the output of each flip-flop is connected to the "data" input of the next flip-flop in the chain,
resulting in a circuit that shifts by one position the "bit array" stored in it, shifting in the
data present at its input and shifting out the last bit in the array, at each transition of the
clock input. More generally, a shift register may be multidimensional, such that its "data
in" and stage outputs are themselves bit arrays: this is implemented simply by running
several shift registers of the same bit-length in parallel.
Shift registers can have both parallel and serial inputs and outputs. These are often
configured as serial-in, parallel-out (SIPO) or as parallel-in, serial-out (PISO). There are
also types that have both serial and parallel input and types with serial and parallel output.
There are also bi- directional shift registers which allow shifting in both directions: L→R
or R→L. The serial input and last output of a shift register can also be connected to create a
circular shift register
Shift registers are a type of logic circuits closely related to counters. They are basically for
the storage and transfer of digital data.
Buffer register:
The buffer register is the simple set of registers. It is simply stores the binary word. The buffer
may be controlled buffer. Most of the buffer registers used D Flip-flops.
When the positive clock edge arrives, the stored word becomes:
Q4Q3Q2Q1=X4X3X2X1
Q=X
LOAD is HIGH, the data bits X can reach the D inputs of FF‘s.
Q4Q3Q2Q1=X4X3X2X1
Q=X
A number of ff‘s connected together such that data may be shifted into and shifted out of
them is called shift register. data may be shifted into or out of the register in serial form or
in parallel form. There are four basic types of shift registers.
1. Serial in, serial out, shift right, shift registers
2. Serial in, serial out, shift left, shift registers
3. Parallel in, serial out shift registers
4. Parallel in, parallel out shift registers
Serial IN, serial OUT, shift right, shift left register:
The logic diagram of 4-bit serial in serial out, right shift register with four stages. The
register can store four bits of data. Serial data is applied at the input D of the first FF. the Q
output of the first FF is connected to the D input of another FF. the data is outputted from
the Q terminal of the last FF.
When serial data is transferred into a register, each new bit is clocked into the first FF at
the positive going edge of each clock pulse. The bit that was previously stored by the first
FF is transferred to the second FF. the bit that was stored by the Second FF is transferred to
the third FF.
In this type of register, the data bits are entered into the register serially, but the data stored
in the register is shifted out in parallel form.
Once the data bits are stored, each bit appears on its respective output line and all
bits are available simultaneously, rather than on a bit-by-bit basis with the serial output.
The serial-in, parallel out, shift register can be used as serial-in, serial out, shift register if
the output is taken from the Q terminal of the last FF.
For a parallel-in, serial out, shift register, the data bits are entered simultaneously into
their respective stages on parallel lines, rather than on a bit-by-bit basis on one line as with
serial data bits are transferred out of the register serially. On a bit-by-bit basis over a single
line.
There are four data lines A,B,C,D through which the data is entered into the register in
parallel form. The signal shift/ load allows the data to be entered in parallel form into the
register and the data is shifted out serially from terminalQ4
A bidirectional shift register is one which the data bits can be shifted from left to right
or from right to left. A fig shows the logic diagram of a 4-bit serial-in, serial out,
bidirectional shift register. Right/left is the mode signal, when right /left is a 1, the logic
circuit works as a shift-register.the bidirectional operation is achieved by using the mode
signal and two NAND gates and one OR gate for each stage.
A HIGH on the right/left control input enables the AND gates G1, G2, G3 and G4 and
disables the AND gates G5,G6,G7 and G8, and the state of Q output of each FF is passed
through the gate to the D input of the following FF. when a clock pulse occurs, the data bits
are then effectively shifted one place to the right. A LOW on the right/left control inputs
enables the AND gates G5, G6, G7 and G8 and disables the And gates G1, G2, G3 and G4 and
the Q output of each FF is passed to the D input of the preceding FF. when a clock pulse
occurs, the data bits are then effectively shifted one place to the left. Hence, the circuit
works as a bidirectional shift register
A register is capable of shifting in one direction only is a unidirectional shift register. One
that can shift both directions is a bidirectional shift register. If the register has both shifts
and parallel load capabilities, it is referred to as a universal shift registers. Universal shift
register is a bidirectional register, whose input can be either in serial form or in parallel
form and whose output also can be in serial form or I parallel form.
A universal shift register can be realized using multiplexers. The below fig shows the
logic diagram of a 4-bit universal shift register that has all capabilities. It consists of 4 D
flip-flops and four multiplexers. The four multiplexers have two common selection inputs
s1 and s0. Input 0 in each multiplexer is selected when S1S0=00, input 1 is selected when
S1S0=01 and input 2 is selected when S1S0=10 and input 4 is selected when S1S0=11. The
selection inputs control the mode of operation of the register according to the functions
entries. When S1S0=0, the present value of the register is applied to the D inputs of flip-
flops. The condition forms a path from the output of each flip-flop into the input of the same
flip-flop. The next clock edge transfers into each flip-flop the binary value it held
previously, and no change of state occurs. When S1S0=01, terminal 1 of the multiplexer
inputs have a path to the D inputs of the flip-flop. This causes a shift-right operation, with
serial input transferred into flip-flopA4. When S1S0=10, a shift left operation results with
the other serial input going into flip-flop A1. Finally when S1S0=11, the binary information
on the parallel input lines is transferred into the register simultaneously during the next
clock cycle
Figure: logic diagram 4-bit universal shift register
Function table for theregister
mode control
S0 S1 register operation
0 0 No change
0 1 Shift Right
1 0 Shift left
1 1 Parallel load
Counters:
Counter is a device which stores (and sometimes displays) the number of times
particular event or process has occurred, often in relationship to a clock signal. A Digital
counter is a set of flip flops whose state change in response to pulses applied at the input to
the counter. Counters may be asynchronous counters or synchronous counters.
Asynchronous counters are also called ripple counters
In electronics counters can be implemented quite easily using register-type circuits such
as the flip-flops and a wide variety of classifications exist:
• Asynchronous (ripple) counter – changing state bits are used as clocks to subsequent state
flip-flops
• Synchronous counter – all state bits change under control of a singleclock
• Decade counter – counts through ten states per stage
• Up/down counter – counts both up and down, under command of a control input
• Ring counter – formed by a shift register with feedback connection in a ring
• Johnson counter – a twisted ring counter
Cascaded counter
Modulus counter.
Each is useful for different applications. Usually, counter circuits are digital in nature, and
count in natural binary Many types of counter circuits are available as digital building
blocks, for example a number of chips in the 4000 series implement different counters.
Occasionally there are advantages to using a counting sequence other than the natural
binary sequence such as the binary coded decimal counter, a linear feed-back shift register
counter, or a gray-code counter.
Counters are useful for digital clocks and timers, and in oven timers, VCR clocks, etc.
Asynchronous counters:
An asynchronous (ripple) counter is a single JK-type flip-flop, with its J (data) input
fed from its own inverted output. This circuit can store one bit, and hence can count from
zero to one before it overflows (starts over from 0). This counter will increment once for
every clock cycle and takes two clock cycles to overflow, so every cycle it will alternate
between a transition from 0 to 1 and a transition from 1 to 0. Notice that this creates a new
clock with a 50% duty cycle at exactly half the frequency of the input clock. If this output is
then used as the clock signal for a similarly arranged D flip-flop (remembering to invert the
output to the input), one will get another 1 bit counter that counts half as fast. Putting them
together yields a two-bit counter:
Two bit ripple counter used two flip-flops. There are four possible states from 2 – bit up-
counting I.e. 00, 01, 10 and 11.
· The counter is initially assumed to be at a state 00 where the outputs of the tow flip-flops are
noted as Q1Q0. Where Q1 forms the MSB and Q0 forms the LSB.
· For the negative edge of the first clock pulse, output of the first flip-flop FF1 toggles its state.
Thus Q1 remains at 0 and Q0 toggles to 1 and the counter state are now read as 01.
· During the next negative edge of the input clock pulse FF1 toggles and Q0 = 0. The output
Q0 being a clock signal for the second flip-flop FF2 and the present transition acts as a
negative edge for FF2 thus toggles its state Q1 = 1. The counter state is now read as 10.
· For the next negative edge of the input clock to FF1 output Q0 toggles to 1. But this
transition from 0 to 1 being a positive edge for FF2 output Q1 remains at 1. The counter
state is now read as 11.
· For the next negative edge of the input clock, Q0 toggles to 0. This transition from 1 to 0
acts as a negative edge clock for FF2 and its output Q1 toggles to 0. Thus the starting state 00
is attained. Figure shown below
Two-bit ripple up-down counter using negative edge triggered flip flop:
Figure: asynchronous 2-bit ripple up-down counter using negative edge triggered flip
flop:
• As the name indicates an up-down counter is a counter which can count both in
upward and downward directions. An up-down counter is also called a
forward/backward counter or a bidirectional counter. So, a control signal or a mode
signal M is required to choose the direction of count. When M=1 for up counting, Q1 is
transmitted to clock of FF2 and when M=0 for down counting, Q1‘ is transmitted to
clock of FF2. This is achieved by using two AND gates and one OR gates. The external
clock signal is applied to FF1.
• Clock signal to FF2= (Q1.Up)+(Q1‘. Down)= Q1m+Q1‘M‘
To design a asynchronous counter, first we write the sequence , then tabulate the
values of reset signal R for various states of the counter and obtain the minimal expression
for R and R‘ using K-Map or any other method. Provide a feedback such that R and R‘ resets
all the FF‘s after the desired count
After sixth clock pulse it goes to 000. For the design, write the truth table with present
state outputs Q3, Q2 and Q1 as the variables, and reset R as the output and obtain an
expression for R in terms of Q3, Q2, and Q1that decides the feedback into be provided.
From the truth table, R=Q3Q2. For active-low Reset, R‘ is used. The reset pulse is of very
short duration, of the order of nanoseconds and it is equal to the propagation delay time of
the NAND gate used. The expression for R can also be determined as follows.
R=0 for 000 to 101, R=1 for 110, and R=X=for111
Therefore,
R=Q3Q2Q1‘+Q3Q2Q1=Q3Q2
The logic diagram and timing diagram of Mod-6 counter is shown in the above fig.
After States
pulses Q3 Q2 Q1 R
0 0 0 0 0
1 0 0 1 0
2 0 1 0 0
3 0 1 1 0
4 1 0 0 0
5 1 0 1 0
6 1 1 0 1
0 0 0
0
7 0 0 0 0
The count table and the K-Map for reset are shown in fig. from the K-Map R=Q4Q2. So,
feedback is provided from second and fourth FFs. For active –HIGH reset, Q4Q2 is applied
to the clear terminal. For active-LOW reset 4 2 is connected isof all Flip=flops.
After Count
pulses Q4 Q3 Q2 Q1
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 0 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 0 1 0 1
10 0 0 0 0
Synchronous counters:
Asynchronous counters are serial counters. They are slow because each FF can change
state only if all the preceding FFs have changed their state. if the clock frequency is very
high, the asynchronous counter may skip some of the states. This problem is overcome in
s
y
n
c
h
r
o
nous counters or parallel counters. Synchronous counters are counters in which all the flip
flops are triggered simultaneously by the clock pulses Synchronous counters have a
common clock pulse applied simultaneously to all flip- -Bit Synchronous Binary Counter
Step 1:State Diagram: draw the state diagram showing all the possible states state diagram
which also be called nth transition diagrams, is a graphical means of depicting the
sequence of states through which the counter progresses.
Step2: number of flip-flops: based on the description of the problem, determine the
required number n of the flip-flops- the smallest value of n is such that the number of states
N≤2n--- and the desired counting sequence.
Step3: choice of flip-flops excitation table: select the type of flip-flop to be used and write
the excitation table. An excitation table is a table that lists the present state (ps) , the next
state(ns) and required excitations.
Step4: minimal expressions for excitations: obtain the minimal expressions for the
excitations of the FF using K-maps drawn for the excitation of the flip-flops in terms of the
present states and inputs.
Step5: logic diagram: draw a logic diagram based on the minimal expressions
Step1: determine the number of flip-flops required. A 3-bit counter requires three FFs. It
has 8 states (000,001,010,011,101,110,111) and all the states are valid. Hence no don‘t
cares. For selecting up and down modes, a control or mode signal M is required. When the
mode signal M=1 and counts down when M=0. The clock signal is applied to all the FFs
simultaneously.
Step2: draw the state diagrams: the state diagram of the 3-bit up-down counter is drawn as
Step3: select the type of flip flop and draw the excitation table: JK flip-flops are selected and
the excitation table of a 3-bit up-down counter using JK flip-flops is drawn as shown in fig.
Q3 Q2 Q1 M Q3 Q2 Q1 J3 K3 J2 K2 J1 K1
0 0 0 0 1 1 1 1 x 1 x 1 x
0 0 0 1 0 0 1 0 x 0 x 1 x
0 0 1 0 0 0 0 0 x 0 x x 1
0 0 1 1 0 1 0 0 x 1 x x 1
0 1 0 0 0 0 1 0 x x 1 1 x
0 1 0 1 0 1 1 0 x x 0 1 x
0 1 1 0 0 1 0 0 x x 0 x 1
0 1 1 1 1 0 0 1 x x 1 x 1
1 0 0 0 0 1 1 x 1 1 x 1 x
1 0 0 1 1 0 1 x 0 0 x 1 x
1 0 1 0 1 0 0 x 0 0 x x 1
1 0 1 1 1 1 0 x 0 1 x x 1
1 1 0 0 1 0 1 x 0 x 1 1 x
1 1 0 1 1 1 1 x 0 x 0 1 x
1 1 1 0 1 1 0 x 0 x 0 x 1
1 1 1 1 0 0 0 x 1 x 1 x 1
Step4: obtain the minimal expressions: From the excitation table we can conclude that
J1=1 and K1=1, because all the entries for J1and K1 are either X or 1. The K-maps for J3,
K3,J2 and K2 based on the excitation table and the minimal expression obtained from them
are shown in fig.
1
1
X X X X
X X X X
00 01 11 10
Q3Q2 Q1M
Step5: draw the logic diagram: a logic diagram using those minimal expressions can be drawn as
shown in fig.
Step 1: the number of flip-flops: we know that the counting sequence for a modulo-6 gray code
counter is 000, 001, 011, 010, 110, and 111. It requires n=3FFs (N≤2 n, i.e., 6≤23). 3 FFs can
have
8 states. So the remaining two states 101 and 100 are invalid. The entries for excitation
corresponding to invalid states are don‘t cares.
Step2: the state diagram: the state diagram of the mod-6 gray code converter is drawn as
shown in fig.
Step3: type of flip-flop and the excitation table: T flip-flops are selected and the excitation
table of the mod-6 gray code counter using T-flip-flops is written as shown in fig.
required
PS NS excitations
Q3 Q2 Q1 Q3 Q2 Q1 T3 T2 T1
0 0 0 0 0 1 0 0 1
0 0 1 0 1 1 0 1 0
0 1 1 0 1 0 0 0 1
0 1 0 1 1 0 1 0 0
1 1 0 1 1 1 0 0 1
1 1 1 0 0 0 1 1 1
Step4: The minimal expressions: the K-maps for excitations of FFs T3,T2,and T1 in terms
of outputs of FFs Q3,Q2, and Q1, their minimization and the minimal expressions for
excitations obtained from them are shown if fig
Step5: the logic diagram: the logic diagram based on those minimal expressions is drawn as
shown in fig.
Step1: the number of flip-flops: a BCD counter is a mod-10 counter has 10 states (0000
through 1001) and so it requires n=4FFs(N≤2n,, i.e., 10≤24). 4 FFS can have 16 states. So out of
16 states, six states (1010 through 1111) are invalid. For selecting up and down mode, a
control or mode signal M is required. , it counts up when M=1 and counts down when M=0. The
clock signal is applied to all FFs.
Step2: the state diagram: The state diagram of the mod-10 up-down counter is drawn as
shown in fig.
Step3: types of flip-flops and excitation table: T flip-flops are selected and the excitation table
of the modulo-10 up down counter using T flip-flops is drawn as shown in fig.
T2=∑m(3,4,7,8,11,12,15,16)+d(20,21,22,23,24,25,26,27,28,29,30,31)
PS NS
T 2= Q4Q1‘M+Q4‘Q1M+Q2Q1‘M‘+Q3Q1‘M‘
Step5: the logic diagram: the logic diagram based on the above equation is shown in fig.
Only a single 1 is in the register and is made to circulate around the register as long as
clock pulses are applied. Initially the first FF is present to a 1. So, the initial state is 1000,
i.e., Q1=1, Q2=0,Q3=0,Q4=0. After each clock pulse, the contents of the register are shifted
to the right by one bit and Q4 is shifted back to Q1. The sequence repeats after four clock
pulses. The number
of distinct states in the ring counter, i.e., the mod of the ring counter is equal to number of
FFs used in the counter. An n-bit ring counter can count only n bits, where as n-bit ripple
counter can count 2n bits. So, the ring counter is uneconomical compared to a ripple
counter but has advantage of requiring no decoder, since we can read the count by simply
noting which FF is set. Since it is entirely a synchronous operation and requires no gates
external FFs, it has the further advantage of being very fast. Timing diagram:
Twisted Ring counter (Johnson counter):
The logic diagram of a 4-bit Johnson counter using D FF is shown in fig. the
realization of the same using J-K FFs is shown in fig.. The state diagram and the sequence
table are shown in figure. The timing diagram of a Johnson counter is shown in figure.
Let initially all the FFs be reset, i.e., the state of the counter be 0000. After each clock
pulse, the level of Q1 is shifted to Q2, the level of Q2to Q3, Q3 to Q4 and the level of Q4‘to Q1
and the sequences given in fig.
MEMORY
Memory structures are crucial in digital design. – ROM, PROM, EPROM, RAM, SRAM,
(S)DRAM, RDRAM,..
➢ All memory structures have an address bus and a data bus – Possibly other control
signals to control output etc. •E.g. 4 Bit Address bus with 5 Bit Data Bus ADDR DOUT
There are two types of memories that are used in digital systems:
The read-only memory is a programmable logic device. Other such units are the
programmablelogic array(PLA), the programmable array logic(PAL), and the field-
programmable gatearray(FPGA).
Random-Access Memory:
• byte = 8 bits
• word = 2 bytes
The communication between a memory and its environment is achieved through data
input andoutput lines, address selection lines, and control lines that specify the
direction oftransfer.
In random-access memory, the word locationsmay be thoughtof as being separated in space, with
In a random-access memory, the access time is always the same regardless of the
particular locationof the word.
In a sequential-access memory, the time it takes to access a word depends on the position of the
word with respect to the reading head position; therefore, theaccess time is variable.
Static RAM
The stored information remains valid as long as power is applied to the unit.
SRAM is easier to use and has shorter read and write cycles.
Low density, low capacity, high cost, high speed, high power consumption.
Dynamic RAM
DRAM stores the binary information in the form of electric charges oncapacitors.
The capacitors tends to discharge with time and must be periodically recharged by refreshing the
dynamic memory.
DRAM offers reduced power consumption and larger storage capacity in a single memorychip.
High density, high capacity, low cost, low speed, low power consumption.
Memory decoding
The equivalent logic of a binary cell that stores one bitof information is shownbelow.
The decoder in PROM is replaced by an array of AND gates that can be programmed to
generate any product term of the input variables.
The product terms are then connected to OR gates to provide the sum of products
forthe required Boolean functions.
➢ The output is inverted when the XOR input is connected to 1 (since x⊕1 = x’). The
output doesn’t change and connect to 0 (since x⊕0 = x).
F1 =
AB’+AC+A’BC’
F2 = (AC+BC)’
Implement the following two Boolean functions with a PLA:
• F ( A, B, C) = ∑(0, 1, 2, 4)
1
• F ( A, B, C) = ∑(0, 5, 6, 7)
2
JOB
JOB
JOB
DIGITAL LOGIC DESIGN
Question Bank with Answer &
Explanation
JOB
The Decimal Number System
7. A number with both integer and a fractional part has digits raised to both positive and negative
powers of 2 in a decimal number system.
a) True
b) False
Answer: b
Explanation: In a decimal number system, a number with both integer and a fractional part has
digits raised to both positive and negative powers of 10 and not 2.
e.g. 22.34 = 2 * 101 + 2 * 100 + 3 * 10-1 + 4 * 10-2.
JOB
The Binary Number System
11. Which of the following is not a positional number system?
a) Roman Number System
b) Octal Number System
c) Binary Number System
d) Hexadecimal Number System
Answer: a
Explanation: The Roman number system isn’t a positional number system since it uses symbols
to represent numbers.
The octal number system uses digits from 0-7, the binary number system uses digits from 0-1
whereas, the hexadecimal number system uses digits from 0-15.
JOB
14. A computer language that is written in binary codes only is _____
a) machine language
b) C
c) C#
d) pascal
Answer: a
Explanation: Machine Language is written in binary codes only. It can be easily understood by
the computer and is very difficult for us to understand. A machine language, unlike other
languages, requires no translators or interpreters.
JOB
B 11
C 12
D 13
E 14
F 15.
22. In a number system, each position of a digit represents a specific power of the base.
a) True
b) False
Answer: a
Explanation: In a number system, every digit is denoted by a specific power of base. Like in an
octal system, consider the number 113, it will be represented as :
82 * 1 + 81 * 1 + 80 *3.
23. The maximum number of bits sufficient to represent an octal number in binary is _______
a) 4
b) 3
c) 7
d) 8
Answer: b
Explanation: The octal number system comprises of only 8 digits. Hence, three bits (23 = 8) are
sufficient to represent any octal number in the binary format.
JOB
c) 8
d) 5
Answer: b
Explanation: Certain binary to octal representations are :
000=0
001=1
010=2
011=3
100=4
101=5
110=6
111=7.
0 2 2 4 = (224)<sub>8</sub>.
27. Octal subtraction of (232)8 from (417)8 will give ______________
a) 165
b) 185
JOB
c) 815
d) 516
Answer: a
Explanation: Octal subtraction is done as follows:
417
– 232
________
165
The octal subtraction is the same as that of any other number system. The only difference is, like
in a decimal number system, we borrow a group of 10, in a binary system we borrow a group of
2, in an octal number system, we borrow in groups of 8.
JOB
30. Express the decimal format of the signed binary number (10010)2 .
a) 2
b) 12
c) -12
d) -2
Answer: d
Explanation: The first bit is the sign bit whereas the rest of the bits are magnitude bits. So the
number is: 0010 = 21 * 1 =2
But, the sign bit is 1, Therefore the answer is : (-2)10.
33. The maximum number of bits sufficient to represent a hexadecimal number in binary:
a) 4
b) 3
c) 7
d) 8
Answer: a
JOB
Explanation: The hexadecimal number system comprises of only 15 symbols: 10 digits and 5
symbols. Hence, three bits (24 = 16 ) are sufficient to represent any hexadecimal number in the
binary format.
JOB
:
JOB
b) A02
c) B01
d) C01
Answer: c
Explanation: To convert octal to hexadecimal, we first write binary format of the number and
then make groups of 4 bits from right to left, as follows:
6 5 3 2
110 101 011 010 (octal -> binary)
1101 0101 1010 ( groups of 4)
D 5 A ( hexadecimal equivalent)
Therefore, the hexadecimal equivalent is (D5A)16.
40. What do we call the point(decimal) in any hexadecimal number of the form 111.A3?
a) radix
b) hexadecimal point
c) decimal
d) octal point
Answer: b
Explanation: The decimal is often referred to as the hexadecimal point in hexadecimal
representation of numbers.
It is referred to as the octal point in octal numbers.
Data Types
41. Which of the following is not a data type?
a) Symbolic Data
b) Alphanumeric Data
c) Numeric Data
d) Alphabetic Data
Answer: a
Explanation: Data types are of three basic types: Numeric, Alphabetic and Alphanumeric.
Numeric Data consists of only numbers.
Alphabetic Data consists of only letters and a blank character and alphanumeric data consists of
symbols.
JOB
b) Alphanumeric
c) Alphabetic
d) Numeric
Answer: b
Explanation: Alphanumeric data consists of symbols. Alphanumeric data may be a letter, either
in uppercase or lowercase or some special symbols like #,^,*,(, etc.
44. What are the entities whose values can be changed called?
a) Constants
b) Variables
c) Modules
d) Tokens
Answer: b
Explanation: Variables are the data entities whose values can be changed. Constants have a fixed
value. Tokens are the words which are easily identified by the compiler.
46. BOOLEAN is a type of data type which basically gives a tautology or fallacy.
a) True
b) False
JOB
Answer: a
Explanation: A Boolean representation is for giving logical values. It returns either true or false.
If a result gives a truth value, it is called tautology whereas if it returns a false term, it is referred
to as fallacy.
48. The program written by the programmer in high level language is called _____________
a) Object Program
b) Source Program
c) Assembled Program
d) Compiled Program
Answer: b
Explanation: The program written by the programmer is called a source program. The program
generated by the compiler after compilation is called an object program. The object program is in
machine language.
Number System
51. Any signed negative binary number is recognised by its ________
a) MSB
b) LSB
c) Byte
d) Nibble
Answer: a
Explanation: Any negative number is recognized by its MSB (Most Significant Bit).
If it’s 1, then ít’s negative, else if it’s 0, then positive.
52. The parameter through which 16 distinct values can be represented is known as ________
a) Bit
b) Byte
c) Word
d) Nibble
Answer: c
Explanation: It can be represented up to 16 different values with the help of a Word. Nibble is a
combination of four bits and Byte is a combination of 8 bits. It is “word” which is said to be a
collection of 16-bits on most of the systems.
53. If the decimal number is a fraction then its binary equivalent is obtained by ________ the
number continuously by 2.
a) Dividing
b) Multiplying
c) Adding
d) Subtracting
Answer: b
Explanation: On multiplying the decimal number continuously by 2, the binary equivalent is
JOB
obtained by the collection of the integer part. However, if it’s an integer, then it’s binary
equivalent is determined by dividing the number by 2 and collecting the remainders.
JOB
8 | 52 — 1
8|6–4
So, (417)10= (641)8
JOB
67. Convert (0.345)10 into an octal number:
a) (0.16050)8
b) (0.26050)8
c) (0.19450)8
d) (0.24040)8
Answer: b
Explanation: Converting decimal fraction into octal number is achieved by multiplying the
fraction part by 8 everytime and collecting the integer part of the result, unless the result is 1.
0.345*8 = 2.76 2
0.760*8 = 6.08 6
00.08*8 = 0.64 0
0.640*8 = 5.12 5
0.120*8 = 0.96 0
So, (0.345)10 = (0.26050)8
JOB
70. Convert binary to octal: (110110001010)2 =?
a) (5512)8
b) (6612)8
c) (4532)8
d) (6745)8
Answer: b
Explanation: The binary equivalent is segregated into groups of 3 bits, starting from left. And
then for each group, the respective digit is written. Thus, the octal equivalent is obtained.
(110110001010)2 = (6612)8
Arithmetic Operation
71. What is the addition of the binary numbers 11011011010 and 010100101?
a) 0111001000
b) 1100110110
c) 11101111111
d) 10011010011
Answer: c
Explanation: The rules for Binary Addition are :
0+0=0
0+1=1
1+0=1
1 + 1 = 0 ( Carry 1)
1
11011011010
+00010100101
_______________________
11101111111
_______________________
72. Perform binary addition: 101101 + 011011 = ?
a) 011010
b) 1010100
c) 101110
d) 1001000
Answer: d
JOB
Explanation:The rules for Binary Addition are :
0+0=0
0+1=1
1+0=1
1 + 1 = 0 ( Carry 1)
111111
101101
+011011
_______________
1001000
_______________
Therefore, the addition of 101101 + 011011 = 1001000.
JOB
0–0=0
0 – 1 = 1 ( Borrow 1)
1–0=1
1–1=0
100101
-011110
___________
000111
___________
Therefore, The subtraction of 100101 – 011110 = 000111.
JOB
d) 0110100101
Answer: c
Explanation: The rules for binary multiplication are:
0*0=0
0*1=0
1*0=0
1*1=1
100101
x 0110
___________
000000
1001010
10010100
000000000
__________________
011011110
___________________
Therefore, 100101 x 0110 = 011011110.
78. Divide the binary numbers: 111101 ÷ 1001 and find the remainder
a) 0010
b) 1010
c) 1100
d) 0011
Answer: d
Explanation: Binary Division is accomplished using long division method.
1001)111101(11
1001
__________
01100
1001
___________
0111
Therefore, the remainder of 111101 ÷ 1001 = 0111.
79. Divide the binary number (011010000) by (0101) and find the quotient
a) 100011
b) 101001
c) 110010
d) 010001
Answer: b
Explanation:
0101)011010000(010111
0000
_____________________
01101
00101
______________
010000
000000
______________________
10000
00101
____________________
010110
000101
____________________
100010
JOB
000101
________________________
111010
000101
________________________
10101
00101
________________________
10000
Therefore, the quotient of 011010000 ÷ 1001 = 101001.
83. On subtracting (01010)2 from (11110)2 using 1’s complement, we get ____________
a) 01001
b) 11010
c) 10101
d) 10100
Answer: d
Explanation: Steps For Subtraction using 1’s complement are:
-> 1’s complement of the subtrahend is determined and added to the minuend.
-> If the result has a carry, then it is dropped and 1 is added to the last bit of the result.
-> Else, if there is no carry, then 1’s complement of the result is found out and a ‘-’ sign preceeds
the result.
111
Minuend - 11110
1’s complement of subtrahend - 10101
____________
Carry over - 1 10011
1
_____________
10100
84. On subtracting (010110)2 from (1011001)2 using 2’s complement, we get ____________
a) 0111001
b) 1100101
c) 0110110
d) 1000011
Answer: d
Explanation: Steps For Subtraction using 2’s complement are:
JOB
-> 2’s complement of the subtrahend is determined and added to the minuend.
-> If the result has a carry, then it is dropped and the result is positive.
-> Else, if there is no carry, then 2’s complement of the result is found out and a ‘-’ sign preceeds
the result.
1’s complement of subtrahend - 1101001
_________________
111
Minuend - 1011001
2’s complement of subtrahend - 1101010
_________________
Answer: 1000011
85. On subtracting (001100)2 from (101001)2 using 2’s complement, we get ____________
a) 1101100
b) 011101
c) 11010101
d) 11010111
Answer: b
Explanation: Steps For Subtraction using 2’s complement are:
-> 2’s complement of the subtrahend is determined and added to the minuend.
-> If the result has a carry, then it is dropped and the result is positive.
-> Else, if there is no carry, then 2’s complement of the result is found out and a ‘-’ sign preceeds
the result.
1’s complement of subtrahend - 110011
_________________
Minuend - 101001
2’s complement of subtrahend - 110100
_________________
Carry over - 1 011101
Answer: 011101
86. On addition of 28 and 18 using 2’s complement, we get ____________
a) 00101110
b) 0101110
c) 00101111
d) 1001111
Answer: b
JOB
Explanation: Steps for Binary Addition Using 2’s complement:
-> The binary equivalent of the two numbers are obtained and added using the rules of binary
addition.
Augend - 0 011100
Addend - 0 010010
_________________
0 101110
Answer: 0 1 0 1 1 1 0
87. On addition of +38 and -20 using 2’s complement, we get ____________
a) 11110001
b) 100001110
c) 010010
d) 110101011
Answer: c
Explanation: Steps for Binary Addition Using 2’s complement:
-> The 2’s complement of the addend is found out and added to the first number.
-> The result is the 2’s complement of the sum obtained.
Augend - 0100110
2’s Complement of Subtrahend: 1101100
_________________
1 0010010
Answer: 0 1 0 0 1 0
88. On addition of -46 and +28 using 2’s complement, we get ____________
a) -10010
b) -00101
c) 01011
d) 0100101
Answer: a
Explanation: The BCD form is written of the two given numbers, in their signed form. After
which, normal binary addition is performed.
Augend is 28 and Subtrahend is -46.
Augend - 0 0 1 1 1 0 0 .....(a)
JOB
2’s Complement of Subtrahend: 1 0 1 0 0 1 0 .....(b)
_________________
Addiing (a) and (b): 1101110
Since, there is no carry, so answer will be negative
and 2's complement of the above result is determined.
0010001
+ 1
_________________
0010010
Answer: - 1 0 0 1 0
89. On addition of -33 and -40 using 2’s complement, we get ____________
a) 1001110
b) -110101
c) 0110001
d) -1001001
Answer: d
Explanation: The BCD form is written of the two given numbers, in their signed form. After
which, normal binary addition is performed.
Augend is -40 and Subtrahend is -33.
Augend - 1 0 1 0 0 0 0 1 .....(a)
2’s Complement of Subtrahend: 1 1 0 1 1 0 0 1 .....(b)
______________________
Addiing (a) and (b): 10 1001000
Since, there is no carry, so answer will be negative
and 2's complement of the above result is determined.
1001000
+ 1
_________________
1001001
Answer: -1001001
90. On subtracting +28 from +29 using 2’s complement, we get ____________
a) 11111010
b) 111111001
c) 100001
d) 1
Answer: d
Explanation: Steps For Subtraction using 2’s complement are:
-> 2’s complement of the subtrahend is determined and added to the minuend.
JOB
-> If the result has a carry, then it is dropped and the result is positive.
-> Else, if there is no carry, then 2’s complement of the result is found out and a ‘-’ sign preceeds
the result.
1’s complement of subtrahend - 100011
Minuend - 011101
2’s complement of subtrahend - 100100
____________________
Carry over - 1 0 0 0 0 0 1
Answer: 000001 = 1
91. If the number of bits in the sum exceeds the number of bits in each added numbers, it results
in _________
a) Successor
b) Overflow
c) Underflow
d) Predecessor
Answer: b
Explanation: If the number of bits in the sum exceeds the number of bits in each added numbers,
it results in overflow and is also known as excess-one. In case of any arithmetic operation, if the
result has less number of bits than the operands, then it is known as underflow condition.
JOB
Answer: a
Explanation: An overflow occurs at Most Significant Digit position. It occurs when the processor
cannot handle the result properly when it produces an out of the range output.
100. The addition of +19 and +43 results as _________ in 2’s complement system.
a) 11001010
b) 101011010
c) 00101010
d) 0111110
Answer: d
Explanation: The decimal numbers are converted to their respective binary equivalent and then
the binary addition rules are applied.
JOB
Answer: c
Explanation: Binary coded decimal is a combination of 4 binary digits. For example-8421.
103. Carry out BCD subtraction for (68) – (61) using 10’s complement method.
a) 00000111
b) 01110000
c) 100000111
d) 011111000
Answer: a
Explanation: First the two numbers are converted into their respective BCD form using 8421
sequence. Then binary subtraction is carried out.
105. When numbers, letters or words are represented by a special group of symbols, this process
is called __________
a) Decoding
b) Encoding
c) Digitizing
d) Inverting
Answer: b
JOB
Explanation: When numbers, letters or words are represented by a special group of symbols, this
process is called encoding. Encoding in the sense of fetching the codes or words in a computer. It
is done to secure the transmission of information.
106. A three digit decimal number requires ________ for representation in the conventional
BCD format.
a) 3 bits
b) 6 bits
c) 12 bits
d) 24 bits
Answer: c
Explanation: The number of bits needed to represent a given decimal number is always greater
than the number of bits required for a straight binary encoding of the same. Hence, a three digit
decimal number requires 12 bits for representation in BCD format.
107. How many bits would be required to encode decimal numbers 0 to 9999 in straight binary
codes?
a) 12
b) 14
c) 16
d) 18
Answer: c
Explanation: Total number of decimals to be represented = 10000 = 104 = 2n (where n is the
number of bits required) = 213.29. Therefore, the number of bits required for straight binary
encoding = 14.
JOB
d) A + B = B + A
Answer: a
Explanation: The expression for Absorption Law is given by: A+AB = A.
Proof: A + AB = A(1+B) = A (Since 1 + B = 1 as per 1’s Property).
115. A(A + B) = ?
a) AB
b) 1
c) (1 + AB)
d) A
Answer: d
Explanation: A(A + B) = AA + AB (By Distributive Property) = A + AB (A.A = A By
Commutative Property) = A(1 + B) = A*1 (1 + B = 1 by 1’s Property) = A.
JOB
Explanation: The DeMorgan’s law states that (AB)’ = A’ + B’ & (A + B)’ = A’ * B’, as per the
Dual Property.
124. A product term containing all K variables of the function in either complemented or
uncomplemented form is called a __________
a) Minterm
b) Maxterm
c) Midterm
d) ∑ term
Answer: a
JOB
Explanation: A product term containing all K variables of the function in either complemented or
uncomplemented form is called a minterm. A sum term containing all K variables of the function
in either complemented or uncomplemented form is called a maxterm.
125. According to the property of minterm, how many combination will have value equal to 1 for
K input variables?
a) 0
b) 1
c) 2
d) 3
Answer: b
Explanation: The main property of a minterm is that it possesses the value 1 for only one
combination of K input variables and the remaining will have the value 0.
126. The canonical sum of product form of the function y(A,B) = A + B is __________
a) AB + BB + A’A
b) AB + AB’ + A’B
c) BA + BA’ + A’B’
d) AB’ + A’B + A’B’
Answer: b
Explanation: A + B = A.1 + B.1 = A(B + B’) + B(A + A’) = AB + AB’ + BA +BA’ = AB + AB’
+ A’B = AB + AB’ + A’B.
128. Maxterm is the sum of __________ of the corresponding Minterm with its literal
complemented.
a) Terms
b) Words
c) Numbers
d) Nibble
JOB
Answer: a
Explanation: Maxterm is the sum of terms of the corresponding Minterm with its literal
complemented.
131. _____________ expressions can be implemented using either (1) 2-level AND-OR logic
circuits or (2) 2-level NAND logic circuits.
a) POS
b) Literals
c) SOP
d) POS
Answer: c
Explanation: SOP expressions can be implemented using either (1) 2-level AND-OR logic
circuits or (2) 2-level NAND logic circuits.
Karnaugh Map
132. A Karnaugh map (K-map) is an abstract form of ____________ diagram organized as a
matrix of squares.
a) Venn Diagram
b) Cycle Diagram
JOB
c) Block diagram
d) Triangular Diagram
Answer: a
Explanation: A Karnaugh map (K-map) is an abstract form of Venn diagram organized as a
matrix of squares, where each square represents a Maxterm or a Minterm.
134. The K-map based Boolean reduction is based on the following Unifying Theorem: A + A’ =
1.
a) Impact
b) Non Impact
c) Force
d) Complementarity
Answer: b
Explanation: The given expression A +A’ = 1 is based on non-impact unifying theorem.
135. Each product term of a group, w’.x.y’ and w.y, represents the ____________in that group.
a) Input
b) POS
c) Sum-of-Minterms
d) Sum of Maxterms
Answer: c
Explanation: In a minterm, each variable w, x or y appears once either as the variable itself or as
the inverse. So, the given expression satisfies the property of Sum of Minterm.
136. The prime implicant which has at least one element that is not present in any other implicant
is known as ___________
a) Essential Prime Implicant
b) Implicant
c) Complement
d) Prime Complement
JOB
Answer: a
Explanation: Essential prime implicants are prime implicants that cover an output of the function
that no combination of other prime implicants is able to cover.
138. Each group of adjacent Minterms (group size in powers of twos) corresponds to a possible
product term of the given ___________
a) Function
b) Value
c) Set
d) Word
Answer: a
Explanation: Each group of adjacent Minterms (group size in powers of twos) corresponds to a
possible product term of the given function.
139. Don’t care conditions can be used for simplifying Boolean expressions in ___________
a) Registers
b) Terms
c) K-maps
d) Latches
Answer: c
Explanation: Don’t care conditions can be used for simplifying Boolean expressions in K-maps
which helps in pairing with 1/0.
140. It should be kept in mind that don’t care terms should be used along with the terms that are
present in ___________
a) Minterms
b) Expressions
c) K-Map
d) Latches
JOB
Answer: a
Explanation: It should be kept in mind that don’t care terms should be used along with the terms
that are present in minterms as well as maxterms which reduces the complexity of the boolean
expression.
141. Using the transformation method you can realize any POS realization of OR-AND with
only.
a) XOR
b) NAND
c) AND
d) NOR
Answer: d
Explanation: Using the transformation method we can realize any POS realization of OR-AND
with only NOR.
142. There are many situations in logic design in which simplification of logic expression is
possible in terms of XOR and _________________ operations.
a) X-NOR
b) XOR
c) NOR
d) NAND
Answer: a
Explanation: There are many situations in logic design in which simplification of logic
expression is possible in terms of XOR and XNOR operations.
Expression of XOR : AB’ + A’B
Expression of XNOR : AB + A’B’
143. These logic gates are widely used in _______________ design and therefore are available
in IC form.
a) Sampling
b) Digital
c) Analog
d) Systems
Answer: b
Explanation: These logic gates(XOR,XNOR,NOR) are widely used in digital design and
therefore are available in IC form as digital circuits deals with data transmission in the form of
binary digits.
JOB
144. In case of XOR/XNOR simplification we have to look for the following _______________
a) Diagonal Adjacencies
b) Offset Adjacencies
c) Straight Adjacencies
d) Both diagonal and offset adjencies
Answer: d
Explanation: In case of XOR/XNOR simplification we have to look for the following diagonal
and offset adjacencies. XOR gives output 1 when odd number of 1s are present in input while
XNOR gives output 1 when even number of 1s or all 0s are present in input.
A B C
0 0 1
0 1 0
1 0 0
JOB
1 1 0
INPUT OUTPUT
A B C
0 0 1
0 1 0
1 0 0
1 1 1
147. The code where all successive numbers differ from their preceding number by single bit is
__________
a) Alphanumeric Code
b) BCD
c) Excess 3
d) Gray
Answer: d
Explanation: The code where all successive numbers differ from their preceding number by
single bit is gray code. It is an unweighted code. The most important characteristic of this code is
JOB
that only a single bit change occurs when going from one code number to next. BCD Code is one
in which decimal digits are represented by a group of 4-bits each, whereas, in Excess-3 Code, the
decimal numbers are incremented by 3 and then written in their BCD format.
150. The NOR gate output will be high if the two inputs are __________
a) 00
b) 01
c) 10
d) 11
Answer: a
Explanation: In 01, 10 or 11 output is low if any of the I/P is high. So, the correct option will be
00.
151. How many two-input AND and OR gates are required to realize Y = CD+EF+G?
a) 2, 2
b) 2, 3
c) 3, 3
d) 3, 2
Answer: a
JOB
Explanation: Y = CD + EF + G
The number of two input AND gate = 2
The number of two input OR gate = 2.
152. A universal logic gate is one which can be used to generate any logic function. Which of the
following is a universal logic gate?
a) OR
b) AND
c) XOR
d) NAND
Answer: d
Explanation: An Universal Logic Gate is one which can generate any logic function and also the
three basic gates: AND, OR and NOT. Thus, NOR and NAND can generate any logic function
and are thus Universal Logic Gates.
154. How many two input AND gates and two input OR gates are required to realize Y = BD +
CE + AB?
a) 3, 2
b) 4, 2
c) 1, 1
d) 2, 3
Answer: a
Explanation: There are three product terms. So, three AND gates of two inputs are required. As
only two input OR gates are available, so two OR gates are required to get the logical sum of
three product terms.
157. A single transistor can be used to build which of the following digital logic gates?
a) AND gates
b) OR gates
c) NOT gates
d) NAND gates
Answer: c
Explanation: A transistor can be used as a switch. That is, when base is low collector is high
(input zero, output one) and base is high collector is low (input 1, output 0).
158. How many truth table entries are necessary for a four-input circuit?
a) 4
b) 8
c) 12
d) 16
Answer: d
Explanation: For 4 inputs: 24 = 16 truth table entries are necessary.
159. Which input values will cause an AND logic gate to produce a HIGH output?
a) At least one input is HIGH
b) At least one input is LOW
c) All inputs are HIGH
JOB
d) All inputs are LOW
Answer: c
Explanation: For AND gate, the output is high only when both inputs are high. That’s why the
high output in AND will occurs only when all the inputs are high. However, in case of OR gate,
if atleast one input is high, the output will be high.
160. Exclusive-OR (XOR) logic gates can be constructed from what other logic gates?
a) OR gates only
b) AND gates and NOT gates
c) AND gates, OR gates, and NOT gates
d) OR gates and NOT gates
Answer: c
Explanation: Expression for XOR is: A.(B’)+(A’).B
So in the above expression, the following logic gates are used: AND, OR, NOT.
Thus, 2 AND gates with two-inputs and 1 OR gate with two-inputs will be required for
constructing a XOR gate.
161. The basic logic gate whose output is the complement of the input is the ___________
a) OR gate
b) AND gate
c) INVERTER gate
d) XOR gate
Answer: c
Explanation: It is also called NOT gate and it simply inverts the input, such that 1 becomes 0 and
0 becomes 1.
162. The AND function can be used to ___________ and the OR function can be used to
_____________
a) Enable, disable
b) Disable, enable
c) Synchronize, energize
d) Detect, invert
Answer: a
Explanation: The AND gate and OR gate are used for enabling and disabling respectively
because of their multiplicity and additivity property. The AND gate outputs 1 when all inputs are
at logic 1, whereas the OR gate outputs 0 when all inputs are at logic 0.
JOB
163. The dependency notation “>=1” inside a block stands for which operation?
a) OR
b) XOR
c) AND
d) XNOR
Answer: a
Explanation: The dependency notation “>=1” inside a block stands for OR operation.
164. If we use an AND gate to inhibit a signal from passing one of the inputs must be
___________
a) LOW
b) HIGH
c) Inverted
d) Floating
Answer: a
Explanation: AND gate means A*B and OR gate means A+B and to inhibit means to get low
signal, one of the input must be low. It means (0*1=0 or 1*0=0) we will get low output signal.
Thus, AND gate outputs 1 only when all inputs are at logic level 1 else it outputs 0.
165. Logic gate circuits contain predictable gate functions that open theirs ____________
a) Outputs
b) Inputs
c) Pre-state
d) Impedance state
Answer: b
Explanation: Logic gate circuits contain predictable gate functions that open their inputs because
we are free to give any types of inputs.
166. How many NAND circuits are contained in a 7400 NAND IC?
a) 1
b) 2
c) 4
d) 8
Answer: c
Explanation: 7400 IC’s pin has total 14 pin. Pin no 7 use for GND and pin no 14 used for +vcc
and remaining pins used for connections. For a NAND gate two inputs are required and one
output is obtained means for NAND gate 3 pin connections are required. Thus, a 7400IC
JOB
contains 4 NAND gates with each having 3 pins. Therefore, total 12 pins dedicated for the
NAND operation. Rest 2 pins for power supply.
169. In a combinational circuit, the output at any time depends only on the _______ at that time.
a) Voltage
b) Intermediate values
c) Input values
d) Clock pulses
Answer: c
Explanation: In a combinational circuit, the output at any time depends only on the input values
at that time and not on past or intermediate values.
170. In a sequential circuit, the output at any time depends only on the input values at that time.
a) Past output values
JOB
b) Intermediate values
c) Both past output and present input
d) Present input values
Answer: c
Explanation: In a sequential circuit, the output at any time depends on the present input values as
well as past output values. It also depends on clock pulses depending on whether it’s
synchronous or asynchronous sequential circuits.
JOB
b) Combinational logic
c) Multiplexing
d) De-Multiplexing
Answer: b
Explanation: The design of an ALU is based on combinational logic. Because the unit has a
regular pattern, it can be broken into identical stages connected in cascade through carries.
174. If the two numbers are unsigned, the bit conditions of interest are the ______ carry and a
possible _____ result.
a) Input, zero
b) Output, one
c) Input, one
d) Output, zero
Answer: d
Explanation: If the two numbers are unsigned, the bit conditions of interest are the output carry
and a possible zero result.
175. If the two numbers include a sign bit in the highest order position, the bit conditions of
interest are the sign of the result, a zero indication and __________
a) An underflow condition
b) A neutral condition
c) An overflow condition
d) One indication
Answer: c
Explanation: If the two numbers include a sign bit in the highest order position, the bit conditions
of interest are the sign of the result, a zero indication and an overflow condition.
JOB
Half Adder & Full Adder
177. In parts of the processor, adders are used to calculate ____________
a) Addresses
b) Table indices
c) Increment and decrement operators
d) All of the Mentioned
Answer: d
Explanation: Adders are used to perform the operation of addition. Thus, in parts of the
processor, adders are used to calculate addresses, table indices, increment and decrement
operators, and similar operations.
180. If A and B are the inputs of a half adder, the sum is given by __________
a) A AND B
JOB
b) A OR B
c) A XOR B
d) A EX-NOR B
Answer: c
Explanation: If A and B are the inputs of a half adder, the sum is given by A XOR B, while the
carry is given by A AND B.
181. If A and B are the inputs of a half adder, the carry is given by __________
a) A AND B
b) A OR B
c) A XOR B
d) A EX-NOR B
Answer: a
Explanation: If A and B are the inputs of a half adder, the carry is given by: A(AND)B, while the
sum is given by A XOR B.
183. The difference between half adder and full adder is __________
a) Half adder has two inputs while full adder has four inputs
b) Half adder has one output while full adder has two outputs
c) Half adder has two inputs while full adder has three inputs
d) All of the Mentioned
Answer: c
Explanation: Half adder has two inputs while full adder has three outputs; this is the difference
between them, while both have two outputs SUM and CARRY.
184. If A, B and C are the inputs of a full adder then the sum is given by __________
a) A AND B AND C
JOB
b) A OR B AND C
c) A XOR B XOR C
d) A OR B OR C
Answer: c
Explanation: If A, B and C are the inputs of a full adder then the sum is given by A XOR B XOR
C.
185. If A, B and C are the inputs of a full adder then the carry is given by __________
a) A AND B OR (A OR B) AND C
b) A OR B OR (A AND B) C
c) (A AND B) OR (A AND B)C
d) A XOR B XOR (A XOR B) AND C
Answer: a
Explanation: If A, B and C are the inputs of a full adder then the carry is given by A AND B OR
(A OR B) AND C, which is equivalent to (A AND B) OR (B AND C) OR (C AND A).
186. How many AND, OR and EXOR gates are required for the configuration of full adder?
a) 1, 2, 2
b) 2, 1, 2
c) 3, 1, 2
d) 4, 0, 1
Answer: b
Explanation: There are 2 AND, 1 OR and 2 EXOR gates required for the configuration of full
adder, provided using half adder. Otherwise, configuration of full adder would require 3 AND, 2
OR and 2 EXOR.
JOB
188. For subtracting 1 from 0, we use to take a _______ from neighbouring bits.
a) Carry
b) Borrow
c) Input
d) Output
Answer: b
Explanation: For subtracting 1 from 0, we use to take a borrow from neighbouring bits because
carry is taken into consideration during addition process.
189. How many outputs are required for the implementation of a subtractor?
a) 1
b) 2
c) 3
d) 4
Answer: b
Explanation: There are two outputs required for the implementation of a subtractor. One for the
difference and another for borrow.
190. Let the input of a subtractor is A and B then what the output will be if A = B?
a) 0
b) 1
c) A
d) B
Answer: a
Explanation: The output for A = B will be 0. If A = B, it means that A = B = 0 or A = B = 1. In
both of the situation subtractor gives 0 as the output.
191. Let A and B is the input of a subtractor then the output will be ___________
a) A XOR B
b) A AND B
c) A OR B
d) A EXNOR B
Answer: a
Explanation: The subtractor has two outputs BOROW and DIFFERENCE. Since, the difference
output of a subtractor is given by AB’ + BA’ and this is the output of a XOR gate. So, the final
difference output is AB’ + BA’.
JOB
192. Let A and B is the input of a subtractor then the borrow will be ___________
a) A AND B’
b) A’ AND B
c) A OR B
d) A AND B
Answer: b
Explanation: The borrow of a subtractor is received through AND gate whose one input is
inverted. On that basis the borrow will be (A’ AND B).
JOB
196. The output of a subtractor is given by (if A, B and X are the inputs).
a) A AND B XOR X
b) A XOR B XOR X
c) A OR B NOR X
d) A NOR B XOR X
Answer: b
Explanation: The difference output of a subtractor is given by (if A, B and X are the inputs) A
XOR B XOR X.
JOB
Explanation: The XOR (Exclusive Or) gate has a true output when the two inputs are different.
When one input is true, the output is the inversion of the other. When one input is false, the
output is the non-inversion of the other.
201. A logic circuit that provides a HIGH output for both inputs HIGH or both inputs LOW is
____________
a) Ex-NOR gate
b) OR gate
c) Ex-OR gate
d) NAND gate
Answer: a
Explanation: EX-OR gate gives 1 if both inputs are different means 0 or 1 and gives 0 if both are
same and EX-NOR is opposite of EX-OR gate, so it provides a HIGH output for both inputs
HIGH or both inputs are LOW. Thus, EX-NOR produces output for even number of 1’s or all 0s,
while EXOR produces output for odd number of 1’s.
202. What is the first thing you will need if you are going to use a macro-function?
a) A complicated design project
b) An experienced design engineer
c) Good documentation
d) Experience in HDL
Answer: d
Explanation: HDL stands for Hardware Description Language. In order to use a macro function,
one needs to have experience in HDL for representing the structure and behaviour of digital
circuits.
JOB
203. What is the major difference between half-adders and full-adders?
a) Full-adders are made up of two half-adders
b) Full adders can handle double-digit numbers
c) Full adders have a carry input capability
d) Half adders can handle only single-digit numbers
Answer: c
Explanation: Half adders have only two inputs A and B. When we add two 4 bit binary number
like 0001 and 0011, then half adder can not be used because if the first bit of both the numbers is
1, then the sum would be 0 and carry would be 1. But this carry can not be added with the second
bits addition of the number. So, half adders are useless. But in full adders, one more carry input
is present, so that, if carry of one stage is present, it can be added with the next stage as it is done
in normal addition. So, therefore, full adders have a carry input capability.
JOB
d) The minuend and subtrahend are both left in their original form
Answer: c
Explanation: When performing subtraction by addition in the 2’s-complement system, the
minuend is left in its original form and the subtrahend is changed to its 2’s-complement. It is
then added to the minuend. If the result has carry, then it’s dropped and that’s the final answer.
Else, if the result has no carry, then the result is again converted to it’s 2’s complement form and
that’s the final answer with a ‘negative’ sign.
209. The selector inputs to an arithmetic/logic unit (ALU) determine the ____________
a) Selection of the IC
b) Arithmetic or logic function
c) Data word selection
d) Clock frequency to be used
Answer: b
Explanation: An ALU performs basic arithmetic and logic operations and stores it in the
accumulator. Examples of arithmetic operations are addition, subtraction, multiplication, and
division. Examples of logic operations are comparisons of values such as NOT, AND and OR
and any logical operations.
JOB
210. One way to make a four-bit adder to perform subtraction is by ___________
a) Inverting the output
b) Inverting the carry-in
c) Inverting the B inputs
d) Grounding the B inputs
Answer: c
Explanation: A adder is a digital circuit which adds bits along with a carry bit from a previous
stage, thus producing 2 outputs SUM and CARRY. Since, a four bit adder has four A, four B and
a carry at the input end. So, for subtraction to be performed, all the Bs terminal should be
inverted.
BCD Adder
211. The decimal number system represents the decimal number in the form of ____________
a) Hexadecimal
b) Binary coded
c) Octal
d) Decimal
Answer: b
Explanation: Binary-coded decimal (BCD) is a class of binary encodings of decimal numbers
where each decimal digit is represented by a fixed number of bits, usually four or eight.
Hexadecimal and Octal are number systems having base 16 and 8 respectively.
JOB
Answer: c
Explanation: Binary-coded decimal (BCD) is a class of binary encodings of decimal numbers
where each decimal digit is represented by a fixed number of bits, usually four or eight. BCD
adder can be constructed with 3 IC packages. Each of 4-bit adders is an MSI(Medium scale
Integration) function and 3 gates for the correction logic need one SSI (Small Scale Integration)
package.
214. The output sum of two decimal digits can be represented in ____________
a) Gray Code
b) Excess-3
c) BCD
d) Hexadecimal
Answer: c
Explanation: The output sum of two decimal digits can be represented in BCD(Binary-coded
decimal). Binary-coded decimal (BCD) is a class of binary encodings of decimal numbers where
each decimal digit is represented by a fixed number of bits, usually four or eight.
215. The addition of two decimal digits in BCD can be done through ____________
a) BCD adder
b) Full adder
c) Ripple carry adder
d) Carry look ahead
Answer: a
Explanation: The addition of two decimal digits in BCD can be done through BCD adder. Every
input inserted, in addition by the user converted into binary and then proceed for the addition.
Whereas, Full Adder, Ripple Carry Adder and Carry Look Adder are for the addition of binary
bits.
220. The number of logic gates and the way of their interconnections can be classified as
____________
a) Logical network
b) System network
c) Circuit network
d) Gate network
Answer: a
Explanation: The number of different levels of logic gates is represented in a fashion which is
known as a logical network.
223. In a combinational circuit, the output at any time depends only on the _______ at that time.
a) Voltage
b) Intermediate values
c) Input values
d) Clock pulses
Answer: c
Explanation: In a combinational circuit, the output at any time depends only on the input values
at that time and not on past or intermediate values.
224. In a sequential circuit, the output at any time depends only on the input values at that time.
a) Past output values
b) Intermediate values
c) Both past output and present input
d) Present input values
Answer: c
Explanation: In a sequential circuit, the output at any time depends on the present input values as
JOB
well as past output values. It also depends on clock pulses depending whether it’s synchronous or
asynchronous sequential circuits.
JOB
Explanation: The design of an ALU is based on combinational logic. Because the unit has a
regular pattern, it can be broken into identical stages connected in cascade through carries.
228. If the two numbers are unsigned, the bit conditions of interest are the ______ carry and a
possible _____ result.
a) Input, zero
b) Output, one
c) Input, one
d) Output, zero
Answer: d
Explanation: If the two numbers are unsigned, the bit conditions of interest are the output carry
and a possible zero result.
229. If the two numbers include a sign bit in the highest order position, the bit conditions of
interest are the sign of the result, a zero indication and ___________
a) An underflow condition
b) A neutral condition
c) An overflow condition
d) One indication
Answer: c
Explanation: If the two numbers include a sign bit in the highest order position, the bit conditions
of interest are the sign of the result, a zero indication and an overflow condition.
JOB
Combinational Circuits
231. Which of the circuits in figure (a to d) is the sum-of-products implementation of figure (e)?
a) a
b) b
c) c
d) d
Answer: d
Explanation: SOP means Sum Of Products form which represents the sum of product terms
JOB
having variables in complemented as well as in uncomplemented form. Here, the diagram of d
contains the OR gate followed by the AND gates, so it is in SOP form.
232.Which of the following logic expressions represents the logic diagram shown?
a) X=AB’+A’B
b) X=(AB)’+AB
c) X=(AB)’+A’B’
d) X=A’B’+AB
Answer: d
Explanation: 1st output of AND gate is = A’B’
2nd AND gate’s output is = AB and,
OR gate’s output is = (A’B’)+(AB) = AB + A’B’.
a) Comparator
b) Multiplexer
c) Inverter
d) Demultiplexer
Answer: d
Explanation: The given diagram is demultiplexer, because it takes single input & gives many
outputs. A demultiplexer is a combinational circuit that takes a single output and latches it to
multiple outputs depending on the select lines.
JOB
234. What type of logic circuit is represented by the figure shown below?
a) XOR
b) XNOR
c) AND
d) XAND
Answer: b
Explanation: After solving the circuit we get (A’B’)+AB as output, which is XNOR operation.
Thus, it will produce 1 when inputs are even number of 1s or all 0s, and produce 0 when input is
odd number of 1s.
235. For a two-input XNOR gate, with the input waveforms as shown below, which output
waveform is correct?
a) d
b) a
c) c
d) b
Answer: a
Explanation: When both inputs are same then the o/p is high for a XNOR gate.
i.e., A B O/P
JOB
001
010
100
1 1 1.
Thus, it will produce 1 when inputs are even number of 1s or all 0s, and produce 0 when input is
odd number of 1s.
236. Which of the following combinations of logic gates can decode binary 1101?
a) One 4-input AND gate
b) One 4-input AND gate, one inverter
c) One 4-input AND gate, one OR gate
d) One 4-input NAND gate, one inverter
Answer: b
Explanation: For decoding any number output must be high for that code and this is possible in
One 4-input NAND gate, one inverter option only. A decoder is a combinational circuit that
converts binary data to n-coded data upto 2n outputs.
237. What is the indication of a short to ground in the output of a driving gate?
a) Only the output of the defective gate is affected
b) There is a signal loss to all load gates
c) The node may be stuck in either the HIGH or the LOW state
d) The affected node will be stuck in the HIGH state
Answer: b
Explanation: Short to ground in the output of a driving gate indicates of a signal loss to all load
gates. This results in information being disrupted and loss of data.
238. For the device shown here, assume the D input is LOW, both S inputs are LOW and the
input is LOW. What is the status of the Y’ outputs?
JOB
d) All but Y0 are HIGH
Answer: d
Explanation: In the given diagram, S0 and S1 are selection bits. So,
I/P S0 S1 O/P
D = 0 0 0 Y0
D = 0 0 1 Y1
D = 0 1 0 Y2
D = 0 1 1 Y3
Hence, inputs are S0 and S1 are Low means 0, so output is Y0 and rest all are HIGH.
JOB
c) It takes one input and results into many output
d) It is a type of encoder which decodes several inputs and gives one output
Answer: b
Explanation: A multiplexer (or MUX) is a device that selects one of several analog or digital
input signals and forwards the selected input into a single line, depending on the active select
lines.
242. Which combinational circuit is renowned for selecting a single input from multiple inputs &
directing the binary information to output line?
a) Data Selector
b) Data distributor
c) Both data selector and data distributor
d) DeMultiplexer
Answer: a
Explanation: Data Selector is another name of Multiplexer. A multiplexer (or MUX) is a device
that selects one of several analog or digital input signals and forwards the selected input into a
single line, depending on the active select lines.
243. It is possible for an enable or strobe input to undergo an expansion of two or more MUX
ICs to the digital multiplexer with the proficiency of large number of ___________
a) Inputs
b) Outputs
c) Selection lines
d) Enable lines
Answer: a
Explanation: It is possible for an enable or strobe input to undergo an expansion of two or more
MUX ICs to the digital multiplexer with the proficiency of large number of inputs.
244. Which is the major functioning responsibility of the multiplexing combinational circuit?
a) Decoding the binary information
b) Generation of all minterms in an output function with OR-gate
c) Generation of selected path between multiple sources and a single destination
d) Encoding of binary information
Answer: c
Explanation: The major functioning responsibility of the multiplexing combinational circuit is
generation of selected path between multiple sources and a single destination because it makes
the circuit too flexible. A multiplexer (or MUX) is a device that selects one of several analog or
JOB
digital input signals and forwards the selected input into a single line, depending on the active
select lines.
249. If the number of n selected input lines is equal to 2^m then it requires _____ select lines.
a) 2
b) m
c) n
d) 2n
Answer: b
Explanation: If the number of n selected input lines is equal to 2^m then it requires m select lines
to select one of m select lines.
250. How many select lines would be required for an 8-line-to-1-line multiplexer?
a) 2
b) 4
c) 8
d) 3
Answer: d
Explanation: 2n input lines, n control lines and 1 output line available for MUX. Here, 8 input
lines mean 23 inputs. So, 3 control lines are possible. Depending on the status of the select lines,
the input is selected and fed to the output.
251. A basic multiplexer principle can be demonstrated through the use of a ___________
a) Single-pole relay
b) DPDT switch
c) Rotary switch
d) Linear stepper
Answer: c
Explanation: A basic multiplexer principle can be demonstrated through the use of a rotary
switch. Since its behaviour is similar to the multiplexer. There are around 10 digits out of which
one is selected one at a time and fed to the output.
252. How many NOT gates are required for the construction of a 4-to-1 multiplexer?
a) 3
JOB
b) 4
c) 2
d) 5
Answer: c
Explanation: There are two NOT gates required for the construction of 4-to-1 multiplexer. x0,
x1, x2 and x3 are the inputs and C1 and C0 are the select lines and M is the output.
The diagram of a 4-to-1 multiplexer is shown below:
253. In the given 4-to-1 multiplexer, if c1 = 0 and c0 = 1 then the output M is ___________
a) X0
b) X1
c) X2
d) X3
Answer: b
Explanation: The output will be X1, because c1 = 0 and c0 = 1 results into 1 which further
results as X1. And rest of the AND gates gives output as 0.
JOB
c) Strobe
d) Sink
Answer: c
Explanation: The enable input is also known as strobe which is used to cascade two or more
multiplexer ICs to construct a multiplexer with a larger number of inputs. Enable input activates
the multiplexer to operate.
JOB
Explanation: The two input multiplexer would have n select lines in 2n. Thus n =1. Therefore, it
has 1 select line.
257. A combinational circuit that selects one from many inputs are ____________
a) Encoder
b) Decoder
c) Demultiplexer
d) Multiplexer
Answer: d
Explanation: A combinational circuit that selects one from many inputs is known as Multiplexer.
Whereas, a combinational circuit that divides one input into multiple outputs is known as
Demultiplexer.
259. Which of the following circuit can be used as parallel to serial converter?
a) Multiplexer
b) Demultiplexer
JOB
c) Decoder
d) Digital counter
Answer: a
Explanation: A combinational circuit that selects one from many inputs is known as Multiplexer.
In multiplexer, different inputs are inserted parallely and then it gives one output which is in
serial form.
260. A combinational circuit is one in which the output depends on the ____________
a) Input combination at the time
b) Input combination and the previous output
c) Input combination at that time and the previous input combination
d) Present output and the previous output
Answer: a
Explanation: A combinational circuit is one in which the output depends on the input
combination at the time, whereas, a sequential circuit is one in which the output depends on
present input as well past outputs.
JOB
262. Why is a demultiplexer called a data distributor?
a) The input will be distributed to one of the outputs
b) One of the inputs will be selected for the output
c) The output will be distributed to one of the inputs
d) Single input to Single Output
Answer: a
Explanation: A demultiplexer sends a single input to multiple outputs, depending on the select
lines. For one input, the demultiplexer gives several outputs. That is why, it is called a data
distributor.
JOB
266. In 1-to-4 multiplexer, if C1 = 0 & C2 = 1, then the output will be ___________
a) Y0
b) Y1
c) Y2
d) Y3
Answer: b
Explanation: It can be calculated from the figure shown below:
For C0 =1 and C1 =0, Y1 will be the output as 0 and 1 are the bit combinations of 1.
JOB
For C0 =1 and C1 =0, Y3 will be the output as 0 and 1 are the bit combinations of 1.
268. How many select lines are required for a 1-to-8 demultiplexer?
a) 2
b) 3
c) 4
d) 5
Answer: b
Explanation: The formula for total no. of outputs is given by 2n, where n is the no. of select lines.
In this case n = 3 since 23 = 8.
269. How many AND gates are required for a 1-to-8 multiplexer?
a) 2
b) 6
c) 8
d) 5
Answer: c
Explanation: The number of AND gates required will be equal to the number of outputs in a
demultiplexer, which are 8.
JOB
270. The output Q4 of this 1-to-8 demultiplexer is ____________
a) Q2.(Q1)’.Q0.I
b) Q2.Q1.(Q0)’.I
c) Q2.(Q1)’.(Q0)’.I
d) Q2.(Q1).Q0.I
Answer: c
Explanation: The output Y4 = Q2.(Q1)’.(Q0)’.I. since the bit combinations of 4 are 100.
JOB
Answer: a
Explanation: IC 74154 is used for the implementation of 1-to-16 DEMUX, whose output is
inverted input.
For C0 =1 and C1 =1, Y3 will be the output as 0 and 1 are the bit combinations of 1.
277. How many select lines are required for a 1-to-8 demultiplexer?
a) 2
b) 3
c) 4
d) 5
Answer: b
Explanation: The formula for total no. of outputs is given by 2n, where n is the no. of select lines.
In this case n = 3 since 23 = 8.
278. How many AND gates are required for a 1-to-8 multiplexer?
a) 2
b) 6
c) 8
JOB
d) 5
Answer: c
Explanation: The number of AND gates required will be equal to the number of outputs in a
demultiplexer, which are 8.
Encoders
280. How many inputs will a decimal-to-BCD encoder have?
a) 4
b) 8
c) 10
d) 16
Answer: c
Explanation: An encoder is a combinational circuit encoding the information of 2n input lines to
n output lines, thus producing the binary equivalent of the input. Thus, a Decimal-to-bcd
converter has decimal values as inputs which range from 0-9. So, total 10 inputs are there in a
decimal-to-BCD encoder.
JOB
282. How is an encoder different from a decoder?
a) The output of an encoder is a binary code for 1-of-N input
b) The output of a decoder is a binary code for 1-of-N input
c) The output of an encoder is a binary code for N-of-1 output
d) The output of a decoder is a binary code for N-of-1 output
Answer: a
Explanation: An encoder is a combinational circuit encoding the information of 2n input lines to
n output lines, thus producing the binary equivalent of the input. It performs the opposite
operation of a decoder which results in 2n outputs from n inputs. Thus, an encoder different from
a decoder because of the output of an encoder is a binary code for 1-of-N input.
283. If we record any music in any recorder, such types of process is called ___________
a) Multiplexing
b) Encoding
c) Decoding
d) Demultiplexing
Answer: b
Explanation: If we record any music in any recorder, it means that we are giving data to a
recorder. So, such process is called encoding. Getting back the music from the recorded data, is
known as decoding.
JOB
to n output lines, thus producing the binary equivalent of the input.
This is clear from the diagram that it requires 4 OR gates:
287. For 8-bit input encoder how many combinations are possible?
a) 8
b) 2^8
c) 4
d) 2^4
Answer: b
Explanation: An encoder is a combinational circuit encoding the information of 2n input lines to
n output lines, thus producing the binary equivalent of the input. There are 28 combinations are
possible for an 8-bit input encoder but out of which only 8 are used using 3 output lines. It is a
disadvantage of encoder.
288. The discrepancy of 0 output due to all inputs being 0 or D0, being 0 is resolved by using
additional input known as ___________
JOB
a) Enable
b) Disable
c) Strobe
d) Clock
Answer: a
Explanation: Such problems are resolved by using enable input, which behaves as active if it gets
0 as input since it is an active-low pin.
290. If two inputs are active on a priority encoder, which will be coded on the output?
a) The higher value
b) The lower value
c) Neither of the inputs
d) Both of the inputs
Answer: a
Explanation: An encoder is a combinational circuit encoding the information of 2n input lines to
n output lines, thus producing the binary equivalent of the input. If two inputs are active on a
priority encoder, the input of higher value will be coded in the output.
Parity Generators/Checkers
291. How many outputs are present in a BCD decoder?
a) 4
b) 5
c) 15
d) 10
Answer: d
JOB
Explanation: A binary decoder is a combinational logic circuit which decodes binary information
from n-inputs to a maximum of 2n outputs. A BCD to Decimal decoder has 10 number of outputs
because the decimal digit’s range is from 0 to 9.
292. Which digital system translates coded characters into a more useful form?
a) Encoder
b) Display
c) Counter
d) Decoder
Answer: d
Explanation: A binary decoder is a combinational logic circuit which decodes binary information
from n-inputs to a maximum of 2n outputs. Decoder converts the coded characters into our
required data form.
293. What control signals may be necessary to operate a 1-line-to-16 line decoder?
a) Flasher circuit control signal
b) A LOW on all gate enable inputs
c) Input from a hexadecimal counter
d) A HIGH on all gate enable circuits
Answer: b
Explanation: A LOW on all gate enable inputs is necessary to operate a 1-line-to-16 line decoder
because enable pins are usually, active-low pins.
294. How many inputs are required for a 1-of-10 BCD decoder?
a) 4
b) 8
c) 10
d) 2
Answer: a
Explanation: A binary decoder is a combinational logic circuit which decodes binary information
from n-inputs to a maximum of 2n outputs. Therefore, for a BCD to decimal decoder, No. of
inputs = 4 such that number of outputs is <= 2n.
295. A BCD decoder will have how many rows in its truth table?
a) 10
b) 9
c) 8
d) 3
JOB
Answer: a
Explanation: A binary decoder is a combinational logic circuit which decodes binary information
from n-inputs to a maximum of 2n outputs. Thus, BCD decoder will have 10 rows as it’s input
ranges from 0 to 9.
296. How many possible outputs would a decoder have with a 6-bit binary input?
a) 32
b) 64
c) 128
d) 16
Answer: c
Explanation: The possible outputs would be: 2n = 64 (Since n = 6 here).
297. One way to convert BCD to binary using the hardware approach is:
a) By using MSI IC circuits
b) By using a keyboard encoder
c) By using an ALU
d) By using UART
Answer: a
Explanation: One way to convert BCD to binary using the hardware approach is MSI (medium
scale integration) IC circuits.
299. A truth table with output columns numbered 0–15 may be for which type of decoder IC?
a) Hexadecimal 1-of-16
b) Dual octal outputs
c) Binary-to-hexadecimal
d) Hexadecimal-to-binary
Answer: a
JOB
Explanation: A binary decoder is a combinational logic circuit which decodes binary information
from n-inputs to a maximum of 2n outputs. A truth table with output columns numbered 0–15
may be for Hexadecimal 1-of-16. Because, hexadecimal occupies less space in a system.
300. How can the active condition (HIGH or LOW) or the decoder output be determined from
the logic symbol?
a) A bubble indicates active-HIGH
b) A bubble indicates active-LOW
c) A triangle indicates active-HIGH
d) A triangle indicates active-LOW
Answer: b
Explanation: A bubble indicates active-LOW in a decoder always. Enable pin of the decoder is
usually active-LOW and is triggered on input being at 0.
Latches
301. A latch is an example of a ___________
a) Monostable multivibrator
b) Astable multivibrator
c) Bistable multivibrator
d) 555 timer
Answer: c
Explanation: A latch is an example of a bistable multivibrator. A Bistable multivibrator is one in
which the circuit is stable in either of two states. It can be flipped from one state to the other state
and vice-versa.
JOB
303. Why latches are called a memory devices?
a) It has capability to stare 8 bits of data
b) It has internal memory of 4 bit
c) It can store one bit of data
d) It can store infinite amount of data
Answer: c
Explanation: Latches can be memory devices, and can store one bit of data for as long as the
device is powered. Once device is turned off, the memory gets refreshed.
309. The NAND latch works when both inputs are ___________
a) 1
b) 0
c) Inverted
d) Don’t cares
Answer: a
JOB
Explanation: The NAND latch works when both inputs are 1. Since, both of the inputs are
inverted in a NAND latch.
312. When a high is applied to the Set line of an SR latch, then ___________
a) Q output goes high
b) Q’ output goes high
c) Q output goes low
d) Both Q and Q’ go high
Answer: a
JOB
Explanation: S input of a SR latch is directly connected to the output Q. So, when a high is
applied Q output goes high and Q’ low.
advertisement
313. When both inputs of SR latches are low, the latch ___________
a) Q output goes high
b) Q’ output goes high
c) It remains in its previously set or reset state
d) it goes to its next set or reset state
Answer: c
Explanation: When both inputs of SR latches are low, the latch remains in it’s present state.
There is no change in the output.
314. When both inputs of SR latches are high, the latch goes ___________
a) Unstable
b) Stable
c) Metastable
d) Bistable
Answer: c
Explanation: When both gates are identical and this is “metastable”, and the device will be in an
undefined state for an indefinite period.
Flip Flops
315. Latches constructed with NOR and NAND gates tend to remain in the latched condition due
to which configuration feature?
a) Low input voltages
b) Synchronous operation
c) Gate impedance
d) Cross coupling
Answer: d
Explanation: Latch is a type of bistable multivibrator having two stable states. Both inputs of a
latch are directly connected to the other’s output. Such types of structure is called cross coupling
and due to which latches remain in the latched condition.
JOB
316. One example of the use of an S-R flip-flop is as ___________
a) Transition pulse generator
b) Racer
c) Switch debouncer
d) Astable oscillator
Answer: c
Explanation: The SR flip-flop is very effective in removing the effects of switch bounce, which
is the unwanted noise caused during the switching of electronic devices.
317. The truth table for an S-R flip-flop has how many VALID entries?
a) 1
b) 2
c) 3
d) 4
Answer: c
Explanation: The SR flip-flop actually has three inputs, Set, Reset and its current state. The
Invalid or Undefined State occurs at both S and R being at 1.
318. When both inputs of a J-K flip-flop cycle, the output will ___________
a) Be invalid
b) Change
c) Not change
d) Toggle
Answer: c
Explanation: After one cycle the value of each input comes to the same value. Eg: Assume J=0
and K=1. After 1 cycle, it becomes as J=0->1->0(1 cycle complete) and K=1->0->1(1 cycle
complete). The J & K flip-flop has 4 stable states: Latch, Reset, Set and Toggle.
JOB
high, if D is ‘0’ then output is also zero. Like SR flip-flop, the D-flip-flop also have an invalid
state at both inputs being 1.
320. A basic S-R flip-flop can be constructed by cross-coupling of which basic logic gates?
a) AND or OR gates
b) XOR or XNOR gates
c) NOR or NAND gates
d) AND or NOR gates
Answer: c
Explanation: The basic S-R flip-flop can be constructed by cross coupling of NOR or NAND
gates. Cross coupling means the output of second gate is fed to the input of first gate and vice-
versa.
321. The logic circuits whose outputs at any instant of time depends only on the present input but
also on the past outputs are called
a) Combinational circuits
b) Sequential circuits
c) Latches
d) Flip-flops
Answer: b
Explanation: In sequential circuits, the output signals are fed back to the input side. So, The
circuits whose outputs at any instant of time depends only on the present input but also on the
past outputs are called sequential circuits. Unlike sequential circuits, if output depends only on
the present state, then it’s known as combinational circuits.
329. The circuits of NOR based S-R latch classified as asynchronous sequential circuits, why?
a) Because of inverted outputs
b) Because of triggering functionality
c) Because of cross-coupled connection
d) Because of inverted outputs & triggering functionality
Answer: c
Explanation: The cross-coupled connections from the output of one gate to the input of the other
gate constitute a feedback path. For this reason, the circuits of NOR based S-R latch classified as
asynchronous sequential circuits. Moreover, they are referred to as asynchronous because they
function in the absence of a clock pulse.
331. In a NAND based S’-R’ latch, if S’=1 & R’=1 then the state of the latch is ____________
a) No change
b) Set
JOB
c) Reset
d) Forbidden
Answer: a
Explanation: In a NAND based S’-R, latch if S’=1 & R’=1 then there is no any change in the
state. It remains in its prior state. This state is used for the storage of data.
332. A NAND based S’-R’ latch can be converted into S-R latch by placing ____________
a) A D latch at each of its input
b) An inverter at each of its input
c) It can never be converted
d) Both a D latch and an inverter at its input
Answer: d
Explanation: A NAND based S’-R’ latch can be converted into S-R latch by placing either a D
latch or an inverter at its input as it’s operations will be complementary.
333. One major difference between a NAND based S’-R’ latch & a NOR based S-R latch is
____________
a) The inputs of NOR latch are 0 but 1 for NAND latch
b) The inputs of NOR latch are 1 but 0 for NAND latch
c) The output of NAND latch becomes set if S’=0 & R’=1 and vice versa for NOR latch
d) The output of NOR latch is 1 but 0 for NAND latch
Answer: a
Explanation: Due to inverted input of NAND based S’-R’ latch, the inputs of NOR latch are 0
but 1 for NAND latch.
341. On a positive edge-triggered S-R flip-flop, the outputs reflect the input condition when
________
a) The clock pulse is LOW
b) The clock pulse is HIGH
c) The clock pulse transitions from LOW to HIGH
d) The clock pulse transitions from HIGH to LOW
Answer: c
Explanation: Edge triggered device will follow when there is transition. It is a positive edge
triggered when transition takes place from low to high, while, it is negative edge triggered when
the transition takes place from high to low.
343. If an active-HIGH S-R latch has a 0 on the S input and a 1 on the R input and then the R
input goes to 0, the latch will be ________
a) SET
b) RESET
JOB
c) Clear
d) Invalid
Answer: b
Explanation: If S=0, R=1, the flip flop is at reset condition. Then at S=0, R=0, there is no
change. So, it remains in reset. If S=1, R=0, the flip flop is at the set condition.
344. The circuit that is primarily responsible for certain flip-flops to be designated as edge-
triggered is the _____________
a) Edge-detection circuit
b) NOR latch
c) NAND latch
d) Pulse-steering circuit
Answer: a
Explanation: The circuit that is primarily responsible for certain flip-flops to be designated as
edge-triggered is the edge-detection circuit.
345. Which circuit is generated from D flip-flop due to addition of an inverter by causing
reduction in the number of inputs?
a) Gated JK-latch
b) Gated SR-latch
c) Gated T-latch
d) Gated D-latch
Answer: d
Explanation: Since, both inputs of the D flip-flop are connected through an inverter. And this
causes reduction in the number of inputs.
347. A J-K flip-flop can be obtained from the clocked S-R flip-flop by augmenting ___________
a) Two AND gates
b) Two NAND gates
JOB
c) Two NOT gates
d) Two OR gates
Answer: a
Explanation: A J-K flip-flop can be obtained from the clocked S-R flip-flop by augmenting two
AND gates.
349. The phenomenon of interpreting unwanted signals on J and K while Cp (clock pulse) is
HIGH is called ___________
a) Parity error checking
b) Ones catching
c) Digital discrimination
d) Digital filtering
Answer: b
Explanation: Ones catching means that the input transitioned to a 1 and back very briefly
(unintentionally due to a glitch), but the flip-flop responded and latched it in anyway, i.e., it
caught the 1. Similarly for 0’s catching.
351. A J-K flip-flop with J = 1 and K = 1 has a 20 kHz clock input. The Q output is ________
a) Constantly LOW
b) Constantly HIGH
JOB
c) A 20 kHz square wave
d) A 10 kHz square wave
Answer: d
Explanation: The flip flop is sensitive only to the positive or negative edge of the clock pulse.
So, the flip-flop toggles whenever the clock is falling/rising at edge. This triggering of flip-flop
during the transition state, is known as Edge-triggered flip-flop. Thus, the output curve has a
time period twice that of the clock. Frequency is inversely related to time period and hence
frequency gets halved.
352. What is the significance of the J and K terminals on the J-K flip-flop?
a) There is no known significance in their designations
b) The J represents “jump,” which is how the Q output reacts whenever the clock goes high and
the J input is also HIGH
c) The letters were chosen in honour of Jack Kilby, the inventory of the integrated circuit
d) All of the other letters of the alphabet are already in use
Answer: c
Explanation: The letters J & K were chosen in honour of Jack Kilby, the inventory of the
integrated circuit. In J&K flip-flops, the invalid state problem is resolved, thus leading to the
toggling of states.
354. Two J-K flip-flops with their J-K inputs tied HIGH are cascaded to be used as counters.
After four input clock pulses, the binary count is ________
a) 00
b) 11
c) 01
d) 10
Answer: a
JOB
Explanation: Every O/P repeats after its mod. Here mod is 4 (because 2 flip-flops are used. So
mod = 22 = 4). So after 4 clock pulses the O/P repeats i.e. 00.
355. Four J-K flip-flops are cascaded with their J-K inputs tied HIGH. If the input frequency
(fin) to the first flip-flop is 32 kHz, the output frequency (fout) is ________
a) 1 kHz
b) 2 kHz
c) 4 kHz
d) 16 kHz
Answer: b
Explanation: 32/2=16:-first flip-flop, 16/2=8:- second flip-flop, 8/2=4:- third flip-flop, 4/2=2:-
fourth flip-flop. Since the output frequency is determined on basis of the 4th flip-flop.
356. Determine the output frequency for a frequency division circuit that contains 12 flip-flops
with an input clock frequency of 20.48 MHz.
a) 10.24 kHz
b) 5 kHz
c) 30.24 kHz
d) 15 kHz
Answer: b
Explanation: 12 flip flops = 212 = 4096
Input Clock frequency = 20.48*106 = 20480000
Output Clock frequency = 20480000/4096 = 5000 i.e., 5 kHz.
D Flip Flop
358. In D flip-flop, D stands for _____________
a) Distant
b) Data
JOB
c) Desired
d) Delay
Answer: b
Explanation: The D of D-flip-flop stands for “data”. It stores the value on the data line.
363. In D flip-flop, if clock input is HIGH & D=1, then output is ___________
a) 0
b) 1
c) Forbidden
d) Toggle
Answer: a
Explanation: If clock input is HIGH & D=1, then output is 0. It can be observed from this
diagram:
JOB
Hence, for every negative trigger pulse, the logic at input D is shifted to Output Q.
JOB
Explanation: If the clock is HIGH then the D flip-flop operates and we know that input equals to
output in case of D flip flop. It stores the value on the data line.
368. Which of the following describes the operation of a positive edge-triggered D flip-flop?
a) If both inputs are HIGH, the output will toggle
b) The output will follow the input on the leading edge of the clock
c) When both inputs are LOW, an invalid state exists
d) The input is toggled into the flip-flop on the leading edge of the clock and is passed to the
output on the trailing edge of the clock
Answer: b
Explanation: Edge-triggered flip-flop means the device will change state during the rising or
falling edge of the clock pulse. The main phenomenon of the D flip-flop is that the o/p will
follow the i/p when the enable pin is HIGH.
369. A D flip-flop utilizing a PGT clock is in the CLEAR state. Which of the following input
actions will cause it to change states?
a) CLK = NGT, D = 0
b) CLK = PGT, D = 0
c) CLOCK NGT, D = 1
d) CLOCK PGT, D = 1
Answer: d
Explanation: PGT refers to Positive Going Transition and NGT refers to negative Going
Transition. Earlier, the DFF is in a clear state (output is 0). So, if D = 1 then in the next stage
output will be 1 and hence the stage will be changed.
371. Why do the D flip-flops receive its designation or nomenclature as ‘Data Flip-flops’?
a) Due to its capability to receive data from flip-flop
b) Due to its capability to store data in flip-flop
JOB
c) Due to its capability to transfer the data into flip-flop
d) Due to erasing the data from the flip-flop
Answer: c
Explanation: Due to its capability to transfer the data into flip-flop. D-flip-flops stores the value
on the data line.
Master-Slave Flip-Flops
373. The asynchronous input can be used to set the flip-flop to the ____________
a) 1 state
b) 0 state
c) either 1 or 0 state
d) forbidden State
Answer: c
Explanation: The asynchronous input can be used to set the flip-flop to the 1 state or clear the
flip-flop to the 0 state at any time, regardless of the condition at the other inputs.
JOB
375. D flip-flop is a circuit having ____________
a) 2 NAND gates
b) 3 NAND gates
c) 4 NAND gates
d) 5 NAND gates
Answer: c
Explanation: D flip-flop is a circuit having 4 NAND gates. Two of them are connected with each
other.
376. In JK flip flop same input, i.e. at a particular time or during a clock pulse, the output will
oscillate back and forth between 0 and 1. At the end of the clock pulse the value of output Q is
uncertain. The situation is referred to as?
a) Conversion condition
b) Race around condition
c) Lock out state
d) Forbidden State
Answer: b
Explanation: A race around condition is a flaw in an electronic system or process whereby the
output and result of the process is unexpectedly dependent on the sequence or timing of other
events.
378. In a positive edge triggered JK flip flop, a low J and low K produces?
a) High state
b) Low state
c) Toggle state
d) No Change State
Answer: d
Explanation: In JK Flip Flop if J = K = 0 then it holds its current state. There will be no change.
JOB
379. If one wants to design a binary counter, the preferred type of flip-flop is ____________
a) D type
b) S-R type
c) Latch
d) J-K type
Answer: d
Explanation: If one wants to design a binary counter, the preferred type of flip-flop is J-K type
because it has capability to recover from toggle condition. SR flip-flop is not suitable as it
produces the “Invalid State”.
380. S-R type flip-flop can be converted into D type flip-flop if S is connected to R through
____________
a) OR Gate
b) AND Gate
c) Inverter
d) Full Adder
Answer: c
Explanation: S-R type flip-flop can be converted into D type flip-flop if S is connected to R
through an Inverter gate.
381. Which of the following flip-flops is free from the race around the problem?
a) T flip-flop
b) SR flip-flop
c) Master-Slave Flip-flop
d) D flip-flop
Answer: a
Explanation: T flip-flop is free from the race around condition because its output depends only
on the input; hence there is no any problem creates as like toggle.
JOB
383. How many types of triggering takes place in a flip flops?
a) 3
b) 2
c) 4
d) 5
Answer: a
Explanation: There are three types of triggering in a flip-flop, viz., level triggering, edge
triggering and pulse triggering.
JOB
387. The circuit that generates a spike in response to a momentary change of input signal is
called ____________
a) R-C differentiator circuit
b) L-R differentiator circuit
c) R-C integrator circuit
d) L-R integrator circuit
Answer: a
Explanation: The circuit that generates a spike in response to a momentary change of input signal
is called R-C differentiator circuit.
Counters
388. In digital logic, a counter is a device which ____________
a) Counts the number of outputs
b) Stores the number of times a particular event or process has occurred
c) Stores the number of times a clock pulse rises and falls
d) Counts the number of inputs
Answer: b
Explanation: In digital logic and computing, a counter is a device which stores (and sometimes
displays) the number of times a particular event or process has occurred, often in relationship to
a clock signal.
390. What is the maximum possible range of bit-count specifically in n-bit binary counter
consisting of ‘n’ number of flip-flops?
a) 0 to 2n
b) 0 to 2n + 1
c) 0 to 2n – 1
JOB
d) 0 to 2n+1/2
Answer: c
Explanation: The maximum possible range of bit-count specifically in n-bit binary counter
consisting of ‘n’ number of flip-flops is 0 to 2n-1. For say, there is a 2-bit counter, then it will
count till 22-1 = 3. Thus, it will count from 0 to 3.
Asynchronous Counter
398. How many natural states will there be in a 4-bit ripple counter?
a) 4
JOB
b) 8
c) 16
d) 32
Answer: c
Explanation: In an n-bit counter, the total number of states = 2n.
Therefore, in a 4-bit counter, the total number of states = 24 = 16 states.
400. One of the major drawbacks to the use of asynchronous counters is that ____________
a) Low-frequency applications are limited because of internal propagation delays
b) High-frequency applications are limited because of internal propagation delays
c) Asynchronous counters do not have major drawbacks and are suitable for use in high- and
low-frequency counting applications
d) Asynchronous counters do not have propagation delays, which limits their use in high-
frequency applications
Answer: b
Explanation: One of the major drawbacks to the use of asynchronous counters is that High-
frequency applications are limited because of internal propagation delays. Propagation delay
refers to the amount of time taken in producing an output when the input is altered.
JOB
Explanation: Propagation delay refers to the amount of time taken in producing an output when
the input is altered. Internal propagation delay of asynchronous counter is removed by
synchronous counter because clock input is given to each flip-flop individually in synchronous
counter.
402. What happens to the parallel output word in an asynchronous binary down counter
whenever a clock pulse occurs?
a) The output increases by 1
b) The output decreases by 1
c) The output word increases by 2
d) The output word decreases by 2
Answer: b
Explanation: In an asynchronous counter, there isn’t any clock input. The output of 1st flip-flop is
given to second flip-flop as clock input. So, in case of binary down counter the output word
decreases by 1.
405. How many different states does a 3-bit asynchronous counter have?
a) 2
b) 4
JOB
c) 8
d) 16
Answer: c
Explanation: In a n-bit counter, the total number of states = 2n.
Therefore, in a 3-bit counter, the total number of states = 23 = 8 states.
406. A 5-bit asynchronous binary counter is made up of five flip-flops, each with a 12 ns
propagation delay. The total propagation delay (tp(total)) is ____________
a) 12 ms
b) 24 ns
c) 48 ns
d) 60 ns
Answer: d
Explanation: Since a counter is constructed using flip-flops, therefore, the propagation delay in
the counter occurs only due to the flip-flops. Each bit has propagation delay = 12ns. So, 5 bits =
12ns * 5 = 60ns.
407. An asynchronous 4-bit binary down counter changes from count 2 to count 3. How many
transitional states are required?
a) 1
b) 2
c) 8
d) 15
Answer: d
Explanation: Transitional state is given by (2n – 1). Since, it’s a 4-bit counter, therefore,
transition states = 24 – 1 = 15. So, total transitional states are 15.
408. A 4-bit ripple counter consists of flip-flops, which each have a propagation delay from
clock to Q output of 15 ns. For the counter to recycle from 1111 to 0000, it takes a total of
____________
a) 15 ns
b) 30 ns
c) 45 ns
d) 60 ns
Answer: d
Explanation: Since a counter is constructed using flip-flops, therefore, the propagation delay in
JOB
the counter occurs only due to the flip-flops. One bit change is 15 ns, so 4-bit change = 15 * 4 =
60.
409. Three cascaded decade counters will divide the input frequency by ____________
a) 10
b) 20
c) 100
d) 1000
Answer: d
Explanation: Decade counter has 10 states. So, three decade counters are cascaded i.e.
10*10*10=1000 states.
JOB
and they do need a clock pulse to trigger them. Whereas, synchronous events occur in presence
of clock pulse.
415. How many different states does a 3-bit asynchronous down counter have?
a) 2
b) 4
c) 6
d) 8
Answer: d
Explanation: In a n-bit counter, the total number of states = 2n.
Therefore, in a 3-bit counter, the total number of states = 23 = 8 states.
JOB
416. In a down counter, which flip-flop doesn’t toggle when the inverted output of the
preceeding flip-flop goes from HIGH to LOW.
a) MSB flip-flop
b) LSB flip-flop
c) Master slave flip-flop
d) Latch
Answer: b
Explanation: Since, the LSB flip-flop changes its state at each negative transition of clock. That
is why LSB flip-flop doesn’t have toggle.
418. In a 3-bit asynchronous down counter, at the first negative transition of the clock, the
counter content becomes ____________
a) 000
b) 111
c) 101
d) 010
Answer: b
Explanation: Since, in the down counter, the counter content is decremented by 1 for every
negative transition. Hence, in a 3-bit asynchronous down counter, at the first negative transition
of the clock, the counter content becomes 111.
419. In a 3-bit asynchronous down counter, at the first negative transition of the clock, the
counter content becomes ____________
a) 000
b) 111
c) 101
d) 010
Answer: c
JOB
Explanation: Since, in the down counter, the counter content is decremented by 1 for every
negative transition. Hence, in a 3-bit asynchronous down counter, at the first negative transition
of the clock, the counter content becomes 101.
Up down counter
421. UP-DOWN counter is a combination of ____________
a) Latches
b) Flip-flops
c) UP counter
d) Up counter & down counter
Answer: d
Explanation: As the name suggests UP-DOWN, it means that it has up-counter and down-
counter as well. It alternatively counts up and down.
JOB
d) The inverted output of the preceding flip-flop
Answer: b
Explanation: In an UP-counter, each flip-flop is triggered by the normal output of the preceding
flip-flop. UP-counter counts from 0 to a maximum value.
425. Binary counter that count incrementally and decrement is called ___________
a) Up-down counter
b) LSI counters
c) Down counter
d) Up counter
Answer: a
Explanation: Binary counter that counts incrementally and decrement is called UP-DOWN
counter/multimode counter. It alternately counts up and down.
Registers
431. A register is defined as ___________
a) The group of latches for storing one bit of information
JOB
b) The group of latches for storing n-bit of information
c) The group of flip-flops suitable for storing one bit of information
d) The group of flip-flops suitable for storing binary information
Answer: d
Explanation: A register is defined as the group of flip-flops suitable for storing binary
information. Each flip-flop is a binary cell capable of storing one bit of information. The data in
a register can be transferred from one flip-flop to another.
Shift Registers
441. Based on how binary information is entered or shifted out, shift registers are classified into
_______ categories.
a) 2
b) 3
c) 4
d) 5
Answer: c
Explanation: The registers in which data can be shifted serially or parallelly are known as shift
registers. Based on how binary information is entered or shifted out, shift registers are classified
into 4 categories, viz., Serial-In/Serial-Out(SISO), Serial-In/Parallel-Out (SIPO), Parallel-
In/Serial-Out (PISO), Parallel-In/Parallel-Out (PIPO).
JOB
c) Serial-in Serial-out
d) Serial-In Peripheral-Out
Answer: a
Explanation: SIPO is always known as Serial-in Parallel-out.
443. A shift register that will accept a parallel input or a bidirectional serial load and internal
shift features is called as?
a) Tristate
b) End around
c) Universal
d) Conversion
Answer: c
Explanation: A shift register can shift it’s data either left or right. The universal shift register is
capable of shifting data left, right and parallel load capabilities.
444. How can parallel data be taken out of a shift register simultaneously?
a) Use the Q output of the first FF
b) Use the Q output of the last FF
c) Tie all of the Q outputs together
d) Use the Q output of each FF
Answer: d
Explanation: Because no other flip-flops are connected with the output Q, therefore one can use
the Q out of each FF to take out parallel data.
446. The group of bits 11001 is serially shifted (right-most bit first) into a 5-bit parallel output
shift register with an initial state 01110. After three clock pulses, the register contains ________
a) 01110
b) 00001
JOB
c) 00101
d) 00110
Answer: c
Explanation: LSB bit is inverted and feed back to MSB:
01110->initial
10111->first clock pulse
01011->second
00101->third.
447. Assume that a 4-bit serial in/serial out shift register is initially clear. We wish to store the
nibble 1100. What will be the 4-bit pattern after the second clock pulse? (Right-most bit first)
a) 1100
b) 0011
c) 0000
d) 1111
Answer: c
Explanation: In Serial-In/Serial-Out shift register, data will be shifted one at a time with every
clock pulse. Therefore,
Wait | Store
1100 | 0000
110 | 0000 1st clock
11 | 0000 2nd clock.
448. A serial in/parallel out, 4-bit shift register initially contains all 1s. The data nibble 0111 is
waiting to enter. After four clock pulses, the register contains ________
a) 0000
b) 1111
c) 0111
d) 1000
Answer: c
Explanation: In Serial-In/Parallel-Out shift register, data will be shifted all at a time with every
clock pulse. Therefore,
Wait | Store
0111 | 0000
011 | 1000 1st clk
01 | 1100 2nd clk
JOB
0 | 1110 3rd clk
X | 1111 4th clk.
449. With a 200 kHz clock frequency, eight bits can be serially entered into a shift register in
________
a) 4 μs
b) 40 μs
c) 400 μs
d) 40 ms
Answer: b
Explanation: f = 200 KHZ; T = (1/200) m sec = (1/0.2) micro-sec = 5 micro-sec;
In serial transmission, data enters one bit at a time. After 8 clock cycles only 8 bit will be loaded
= 8 * 5 = 40 micro-sec.
450. An 8-bit serial in/serial out shift register is used with a clock frequency of 2 MHz to achieve
a time delay (td) of ________
a) 16 us
b) 8 us
c) 4 us
d) 2 us
Answer: c
Explanation: One clock period is = (½) micro-s = 0.5 microseconds. In serial transmission, data
enters one bit at a time. So, the total delay = 0.5*8 = 4 micro seconds time is required to transmit
information of 8 bits.
JOB
452. A bidirectional 4-bit shift register is storing the nibble 1101. Its input is HIGH. The nibble
1011 is waiting to be entered on the serial data-input line. After three clock pulses, the shift
register is storing ________
a) 1101
b) 0111
c) 0001
d) 1110
Answer: b
Explanation: Mode is high means it’s a right shift register. Then after 3 clock pulses enter bits
are 011 and remained bit in register is 1. Therefore, 0111 is required solution.
1011 | 1101
101 | 1110 -> 1st clock pulse
10 | 1111 -> 2nd clock pulse
1 | 0111 -> 3rd clock pulse.
454. A 4-bit shift register that receives 4 bits of parallel data will shift to the ________ by
________ position for each clock pulse.
a) Right, one
b) Right, two
c) Left, one
d) Left, three
Answer: a
Explanation: If register shifts towards left then it shift by a bit to the left and if register shifts
right then it shift to the right by one bit. Since, it receives parallel data, then by default, it will
shift to right by one position.
JOB
455. How many clock pulses will be required to completely load serially a 5-bit shift register?
a) 2
b) 3
c) 4
d) 5
Answer: d
Explanation: A register is a collection of FFS. To load a bit, we require 1 clock pulse for 1 shift
register. So, for 5-bit shift register we would require of 5 clock pulses.
456. How is an strobe signal used when serially loading a shift register?
a) To turn the register on and off
b) To control the number of clocks
c) To determine which output Qs are used
d) To determine the FFs that will be used
Answer: b
Explanation: A strobe is used to validate the availability of data on the data line. It (an auxiliary
signal used to help synchronize the real data in an electrical bus when the bus components have
no common clock) signal is used to control the number of clocks during serially loading a shift
register.
457. An 8-bit serial in/serial out shift register is used with a clock frequency of 150 kHz. What is
the time delay between the serial input and the Q3 output?
a) 1.67 s
b) 26.67 s
c) 26.7 ms
d) 267 ms
Answer: b
Explanation: In serial-sifting, one bit of data is shifted one at a time. From Q0 to Q3 total of 4 bit
shifting takes place. Therefore, 4/150kHz = 26.67 microseconds.
JOB
459. The primary purpose of a three-state buffer is usually ____________
a) To provide isolation between the input device and the data bus
b) To provide the sink or source current required by any device connected to its output without
loading down the output device
c) Temporary data storage
d) To control data flow
Answer: a
Explanation: The primary purpose of a three-state buffer is usually to provide isolation between
the input device or peripheral devices and the data bus. Three conditions of a three-state buffer
are HIGH, LOW & float.
460. What is the difference between a ring shift counter and a Johnson shift counter?
a) There is no difference
b) A ring is faster
c) The feedback is reversed
d) The Johnson is faster
Answer: c
Explanation: A ring counter is a shift register (a cascade connection of flip-flops) with the output
of the last one connected to the input of the first, that is, in a ring. Whereas, a Johnson counter
(or switchtail ring counter, twisted-ring counter, walking-ring counter, or Moebius counter) is a
modified ring counter, where the output from the last stage is inverted and fed back as input to
the first stage.
JOB
b) When all outputs are normally HIGH
c) When all outputs are normally LOW
d) When two or more outputs are connected to two or more inputs
Answer: a
Explanation: When two or more outputs are connected to the same input, in such situation we
use of tristate buffer always because it has the capability to take upto three inputs. A buffer is a
circuit where the output follows the input.
463. A bidirectional 4-bit shift register is storing the nibble 1110. Its input is LOW. The nibble
0111 is waiting to be entered on the serial data-input line. After two clock pulses, the shift
register is storing ________
a) 1110
b) 0111
c) 1000
d) 1001
Answer: d
Explanation: Stored nibble | waiting nibble
0111 | 1110, Initially
111 | 1100, 1st pulse
11 | 1001, 2nd pulse.
465. The group of bits 10110111 is serially shifted (right-most bit first) into an 8-bit parallel
output shift register with an initial state 11110000. After two clock pulses, the register contains
a) 10111000
b) 10110111
c) 11110000
d) 11111100
JOB
Answer: d
Explanation: After first clock pulse, the register contains 11111000. After second clock pulse,
the register would contain 11111100. Since, the bits are shifted to the right at every clock pulse.
466. By adding recirculating lines to a 4-bit parallel-in serial-out shift register, it becomes a
________ ________ and ________ out register.
a) Parallel-in, serial, parallel
b) Serial-in, parallel, serial
c) Series-parallel-in, series, parallel
d) Bidirectional in, parallel, series
Answer: a
Explanation: One bit shifting takes place just after the output obtained on every register. Hence,
by adding recirculating lines to a 4-bit parallel-in serial-out shift register, it becomes a Parallel-
in, Serial, and Parallel-out register. Since, the bots can be inputted all at the same time, while the
data can be outputted either one at a time or simultaneously.
467. What type of register would have a complete binary number shifted in one bit at a time and
have all the stored bits shifted out one at a time?
a) Parallel-in Parallel-out
b) Parallel-in Serial-out
c) Serial-in Serial-out
d) Serial-in Parallel-out
Answer: c
Explanation: Serial-in Serial-out register would have a complete binary number shifted in one bit
at a time and have all the stored bits shifted out one at a time. Since in serial transmission, bits
are transmitted or received one at a time and not simultaneously.
468. In a 4-bit Johnson counter sequence, there are a total of how many states, or bit patterns?
a) 1
b) 3
c) 4
d) 8
Answer: d
Explanation: In johnson counter, total number of states are determined by 2N = 2*4 = 16
Total Number of Used states = 2N = 2*4 = 8
Total Number of Unused states = 16 – 8 = 8.
JOB
469. If a 10-bit ring counter has an initial state 1101000000, what is the state after the second
clock pulse?
a) 1101000000
b) 0011010000
c) 1100000000
d) 0000000000
Answer: b
Explanation: After shifting 2-bit we get the output as 0011010000 (Since two zeros are at
1st position and 2nd position which came from the last two bits). As in a ring counter, the bits
rotate in clockwise direction.
470. How much storage capacity does each stage in a shift register represent?
a) One bit
b) Two bits
c) Four bits
d) Eight bits
Answer: a
Explanation: A register is made of flip-flops. And each flip-flop stores 1 bit of data. Thus, a shift
register has the capability to store one bit and if another bit is to store, in such situation it deletes
the previous data and stores them.
472. The instruction used in a program for executing them is stored in the __________
a) CPU
b) Control Unit
c) Memory
JOB
d) Microprocessor
Answer: c
Explanation: All of the program and the instructions are stored in the memory. The processor
fetches it as and when required.
478. Which one of the following has capability to store data in extremely high densities?
a) Register
b) Capacitor
c) Semiconductor
d) Flip-Flop
Answer: c
Explanation: Semiconductor has capability to store data in extremely high densities.
482. Data stored in an electronic memory cell can be accessed at random and on demand using
__________
a) Memory addressing
b) Direct addressing
c) Indirect addressing
d) Control Unit
Answer: b
Explanation: Direct addressing eliminates the need to process a large stream of irrelevant data in
order to the desired data word.
JOB
Answer: c
Explanation: EEPROM (Electrical Erasable Programmable ROM) is not a type of memory
because it is used for erasing purpose only. Through EEPROM, data can be erased electrically,
thereby consuming less time.
489. The chip by which both the operation of read and write is performed __________
a) RAM
b) ROM
c) PROM
d) EPROM
Answer: a
Explanation: A Random Access Memory (RAM) is a volatile chip memory in which both the
read and write operations can be performed. Since it is volatile, therefore it stores data as long as
power is on.
491. If a RAM chip has n address input lines then it can access memory locations upto
__________
a) 2(n-1)
b) 2(n+1)
c) 2n
d) 22n
Answer: c
Explanation: RAM is a volatile memory, therefore it stores data as long as power is on. RAM is
also known as RWM (i.e. Read Write Memory). If a RAM chip has n address input lines then it
can access memory locations upto 2n.
493. Which of the following control signals are selected for read and write operations in a RAM?
a) Data buffer
b) Chip select
c) Read and write
d) Memory
Answer: c
Explanation: Read and write are control signals that are used to enable memory for read and
write operations respectively.
499. The magnetic core memories have been replaced by semiconductor RAMs, why?
a) Semiconductor RAMs are highly flexible
b) Semiconductor RAMs have highest storing capacity
c) Semiconductor RAMs are smaller in size
d) All of the Mentioned
Answer: d
Explanation: RAM is a volatile memory, therefore it stores data as long as power is on. RAM is
also known as RWM (i.e. Read Write Memory). The magnetic core memories have been
replaced by semiconductor RAMs because of smaller in size, high storing capacity as well as
flexibility.
JOB
500. The data written in flip-flop remains stored as long as __________
a) D.C. power is supplied
b) D.C. power is removed
c) A.C. power is supplied
d) A.C. power is removed
Answer: a
Explanation: Since flip-flops are made up of semiconductor materials. So, it can’t accept A.C.
source and the data written in flip-flop remains stored as long as the dc power is maintained.
503. Since, ROM has the capability to read the information only then also it has been designed,
why?
a) For controlling purpose
b) For loading purpose
c) For booting purpose
d) For erasing purpose
JOB
Answer: c
Explanation: ROM means “Read Only Memory”. Hence, it has capability to perform read
operation only. No write or erase operation could be performed in the ROM. It has designed to
provide the computer with resident programmes and for booting purpose.
507. In ROM, each bit is a combination of the address variables is called ___________
a) Memory unit
b) Storage class
c) Data word
d) Address
Answer: d
JOB
Explanation: In ROM, each bit combination that comes out of the output lines is called data
word. Usually, a word consists of 16-bits or 2-bytes.
509. In ROM, each bit combination that comes out of the output lines is called ___________
a) Memory unit
b) Storage class
c) Data word
d) Address
Answer: c
Explanation: In ROM, each bit combination that comes out of the output lines is called data
word. Usually, a word consists of 16-bits or 2-bytes.
JOB
Answer: d
Explanation: The time from the beginning of a read cycle to the end of tACS/tAA is called as
access time. It is the time in which data is fetched from the storage.
515. The bit capacity of a memory that has 2048 addresses and can store 8 bits at each address is
___________
a) 4096
b) 16384
c) 32768
JOB
d) 8129
Answer: b
Explanation: 1 address can store 8 bits. Therefore, total capacity of a memory having n addresses
= 8 * n.
Therefore, for 2048 addresses,
total capacity of a memory = 2048 * 8 = 16384 bits.
516. How many 8 k × 1 RAMs are required to achieve a memory with a word capacity of 8 k and
a word length of eight bits?
a) Eight
b) Two
c) One
d) Four
Answer: a
Explanation: RAM stands for Random Access Memory in which any memory address can be
accessed in any order. It requires word of length 8 bits. So, one word needs of 1 bit and 8 bit
requires 8 bits.
JOB
519. Which part of a Flash memory architecture manages all chip functions?
a) Program verify code
b) Floating-gate MOSFET
c) Command code
d) Input/Output pins
Answer: b
Explanation: MOSFET technology is the best one in the manufacturing of chip because it has
high flexibility and storage capacity. Thus, Floating-Gate MOSFET part of a Flash Memory
architecture manages all chip functions.
520. How much locations an 8-bit address code can select in memory?
a) 8 locations
b) 256 locations
c) 65,536 locations
d) 131,072 locations
Answer: b
Explanation: An 8 bit address code requires 32 memory locations and it can hold maximum upto
32 * 8 = 256 locations = 28.
JOB
523. The cell type used inside a PROM is ___________
a) Link cells
b) Metal cells
c) Fuse cells
d) Electric cells
Answer: c
Explanation: The cell type used inside a PROM is fuse cells by which a program is burnout.
Fusing is a process by which programs are burnout to the diode/transistors and it can not be
reprogrammed if any error occurs.
JOB
Explanation: EPROMs are Erasable Programmable ROMs which can be erased using UV
radiation and re-programmed. EPROM uses an array of n-channel enhancement type MOSFET
with an insulated gate structure.
528. Address decoding for dynamic memory chip control may also be used for ______________
a) Chip selection and address location
b) Read and write control
c) Controlling refresh circuits
d) Memory mapping
Answer: a
Explanation: Address decoding for dynamic memory chip control may also be used for chip
selection and address location. Chip Selection enables or disables the functioning of the chip.
529. Which of the following describes the action of storing a bit of data in a mask ROM?
a) A 0 is stored by connecting the gate of a MOS cell to the address line
b) A 0 is stored in a bipolar cell by shorting the base connection to the address line
c) A 1 is stored by connecting the gate of a MOS cell to the address line
d) A 1 is stored in a bipolar cell by opening the base connection to the address line
Answer: c
Explanation: The action of storing a bit of data in a mask ROM is that when a 1 is stored by
connecting the gate of a MOS cell to the address line. Mask ROMs are programmed by the
manufacturer and are custom made as per the user.
534. Which one of the following is used for the fabrication of MOS EPROM?
a) TMS 2513
b) TMS 2515
c) TMS 2516
d) TMS 2518
Answer: c
Explanation: EPROMs are Erasable Programmable ROMs which can be erased using UV
radiation and re-programmed. TMS 2516 is a MOS EPROM device.
JOB
535. How many addresses a MOS EPROM have?
a) 1024
b) 512
c) 2516
d) 256
Answer: c
Explanation: EPROMs are Erasable Programmable ROMs which can be erased using UV
radiation and re-programmed. MOS EPROM (i.e. TMS 2516) has 2048 (2^11 = 2048) addresses.
536. To read from the memory, the select input and the power down/program input must be
______________
a) HIGH
b) LOW
c) Sometimes HIGH and sometimes LOW
d) Alternate HIGH and LOW
Answer: b
Explanation: To read from the memory, the select input and the power down/program input must
be LOW.
538. Suppose that a certain semiconductor memory chip has a capacity of 8K × 8. How many
bytes could be stored in this device?
a) 8,000
b) 65,536
c) 8,192
d) 64,000
Answer: c
Explanation: 8K = 8 * 1024 = 8192.
JOB
539. When a RAM module passes the checker board test it is ______________
a) Able to read and write only 0s
b) Faulty
c) Probably good
d) Able to read and write only 1s
Answer: c
Explanation: When a RAM module passes the checker board test it is probably good. It is a
volatile memory. Thus, RAM stores the data as long as it is powered on and once the power goes
out, it loses its data.
540. What is the difference between static RAM and dynamic RAM?
a) Static RAM must be refreshed, dynamic RAM does not
b) There is no difference
c) Dynamic RAM must be refreshed, static RAM does not
d) SRAM is slower than DRAM
Answer: c
Explanation: Dynamic RAM must be refreshed because it made up of capacitor, and capacitor
required refresh. Static RAM made up of flip flop and it doesn’t required a refresh.
JOB