DSD FAQ All 6 units
DSD FAQ All 6 units
Unit 1
1
2
3
6 Convert the following numbers from decimal to hexadecimal and then to binary
7 Convert the following binary numbers to hexadecimal and then to decimal
Unit 2
1 Minimize the following logical expression by Boolean Algebra
i) ABC + ABC’ + AB’C + A’BC = AB + AC + BC
7
8
9 Minimize the boolean function F(A, B, C, D) = Σm(0, 1, 2, 3, 5, 7, 8, 9, 11, 14) using K map
and implement using NAND gate only.
10
Minimize the boolean function F(A, B, C, D) = πM( 2, 6, 8, 9, 10,11,14) using K map and
implement using NOR gate only.
Unit 3
1
2
3 Design 32:1 Mux using 16:1 Mux
4
5 Design 5 line to 32 line decoder using 4 line to 16 line decoder
6 Design 8 line to 256 line decoder using 4 line to 16 line decoder
Here, 3 to 8 decoder generates eight min terms. The two programmable OR gates have the access of all
these min terms. But, only the required min terms are programmed in order to produce the respective
Boolean functions by each OR gate. The symbol ‘X’ is used for programmable connections.
8 implement the following Boolean functions using PAL.
A =XY+XZ′
B =XY′+YZ′
The given two functions are in sum of products form. There are two product terms present in each
Boolean function. So, we require four programmable AND gates & two fixed OR gates for producing those
two functions. The corresponding PAL is shown in the following figur
The programmable AND gates have the access of both normal and complemented inputs of variables. In
the figure, the inputs X, X′, Y, Y′, Z &′ Z′, are available at the inputs of each AND gate. So, program only the
required literals in order to generate one product term by each AND gate.
All these product terms are available at the inputs of each programmable OR gate. But, only program the
required product terms in order to produce the respective Boolean functions by each OR gate. The
symbol ‘X’ is used for programmable connections.
10 Design half and full adder circuit using logic gates
11 Design half and full subtractor circuit using logic gates
12 Design BCD to Excess-3 code converter circuit using basic gates.
The information stored within these registers can be transferred with the help of shift
registers. Shift Register is a group of flip flops used to store multiple bits of data. The bits
stored in such registers can be made to move within the registers and in/out of the registers by
applying clock pulses. An n-bit shift register can be formed by connecting n flip-flops where
each flip flop stores a single bit of data.
The registers which will shift the bits to left are called “Shift left registers”.
The registers which will shift the bits to right are called “Shift right registers”.
Shift registers are basically of 4 types. These are:
1. Serial In Serial Out shift register
2. Serial In parallel Out shift register
3. Parallel In Serial Out shift register
4. Parallel In parallel Out shift register
The shift register, which allows serial input (one bit after the other through a single data line)
and produces a serial output is known as Serial-In Serial-Out shift register. Since there is only
one output, the data leaves the shift register one bit at a time in a serial pattern, thus the name
Serial-In Serial-Out Shift Register.
The logic circuit given below shows a serial-in serial-out shift register. The circuit consists of
four D flip-flops which are connected in a serial manner. All these flip-flops are synchronous
with each other since the same clock signal is applied to each flip flop.
The above circuit is an example of shift right register, taking the serial data input from the left
side of the flip flop. The main use of a SISO is to act as a delay element.
Serial-In Parallel-Out shift Register (SIPO) –
The shift register, which allows serial input (one bit after the other through a single data line)
and produces a parallel output is known as Serial-In Parallel-Out shift register.
The logic circuit given below shows a serial-in-parallel-out shift register. The circuit consists
of four D flip-flops which are connected. The clear (CLR) signal is connected in addition to the
clock signal to all the 4 flip flops in order to RESET them. The output of the first flip flop is
connected to the input of the next flip flop and so on. All these flip-flops are synchronous with
each other since the same clock signal is applied to each flip flop.
The above circuit is an example of shift right register, taking the serial data input from the left
side of the flip flop and producing a parallel output. They are used in communication lines
where demultiplexing of a data line into several parallel lines is required because the main use
of the SIPO register is to convert serial data into parallel data.
The shift register, which allows parallel input (data is given separately to each flip flop and in a
simultaneous manner) and produces a serial output is known as Parallel-In Serial-Out shift
register.
The logic circuit given below shows a parallel-in-serial-out shift register. The circuit consists
of four D flip-flops which are connected. The clock input is directly connected to all the flip
flops but the input data is connected individually to each flip flop through a multiplexer at the
input of every flip flop. The output of the previous flip flop and parallel data input are
connected to the input of the MUX and the output of MUX is connected to the next flip flop.
All these flip-flops are synchronous with each other since the same clock signal is applied to
each flip flop.
A Parallel in Serial out (PISO) shift register us used to convert parallel data to serial data.
The shift register, which allows parallel input (data is given separately to each flip flop and in a
simultaneous manner) and also produces a parallel output is known as Parallel-In parallel-Out
shift register.
The logic circuit given below shows a parallel-in-parallel-out shift register. The circuit consists
of four D flip-flops which are connected. The clear (CLR) signal and clock signals are
connected to all the 4 flip flops. In this type of register, there are no interconnections between
the individual flip-flops since no serial shifting of the data is required. Data is given as input
separately for each flip flop and in the same way, output also collected individually from each
flip flop.
A Parallel in Parallel out (PIPO) shift register is used as a temporary storage device and like
SISO Shift register it acts as a delay element.
Bidirectional Shift Register –
If we shift a binary number to the left by one position, it is equivalent to multiplying the
number by 2 and if we shift a binary number to the right by one position, it is equivalent to
dividing the number by 2.To perform these operations we need a register which can shift the
data in either direction.
Bidirectional shift registers are the registers which are capable of shifting the data either right
or left depending on the mode selected. If the mode selected is 1(high), the data will be shifted
towards the right direction and if the mode selected is 0(low), the data will be shifted towards
the left direction.
The logic circuit given below shows a Bidirectional shift register. The circuit consists of four
D flip-flops which are connected. The input data is connected at two ends of the circuit and
depending on the mode selected only one and gate is in the active state.
2. Draw and explain Universal shift register
A Universal shift register is a register which has both the right shift and left shift with parallel
load capabilities. Universal shift registers are used as memory elements in computers. A
Unidirectional shift register is capable of shifting in only one direction. A bidirectional shift
register is capable of shifting in both the directions. The Universal shift register is a
combination design of bidirectional shift register and a unidirectional shift register with
parallel load provision.
n-bit universal shift register –
A n-bit universal shift register consists of n flip-flops and n 4×1 multiplexers. All the n
multiplexers share the same select lines(S1 and S0)to select the mode in which the shift
register operates. The select inputs select the suitable input for the flip-flops.
Ring Counter –
A ring counter is basically a shift register counter in which the output of the first flip flop is
connected to the next flip flop and so on and the output of the last flip flop is again fed
back to the input of the first flip flop, thus the name ring counter. The data pattern within
the shift register will circulate as long as clock pulses are applied.
The logic circuit given below shows a Ring Counter. The circuit consists of four D flip-
flops which are connected. Since the circuit consists of four flip flops the data pattern will
repeat after every four clock pulses as shown in the truth table below:
The following table highlights the major differences between Synchronous and
Asynchronous Counters.
A decade counter is called as mod -10 or divide by 10 counter. It counts from 0 to 9 and again
reset to 0. It counts in natural binary sequence. Here 4 T Flip flops are used. It resets after
Q3 Q2 Q1 Q0 = 1001.
Step 4 : Create Karnaugh map for each FF input in terms of flip-flop outputs as the input
variable –
Simplify the K map –
K map for finding minimal expressions.
SR
JK Flip Flop to SR Flip Flop
This will be the reverse process of the above explained conversion. S and R will be
the external inputs to J and K. As shown in the logic diagram below, J and K will be
the outputs of the combinational circuit. Thus, the values of J and K have to be
obtained in terms of S, R and Qp. The logic diagram is shown below.
A conversion table is to be written using S, R, Qp, Qp+1, J and K. For two inputs, S
and R, eight combinations are made. For each combination, the corresponding
Qp+1 outputs are found ut. The outputs for the combinations of S=1 and R=1 are
not permitted for an SR flip flop. Thus the outputs are considered invalid and the J
and K values are taken as “don’t cares”.
SR Flip Flop to D Flip Flop
As shown in the figure, S and R are the actual inputs of the flip flop and D is the
external input of the flip flop. The four combinations, the logic diagram, conversion
table, and the K-map for S and R in terms of D and Qp are shown below.
The conversion table, the K-map for D in terms of J, K and Qp and the logic diagram
showing the conversion from D to JK are given in the figure below.
Unit 5
1. Explain the characteristics of the digital logic family
Propagation delay
It is the time interval between the application of the input pulse and the occurrence of the output.
It is an important characteristic of the digital logic family. If the propagation delay is less, then
the speed at which the IC operates will be faster.
Let THL is the propagation delay when the output changes from logic 0 to 1 and TLH is the delay
when the output changes from logic 1 to 0. The maximum value of THL and TLH is considered as
the propagation delay for that logic gate.
Fan-out refers to the number of inputs that is driven by the output of another logic gates. For
example, the following circuit has an EX-OR gate, which drives 4 NOT gates. So fan-out of EX-
OR gate is 4.
Both fan-in and fan-out values are given by the manufacturer at the time of designing and the data
is specified in the datasheet. When the number of inputs or outputs are changed, it may cause some
malfunction to the device.
Power dissipation
It is the amount of power that the digital circuit dissipates. The power dissipated is determined by
the average current, that is drawn from the supply voltage.
The average current is the average value of the current at LOW gate output(logic ‘o’) and the
current at HIGH gate output (logic ‘1’).
The noise immunity is the ability of the logic device to tolerate the noise without causing spurious
change to the output voltage. Noise margin allows the logic device to function properly within the
specified limits.
Figure of merit
The figure of merit or Speed Power Product is a common means of measuring the performance of
circuits in the digital logic family.
2. What is tri state logic. Explain trisatate TTL inverter
3. Draw and explain CMOS as an Inverter
The term “CMOS” stands for “complementary-symmetry metal–oxide–semiconductor. CMOS is
a type of MOSFET, where its fabrication process uses complementary & symmetrical P-type &
N-type MOSFET pairs for logic functions.
A basic inverter circuit is used to accomplish a logic variable by complementing from A to A’.
So, a CMOS inverter is a very simple circuit, designed with two opposite-polarity MOSFETs
within a complementary way.
4. What are the differences between SRAM and DRAM? Explain in details.
SRAM DRAM
Transistors are used to store information in Capacitors are used to store data in
SRAM. DRAM.
These are used in cache memories. These are used in main memories.
The main difference between PROM EPROM and EEPROM is that PROM is
programmable only once while EPROM is reprogrammable using ultraviolet light and
EPROM is reprogrammable using an electric charge.
PROM stands for Programmable Read Only Memory. It is a computer memory chip, and it
is possible to program it once after creation. After programming the PROM, the information
we write to it becomes permanent. Therefore, we cannot erase or delete that written data. The
PROM chip was commonly used in earlier computers’ BIOS systems. After creating PROM,
all the bits are ‘1’. If a certain bit should be 0, we can make that 0 by burning. One major
drawback of PROM is that it is not possible to update it. In other words, we cannot reprogram
it. Instead, we have to discard that and replace it with a new chip.
EPROM stands for Erasable Programmable Read Only Memory. We can erase and
reprogram an EPROM without replacing it. It is possible to erase and write to it by exposing
the memory chip to ultraviolet light. Moreover, it is easier to recognize EPROM via
transparent fused quartz window in the top of the package.
EPROM is used more commonly than PROM because it allows the manufacturers to modify or
reprogram the chip.
EEPROM stands for Electrically Erasable Programmable Read-Only Memory. It is a
memory chip that we can erase and reprogram using electrical charge. It consists of a
collection of floating gate transistors. The flash memory is a type of EEPROM which has a
higher density and lower number of write cycles.
PROM is a Read Only Memory (ROM) that can be modified only once by a user while
EPROM is a programmable ROM that can be erased and reused. EEPROM, on the other hand,
is a user-modifiable ROM that can be erased and reprogrammed repeatedly through a normal
electrical voltage. Thus, this is the main difference between PROM EPROM and EEPROM.
Disadvanteges
[1] Highest power dissipation
[2] additional reference voltage source. so it is used in Superfast computing.
Unit 6
State diagram
The state diagram is the pictorial representation of the behavior of sequential circuits. It
clearly shows the transition of states from the present state to the next state and output for a
corresponding input.
For Moore circuit, the directed lines are labeled with only one binary number. It is
nothing but the input value which causes the transition.
The output value is indicated inside the circle below the present state. It is because, in
Moore model, the output depends on the present state but not on the input.
State table
The information contained in the state diagram is transformed into a table called a state
table or state synthesis table. Although the state diagram describes the behavior of the sequential
circuit, in order to implement it in the circuit, it has to be transformed into the tabular form.
The below table shows the state table for Mealy state machine model. As you can see, it has the
present state, next state and output. The present state is the state before the occurrence of the clock
pulse.
After the application of the clock pulse, depending on the input(X = 0 or 1), the state changes. It
is indicated in the ‘next state’ column. The output produced for each input is represented in the
last column.
State reduction
While designing a sequential circuit, it is very important to remove the redundant states. The
removal of redundant states will reduce the number of flip flops and logic gates, thereby reducing
the cost and size of the sequential circuit.
The two states are said to be redundant if the output and the next state produced for each and every
input are the same. In that case, one of the redundant states can be removed without altering the
input-output relationship. This method is called the state elimination method
Example Problem #1
Determine the reduced state table for the given state table.
The given table contains the present state, next state and output produced for inputs X = 0 and 1.
To find the reduced state table, the first step is to find the redundant/equivalent states from the
given state table.
As explained above, any two states are said to be equivalent, if their next state and output are the
same. In order to check that, compare each present state with the other.
First, consider the present state ‘a’, compare its next state and output with the other present states
one by one. In this comparison, none of the present states is the same as the present state ‘a’.
Now, consider the next present state ‘b’ and compare it with other present states. While doing so,
you can find the next state and the output of the present state ‘e’ is the same as that of ‘b’. They
are marked as equivalent states as shown below.
Similarly, consider the other present states and compare them with other states for redundancy.
The next step is to replace the redundant states with the equivalent state. Here we have found,
states b and e are redundant. Replace e by b and remove the state e.
Example Problem #2
Determine the reduced state diagram for the given state diagram.
To construct the reduced state diagram, first, build the state table for the given state diagram, find
the equivalent states, remove the redundant state, draw the reduced state table and finally construct
the state diagram.
First, the information in the state diagram is transferred into the state table as shown below.
Thus ‘a’ and ‘d’ are found as equivalent states. So, replace ‘d’ by ‘a’ and remove ‘d’. Now, the
reduced state table will become as below.
The state diagram is constructed for the reduced state table as shown below.