EE3302 QB 02 2MARKS - by LearnEngineering - in
EE3302 QB 02 2MARKS - by LearnEngineering - in
in
www.LearnEngineering.in
DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING
Two Marks Q & A
EE3302 - DIGITAL LOGIC CIRCUITS
UNIT – I NUMBER SYSTEMS AND DIGITAL LOGIC FAMILIES
1. What is the difference between analog and digital systems?
In a digital system the physical quantities or signals can assume only discrete values, while in analog
systems the physical quantities or signals vary continuously over a specified range.
n
2. What is a binary number system and why are binary numbers used in digital systems?
g.i
The number system with base (or radix) two is known as the binary number system. Only two
symbols are used to represent the numbers in the system and these are 0 and 1.The outputs of the
rin
switching devices used in digital systems assume only two different values. Hence it is natural to use
binary numbers internally in digital systems.
3. Where the digital systems are used?
ee
Digital systems are used extensively in computation and data processing, control systems,
Communications and measurements. Since digital systems are capable of greater accuracy and reliability
gin
than analog systems, many tasks formerly done by analog are now being performed digitally.
4. What is the difference between binary code and BCD?
En
Binary:
i. Any distinct element can be represented by a binary code.
ii. No limitation for the minimum or maximum number of elements required for coding the element.
arn
BCD:
i. Only a decimal digit can be represented.
ii. It is a four bit representation.
Le
A gray code is a non weighted code which has the property that the codes for successive decimal
digits differ in exactly one bit.
The gray code is used in applications where the normal sequence of binary numbers may produce an
error during the transition from one number to the next.
7. What is meant by non-weighted codes?
Each bit has no positional value i). Excess-3 code ii).Gray code iii).Five bit BCD
.in
Sum = 10010001
Discard end carry
ng
Answer: X - Y = 0010001
b) Y = 1000011
eri
2‟s complement of X = + 0101100
---------------
Sum = 1101111
There is no end carry, e
gin
Therefore the answer is Y-X = -(2‟s complement of 1101111) = -0010001
10. Define binary logic?
En
Binary logic consists of binary variables and logical operations. The variables are designated by
the alphabets such as A, B, C, x, y, z, etc., with each variable having only two distinct values: 1 and 0.
There are three basic logic operations: AND, OR, and NOT.
arn
OR gate
NOT gate
w.
that is able to operate on a number of binary inputs in order to perform a Particular logical function.
13. Give the classification of logic families
Bipolar Unipolar
Saturated Non Saturated PMOS NMOS CMOS
RTL Schottky TTL
ECL DTL
IIL
TTL
14. Which gates are called as the universal gates? What are its advantages?
The NAND and NOR gates are called as the universal gates. These gates are used to perform any
type of logic application.
15. Classify the logic family by operation?
The Bipolar logic family is classified into
Saturated logic
Unsaturated logic.
The RTL, DTL, TTL, I2L, HTL logic comes under the saturated logic family.
.in
The Schottky TTL, and ECL logic comes under the unsaturated logic family.
16. State the classifications of FET devices.
ng
FET is classified as
1. Junction Field Effect Transistor (JFET)
eri
2. Metal oxide semiconductor family (MOS).
17. Mention the classification of saturated bipolar logic families.
The bipolar logic family is classified as follows:
RTL- Resistor Transistor Logic e
gin
DTL- Diode Transistor logic
IIL- Integrated Injection Logic
En
Fan out
Power dissipation
Propagation Delay
Le
Noise Margin
Fan In
w.
Operating temperature
Power supply requirements
ww
.in
temperature in which the performance of the IC is effective is called as operating temperature.
Operating temperature of the IC vary from 00C to 700 c.
ng
25. What is High Threshold Logic?
Some digital circuits operate in environments, which produce very high noise signals. For
eri
operation in such surroundings there is available a type of DTL gate which possesses a high threshold to
noise immunity. This type of gate is called HTL logic or High Threshold Logic.
26. What are the types of TTL logic?
1. Open collector output e
gin
2. Totem-Pole Output
3. Tri-state output.
En
1. The n- channel MOS conducts when its gate- to- source voltage is positive.
2. The p- channel MOS conducts when its gate- to- source voltage is negative
ww
3. Either type of device is turned of if its gate- to- source voltage is zero.
30. How Scotty transistors are formed and state its use?
A Scotty diode is formed by the combination of metal and semiconductor. The presence
of Scotty diode between the base and the collector prevents the transistor from going into
saturation. The resulting transistor is called as Scotty transistor.
The use of Scotty transistor in TTL decreases the propagation delay without a sacrifice of
power dissipation.
.in
excessive current and may result in damage to the devices.
33. State advantages and disadvantages of TTL
ng
Advantages:
1. Easily compatible with other ICs
eri
2. Low output impedance
Disadvantages:
Wired output capability is possible only with tri-state and open collector types special circuits in
Circuit layout and system design are required. e
gin
34. When does the noise margin allow digital circuits to function properly?
When noise voltages are within the limits of VNA (High State Noise Margin) and VNK for a
En
.in
2. Determine the number of available input variables & required O/P variables.
3. Assigning letter symbols to I/O variables
ng
4. Obtain simplified Boolean expression for each O/P.
5. Obtain the logic diagram.
eri
3. Give the 2 canonical forms of Boolean function.
1. Sum of products 2. Product of sums
4. What is minterm & maxterm?
e
A product term containing all the „n‟ variables of the function in either complemented or
gin
uncomplemented form is called minterm. A sum term containing all the „n‟ variables of the function in
either complemented or Uncomplemented form is called maxterm.
En
form.
The product of sums expression consists of two or more sum (OR) terms that are AND ed
together. Each sum term consists of one or more literals in either complemented or uncomplemented
Le
form.
6. What is a K- map?
w.
Karnaugh map is a useful tool for simplifying and manipulating switching functions. It is a map
containing 2n cells for a „n variable case. Each cell corresponds to one row of the truth table.
ww
.in
11. What is tabulation method?
The tabulation or Quine McCluskey method is a specific step by step procedure guaranteed to
ng
produce a simplified standard form expression for a function. It can be applied to problems with many
variables and has the advantage of being suitable for machine computation.
eri
12. What are the steps to design a combinational logic circuit?
(1) The problem is stated
(2) The number of available input variables and required output variables is determined
e
(3) The input and output variables are assigned letter symbols
gin
(4) The truth table that defines the required relationships between inputs and outputs is derived
(5) The simplified Boolean function for each output is obtained
En
A decoder is a combinational circuit that converts binary information from n input lines
to a maximum of 2n out puts lines.
ww
.in
the use of different codes for different digital systems. It is sometimes necessary to use the output of one
system as the input to another. A conversion circuit must be inserted between the two systems if each
ng
uses different codes for the same information. Thus a code converter is a circuit that makes the two
systems compatible even though each uses a different binary code.
eri
21. What is an Encoder & Decoder?
An encoder is a combinational circuit that has 2n input lines and „n output lines. The output lines
generate the binary code corresponding to the input value.eg. octal to binary encoder has 8 inputs and 3
e
outputs that generate the binary number corresponding to the octal digit.
gin
The decoder is a combinational circuit that converts binary information from „n input lines to a maximum
of 2n unique output lines. A binary code of n bits is capable of representing up to 2n distinct elements.
En
A digital Multiplexer (data selector) is a combinational circuit that selects binary information from one of
many input lines and directs it to a single output line. A Demultiplexer (data distributor) is a
combinational circuit that receives the information on a single line and transmits this information on one
Le
.in
signal at discrete instants of time. Synchronous sequential circuit that uses clock pulses in the inputs of
memory elements is called clocked sequential circuit. The change of internal state occurs in response to
ng
the synchronized Clock pulses.
3. What is called a latch?
eri
Unclocked flip-flop that responds to pulse duration is called a latch.
4. What is a flip-flop & List the different types of flip-flops.
It is a basic memory element used to store one bit of information. It is also called as a bistable
e
multivibrator. A flip-flop circuit has two outputs, one for the normal value and one for the complement of
gin
the bit stored in it. It can store the binary value indefinitely until directed by an input signal to switch
states. RS, D, T, J K and J K master slave flip-flop.
En
J K flip flop
.in
8. What do you mean by race around condition in a flip-flop?
When both J = K = 1 and clock pulse is „1‟ it causes the output to complement again and repeat
ng
complementing until the pulse goes back to „0‟(i.e.) the output toggles continuously. This Race condition
arises when the width of the clock pulse is greater than the propagation delay time of the flip-flop.
eri
9. What is a master slave flip-flop?
A master slave flip-flop is constructed from two separate flipflops. One circuit serves as a master and the
other as a slave, the overall circuit is referred to as a master slave flip-flop. Both the flipflops are positive
e
level triggered but the presence of inverter at the clock input of the slave flip-flop forces it to trigger at
gin
the negative level.
10. What is direct preset and clear inputs?
En
A truth table is a table indicating the output of a combinational circuit for all input states.An excitation
table is a list of Flip-flop input conditions that will cause the required state transitions.
12. What is a counter?
Le
A Sequential circuit that goes through a prescribed sequence of states upon the application of input
pulses is called a counter.
w.
Main drawback of these counters is their low speed as the clock is propagated through number of
flipflops before it reaches the last flip-flop.
14. What is a presettable counter & ripple counter?
Normally the count starts from zero in a counter. A presettable counter is used to start the count from
any number other than zero. A ripple counter is an asynchronous counter, in which the output of the flip-
flops change state like a ripple in water and hence the name ripple counter.
15. Mention the applications of counter?
They are used for counting the number of occurrences of an event and are useful for generating timing
.in
sequences to control operations in a digital systems.They are used as frequency dividers in digital time
pieces, such as, electronic digital clocks, Automobile digital clock and wrist watches, frequency counters,
ng
and oscilloscope and television receivers.
16. What is a modulo counter, ring and Johnson counter?
eri
Modulo „n‟ counter have „n‟ different states that counts from 0 to n-1 by making small changes in a
counter circuit.A ring counter is a circular shift register with only one flipflop being set at any particular
time, all others are cleared. A Johnson /switched tail ring counter is a circular shift register with the
e
complement output of the last flip-flop connected to the input of the first flip-flop.
gin
17. What is a BCD counter?
A BCD counter counts in binary coded decimal from 0000 to 1001 and back to 0000.It is also a decade
En
register, since each flip-flop is a binary cell capable of storing one bit of information.A register capable of
shifting the binary information either to the right or in the left is called a shift register.
19. What are the types of shift registers?
Le
counter.
21. What is sequence generator?
A circuit which generates a prescribed sequence of bits in synchronism with a clock is referred to as a
sequence generator.
22. What is a state table, state diagram& state equation?
The table which lists the time sequence of inputs, outputs and flip-flop states. A state diagram is a
graphical representation of the information available in a state table. In the diagram, a state is denoted
by a circle and the transitions between the states are indicated by directing lines connecting the circles.A
state equation (transition equation) specifies the condition for a flip-flop state transition. It denotes the
next state as a function of the present state and inputs.
23. Explain mealy model and Moore model.
Moore Model:
Its output is a function of present state only.
Input changes does not affect the output
It requires more number of states for implementing same function.
Mealy model:
.in
Its output is a function of present state as well as present input
Input changes may affect the output of the circuit
ng
It requires less number of states for implementing same function.
24. What is the need for debounce circuit?
eri
It is the one that removes the series of pulses that result from a contact bounce and produces a single
smooth transition of the binary signal from 0 to 1 or from 1 to 0.
25. What are the classifications of sequential circuits?
e
The sequential circuits are classified on the basis of timing of their signals into two types.
gin
They are,
1) Synchronous sequential circuit.
En
1. RS flip-flop
2. SR flip-flop
w.
3. D flip-flop
4. JK flip-flop
ww
5. T flip-flop
28. What is the operation of D flip-flop?
In D flip-flop during the occurrence of clock pulse if D=1, the output Q is set and if D=0, the
output is reset.
29. What is the operation of JK flip-flop?
• When K input is low and J input is high the Q output of flip-flop is set.
• When K input is high and J input is low the Q output of flip-flop is reset.
• When both the inputs K and J are low the output does not change
• When both the inputs K and J are high it is possible to set or reset the flip-flop (ie) the output toggle on
the next positive clock edge.
30. What is the operation of T flip-flop?
T flip-flop is also known as Toggle flip-flop.
• When T=0 there is no change in the output.
• When T=1 the output switch to the complement state (ie) the output toggles.
31. Define race around condition.
In JK flip-flop output is fed back to the input. Therefore change in the output results change in
.in
the input. Due to this in the positive half of the clock pulse if both J and K are high then output toggles
continuously. This condition is called „race around condition‟.
ng
32. What is edge-triggered flip-flop?
The problem of race around condition can solved by edge triggering flip flop. The term
eri
edge triggering means that the flip-flop changes state either at the positive edge or negative
edge of the clock pulse and it is sensitive to its inputs only at this transition of the clock.
33. What is a master-slave flip-flop?
e
A master-slave flip-flop consists of two flip-flops where one circuit serves as a master and the
gin
other as a slave.
En
arn
Le
w.
ww
.in
3. What is meant by state reduction?
The reduction of number of flip flops in a sequential circuit is referred as state reduction problem. The
ng
state reduction algorithms are concerned with procedures for reducing the number of states in a state
table while keeping the external input – output requirements unchanged.
eri
4. Mention the application areas of asynchronous sequential circuits.
i. Used where speed is important,(i.e.) where the digital system must respond quickly without the need to
wait for clock pulse.
e
ii. Require only few components (i.e) no need for additional clock pulses.
gin
iii. Used where the input change at any time independent of clock.
iv. Communication between two units where each has own independent clock.
En
The present state and the next state variables in asynchronous sequential circuits are called Secondary /
excitation variables.
7. What do you mean by race in asynchronous sequential circuits?
Le
When two or more binary state variables change their value in response to a change in an input variable,
race condition occurs in an asynchronous sequential circuit. In case of unequal delays, a race condition
w.
If the final stable state depends on the order in which the state variables changes, the race condition is
harmful and it is called a critical race. This should be avoided.
9. Define non-critical race
If the final stable state that the circuit reaches does not depend on the order in which the state variables
changes , the race condition is not harmful and it is called a noncritical race.
10. Define Hazard & Name the types of hazards
Hazard is unwanted switching transients that may appear at the output of a circuit because different
paths exhibit different propagation delays. Static hazard, Dynamic hazard, Essential hazard.
.in
13. Define Essential hazard.
An essential hazard is caused by unequal delays along two or more paths that originate from the same
ng
input. Such hazards can be eliminated by adjusting the amount of delays in the affected path.
14. What is a flow table & primitive flow table?
eri
During the design of asynchronous sequential circuits, it is more convenient to name the states by letter
symbols without making specific reference to their binary values. Such a table is called a flow table.
Primitive flow is the flow table that has only one stable state in each row.
15. What is static 0 and 1 hazard? e
gin
Static 1 hazard – if the outputs before and after the change of input are both 1 with an incorrect output 0
in between.
En
Static 0 hazard - if the outputs before and after the change of input are both 0 with an incorrect output 1
in between.
16. Mention the algorithm for state reduction.
arn
Two states are said to be equivalent if, for each member of the set of inputs, they give exactly the same
output and send the circuit to an equivalent state. When two states are equivalent, one of them can be
removed without altering the input – output relationships.
Le
17. How will you avoid the race conditions in asynchronous sequential circuits?
Races may be avoided by proper binary assignment to state variables. The state variables must be
w.
assigned binary numbers in such a way that only one state variable can change at any one time when a
state transition occurs in the flow table.
ww
.in
22. What is maximal compatibles?
The maximal compatible is a group of compatibles that contains all the possible combinations of
ng
compatible states.
23. What is the use of merger diagram?
eri
The maximal compatibles can be obtained from a merger diagram which is a graph in which each state is
represented by a dot placed along the circumference of a circle.Lines are drawn between any two
corresponding dots that form a compatible pair.All possible compatibles can be obtained from the merger
e
diagram by observing the geometrical patterns in which states are connected to each other.
gin
24. How will you remove the hazards in combinational logic circuits?
It can be removed by covering any two minterms that may produce a hazard with a product term
En
common to both. The removal of hazards requires the addition of redundant gates to the circuit.
25. Compare Synchronous counters and Asynchronous counters.
S.no Asynsynchronous counters Synchronous counters
arn
1. Flipflops are connected in such a way that There is no connection between the output of
the output of first flipflop drives the clock first flipflop and clock input of the next flipflop.
for the next flipflop
Le
2. All the flipflops are not clocked All the flipflops are clocked simultaneously.
simultaneously.
w.
3. Logic circuit is simple even for more Design involves complex logic circuit as
number of states. number of states increases.
ww
4. Main drawback of these counters is their As clock is simultaneously given to all flipflops
low speed as the clock is propagated there is no problem of propagation delay.
through number of flipflops before it Hence they are preferred when number of
reaches last flipflop. flipflops increase in the given design.
26. List basic types of programmable logic devices.
1. . Read only memory
2. . Programmable logic Array
.in
that comes out of the output lines is called a word.
29. State the types of ROM
ng
1. Masked ROM.
2. Programmable Read only Memory
eri
3. Erasable Programmable Read only memory.
4. Electrically Erasable Programmable Read only Memory.
30. What is programmable logic array? How it differs from ROM?
e
In some cases the number of don‟t care conditions is excessive, it is more economical to use a
gin
second type of LSI component called a PLA. A PLA is similar to a ROM in concept; however it does not
provide full decoding of the variables and does not generates all the min-terms as in the ROM.
En
NOR gate
33. Explain PROM.
PROM (Programmable Read Only Memory)
Le
It allows user to store data or program. PROMs use the fuses with material like nichrome and
polycrystalline. The user can blow these fuses by passing around 20 to 50mA of current for the period 5
w.
to 20µs.The blowing of fuses is called programming of ROM. The PROMs are one time programmable.
Once programmed, the information is stored permanent.
ww
EEPROM also use MOS circuitry. Data is stored as charge or no charge on an insulated layer or
an insulated floating gate in the device. EEPROM allows selective erasing at the register level
rather than erasing all the information since the information can be changed by using electrical
signals.
36. What is RAM?
Random Access Memory. Read and write operations can be carried out.
37. What is programmable logic array? How it differs from ROM?
In some cases the number of don‟t care conditions is excessive, it is more economical to use a
.in
second type of LSI component called a PLA. A PLA is similar to a ROM in concept; however it does not
provide full decoding of the variables and does not generates all the min-terms as in the ROM.
ng
38. What is mask - programmable?
With a mask programmable PLA, the user must submit a PLA program table to the manufacturer.
eri
39. What is field programmable logic array?
The second type of PLA is called a field programmable logic array. The user by means of
certain recommended procedures can program the EPLA.
40. List the major differences between PLA and PAL e
gin
PLA: Both AND and OR arrays are programmable and Complex, Costlier than PAL
PAL : AND arrays are programmable OR arrays are fixed, Cheaper and Simpler
En
PLA is Programmable Logic Array (PLA). The PLA is a PLD that consists of a programmable AND
array and a programmable OR array.
45. Define PAL
PAL is Programmable Array Logic. PAL consists of a programmable AND array and a fixed OR
array with output logic.
.in
PAL - Programmable Logic Array
10 - Ten inputs
ng
L - Active LOW Output
8 - Eight Outputs
e eri
gin
En
arn
Le
w.
ww
UNIT –V VHDL
1. What are the languages that are combined together to get VHDL language ?
Sequential language, Concurrent language, Net- list language, Timing specification, Waveform generation
language.
2. State the features of VHDL.
i. VHDL has powerful constructs.
ii. In VHDL, designs may be decomposed hierarchically
iii. Each design element has a well- defined interface useful for connecting it to other elements
.in
iv. VHDL handles asynchronous as well as synchronous sequential circuits
v. VHDL supports design library
ng
3. What is VHDL?
Vey high speed integrated circuit hardware description language. It was initiated from American DOD. It
eri
is a language for describing a hardware, which has to be readable for machines and humans at the same
time & it structured and comprehensible code, so that the source code can serve as a kind of
specification document.
4. What are sequential and concurrent statements? e
gin
Sequential statements are executed one after other , like in software programming languages.
Subsequent programs can override the effect of previous statements this way. The order of assignment
En
5. Define abstraction.
It is defined as the hiding of information that is too detailed. It is therefore necessary to differentiate
between the essential and non- essential information . information that is not important for the current
Le
view of the problem will be left out from the description. The levels of this are characterized by the kind
of information that is common to all models of this level.
w.
VHDL is applicable in upper three levels. The transition from one level to another is by software.
7. Define stimuli & validation bench.
Bus systems or complex algorithms are described without considering synthesizability. The stimuli fro
simulation if RTL models are described in the behavior level.
Stimuli are signals of the input ports of the model and are described in the test-benches sometimes called
validation bench
.in
modules.
11. What are the VHDL structural elements?
ng
The main units in VHDL are
Entity , Architecture , Configuration, Process , Package , Library
eri
12. What is entity?
The interface between a module and its environment is described within the entity declaration which is
initiated by the keyword entity.
13. Define process. e
gin
A process statement starts with an optional label and „:‟ symbol, followed by the process keyboard. The
sensitivity list is also optional and is enclosed in a „(„ „ )‟ pair.
En
LIBRARY IEEE;
USE IEEE.std_logic_1164.all;
w.
ENTITY DFF IS
PORT (D,clock : IN STD_LOGIC; Q : OUT STD_LOGIC);
ww
END DFF;
ARCHITECTURE Behaviour OF DFF IS
BEGIN
PROCESS
BEGIN
WAIT UNTIL Clock „ EVENT‟ AND clock = „1‟;
Q<= D;
END PROCESS;
END Behavior;
17. Write the VHDL code to realize a 2 x 1 multiplexer.
.in
ng
e eri
gin
18. List out the operators present in VHDL.
En
Adding_operator +|-|&
arn
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity and_or_top is
end and_or_top;
.in
begin
ng
OA <= INA1 and INA2; -- 2 input AND gate
end Behavioral;
eri
20. Give the syntax for package declaration and package body in VHDL.
Example:
package ee530 is
constant maxint: integer := 16#ffff#;
Le
end ee530;
21. State the advantages of package declaration over component declaration in VHDL
A component declaration declares a virtual design entity interface that may be used in
component instantiation statement. A component declaration does not define which entity/architecture
pair is bound to each instance.
Packages are the only language mechanism to share objects among different design units.
Usually, they are designed to provide standard solutions for specific problems, e.g. data types and
corresponding subprograms like type conversion functions for different data types, procedures and
functions for signal processing purposes, etc.
.in
Prepared by Approved by
ng
eri
Mr.P.MARISH KUMAR HOD/EEE
e
gin
En
arn
Le
w.
ww