Laboratory Work Report Question 1a 1.0
Laboratory Work Report Question 1a 1.0
Question 1a
1.0. INTRODUCTION
The combinational Logic circuit is the circuit which its output depends only on the input of the
circuit. Any change of the input means change in the output.
2.0 DESIGN THEORY
Since the circuit is combinational, the truth table can be used to realize its circuit and a K-map is
used to minimize each output of the circuit. From the given information, the J input is the control
signal of which when it is TRUE i.e. equals 1 and the input is converted to its equivalent code II
as indicated on the lab question. When the control signal J is FALSE i.e. equals 0 then inputs are
converted to its equivalent code III.
The truth table consists of five inputs J, A, B, C and D with four outputs W, X, Y and Z.
INPUT OUTPUT
J A B C D W X Y Z
MINTERM
0 0 0 0 0 0 d d d d
1 0 0 0 0 1 0 0 1 1
2 0 0 0 1 0 0 1 0 0
3 0 0 0 1 1 d d d d
4 0 0 1 0 0 0 1 0 1
5 0 0 1 0 1 d d d d
6 0 0 1 1 0 d d d d
7 0 0 1 1 1 d d d d
8 0 1 0 0 0 0 1 1 0
9 0 1 0 0 1 0 1 1 1
10 0 1 0 1 0 1 0 0 0
11 0 1 0 1 1 d d d d
12 0 1 1 0 0 1 0 0 1
13 0 1 1 0 1 1 0 1 0
14 0 1 1 1 0 1 0 1 1
15 0 1 1 1 1 1 1 0 0
16 1 0 0 0 0 d d d d
17 1 0 0 0 1 0 0 0 0
18 1 0 0 1 0 0 0 0 1
1
19 1 0 0 1 1 d d d d
20 1 0 1 0 0 0 0 1 0
21 1 0 1 0 1 d d d d
22 1 0 1 1 0 d d d d
23 1 0 1 1 1 d d d d
24 1 1 0 0 0 0 0 1 1
25 1 1 0 0 1 0 1 0 0
26 1 1 0 1 0 0 1 0 1
27 1 1 0 1 1 d d d d
28 1 1 1 0 0 0 1 1 0
29 1 1 1 0 1 0 1 1 1
30 1 1 1 1 0 1 0 0 0
31 1 1 1 1 1 1 0 0 1
BCD BCD
JA JA
00 d 0 d 0 00 0 d d d
01 1 1 1 1
0 0 d 1
01 11 0 0 1 1
11 0 0 d 0
10 0 d d d
10 d 0 d 0
2
From the K- Map:
SOP expression can be obtained by considering all 1s and don’t cares, and the following
simplified expression was obtained.
W = J’AB + BC + J’AC
The total number of gates is five.
POS expression can be obtained by considering all Os and the don’t cares, and the following
simplified expression was obtained.
W = A (J’+A’+C) (A’+B+C) (J’+D+B’)
3
SOP gives the following value:
Collecting all 1s and don’t cares the following simplified expression.
X = J’A’D’ +AB’D + J’CD+JAB’C’+JABC’+JAB’CD’
The total number of gates is twelve.
POS
Collecting all the Os and the don’t cares to obtain a simplified expression
X = (A+D’) (J+A’+B’+C) (J+A’+D+C’) (J’+A) (J’+B+D+C) (J’+A’+B’+C’)
The total number of gates is twelve.
4
Y= (C’+D’) (J + B’+C + D) (J’+C’) (J’+B+C+D’) (B+C’)
The total number of gates is ten.
SOP
Z = JB’CD’ + JBD + JAB’D’+J’B’D + J’BD’
The total number of eight gates are going to be used to implement the
POS
Collecting all the Os and the don’t cares to obtain a simplified expression
Z= (J + B’ + D’) (J+A’ + B+ D) (J+B + C’+ D) (J’ + B + D’) (J’ + B’ + D)
A total number of eleven gates are going to be used.
5
KPD1
A
43 21
V1
0V A B C D
W W
output
X
X
4 321
Y Y
Z Z
6
3.2. Waveform
After simulating the following waveforms were thus obtained as shown below.
4.0 CONCLUSION
From the analysis above it can be observed that using different format representation (POS and
SOP) can result into reducing the number of gates used on the chip and input to the chip as well
and therefore minimizing cost and delay due to the large number of gates in the circuit.
Question 1b
7
1.0. INTRODUCTION
Encoder is the digital function that produces a reserve operation from that of a decoder.
An encoder has 2n inputs and n output lines. The output lines generate the binary code for 2n
input variables. The encoder assumes that only a single input is 1 at a time. The encoder is the
combinational circuit since the output depends directly from the input and the truth table is used
to realize the circuit of it.
INPUTS OUTPUTS
A7 A6 A5 A4 A3 A2 A1 A0 B2 B1 B0
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
After the truth table, the following results obtained after simplification using the SOP format
where the output is the function of the inputs.
B2 = A3 + A2 + A1 + A0
B1 = A5 + A4 + A1 + A0
B0 = A6 + A4 + A2 + A0
8
3.0 CIRCUIT AND SIMULATION
The circuit below was thus drawn from the simplified equations above using the circuit maker
software. The data sequence generates the inputs to the circuit. This data sequence is triggered by
the clock as shown on the circuit.
B0
U1A DISP1
DS1
Data 8
Seq 7 4321
6 U1B B1
5
V1 4
3
CP1 Q1 CP1 2
CP2 Q2 CP2 1
U2A B2
3.2. Waveform
After simulating the above circuit, the following were the waveform developed.
4.0 CONCLUSION
As spotted above, there are 8 inputs therefore 256 input combinations were expected.
However the situation is not the case since out of all these 256 only 8 inputs has any meaning
and thus they are only considered while remaining are treated as don’t care condition.
Encoders of this type however are not available in IC packages, since they can be easily
constructed with the OR gates. The encoder available in IC form is called the priority encoder.
9
Question 1c. Design of an 8X1 multiplexer
1.0 INTRODUCTION
A digital multiplexer is the combinational logical circuit that selects binary information from one
of many input lines and directs it to a single output line. The selection of an input line is done by
a set of selection lines also known as control lines. There are normally 2n input lines and n select
lines (of which its combination determines which input to output i.e. selected).
10
2.1. Truth table
The following bellow is the truth table realizing the multiplexer with eight inputs lines and a
single output line. A, B, and C are the selector.
INPUT OUTPU
T
A B C F
0 0 0 I1
0 0 1 I2
0 1 0 I3
0 1 1 I4
1 0 0 I5
1 0 1 I6
1 1 0 I7
1 1 1 I8
11
DS2
V1
Data 8
CP1 Q1 Seq 7
CP2 Q2 6
5
4
3
CP1 2
CP2 1
DS1
Data 8 U7C U7B U7A
Seq 7
6
5 U1A
4
3
CP1 2
CP2 1
U1B
U2B F 4321
U6A
U3A
U3B
U5B
U4A
U4B
4.0. CONCLUSION
12
From the waveform there are glitches (the point where the wave goes high and back to low
immediately) observed which are resulted from the internal delays of the gates, longer circuit
wire and other related contributed factors. Multiplexer found itself very useful MSI function and
has a multitude of applications. It is used for connecting two or more sources to a single
destination among computer units and useful in constructing a common bus system.
Question 1d.
1. INTRODUCTION
A decoder is a combinational logic device which converts binary information from n input lines
to a maximum of 2n unique output lines. It is a combinational device since the output depends
direct from the input i.e. any change done on the input will also affect the output.If the n-1
decoded information has unused or don’t care combinations, the decoder output will have less
than 2n outputs.
2. DESIGN THEORY
During designing of 5X32 decoder i.e. 5 input lines with 32 output lines, four 3X8 decoders are
therefore used making a total of 32 outputs with three inputs shared among the all four decoders.
13
The remaining two input lines will be used to generate 4 output lines on which each of these four
lines will be used as an enable signal to the four decoders (3X8).
Therefore for designing simplicity, two circuits are developed one for 3X8 decoder and the
remaining one for 3X8 decoder. And the overall 5X32 decoder resulted by integrating the four
3X8 decoder and one 2X4 decoder in a block diagram.
The decoder receives three lines and produces eight lines on which among them is selected as an
output. On this decoder an enable signal is then also associated.
The truth table below assumes the following: A is the MSB and C the LSB of the inputs while D7
is the MSB and D0 is the LSB of the outputs
A B C D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
Minimization and simplifications
D5 = A’BC’ D2 = AB’C
14
iv. 2X4 decoder
The decoder receives two lines and produces four lines on which among them is selected as an
output. On this decoder signal an enable signal is not associated.
15
U2B U2A
U1A
U1B
U1C
U1D
4. Circuit diagram
From the given two design a 5 by 32 decoder can be designed using four 3 by 8 decoders and 0ne
2 by 4 decoder as described above. The designed diagram in block diagram is as shown below
showing all the 32 outputs and the 5 inputs.
16
DataGen
Data 8
Seq 7
6
5
4
3
CP1 2
CP2 1
U1B
D30
Decoder
4555
1/2
A1 Q3 U2A
A0 Q2 D29
Q1
E Q0
U2B
D28
U3A
D27
U3B
D26
U4A
D25
U4B
D24
U14A
D23
U14B
D22
U15A
D21
U15B
D20
U16A
D19
U16B
D18
U17A
D17
U17B
D16
U22A 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1
D15
U22B
D14
U23A
D13
U23B
D12
U24A
D11
U24B
D10
U25A
D9
U25B
D8
U21B
D7
U21A
D6
U20B
D5
U20A
D4
U19B
D3
U19A
D2
U18B
D1
U18A
D0
17
Waveforms after the simulation of above circuit
Question 2a
18
1. INTRODUCTION
A memory cell is a storage device with the capability of storing a single bit data at a time. This
memory cell can either be a single core memory or flip flop of different types such as JK, SR, D
and T flip flop.
2. DESIGN THEORY
As the memory cell is concern, it can be active or in active. The decision of whether the cell is
active or not active is done through the use of selector signal. However when the cell is active
then it can either be performing writing or reading. The reading and writing operation is mainly
done by the Read/write signal to the system where 1 for the read and 0 for the write.
The circuit behaves purely combinational when during reading the data and sequential when
during writing.
i. During reading
Truth table
R/W Sel Output data
0 0 inactive
0 1 Don’t care
1 0 inactive
1 1 Dout
Output = R/WSelDout
U1A
19
During writing, the select (S) need to be high making the cell active in order to accept the written
data. Apart from that, the write signal also needs to be active to signify writing.
Assume the cell has two state that is state 0 (the previous written data was zero) and state 1 (the
previous written data is 0ne)
a) State diagram
A B
b) State table
A A B
B A B
From the table above, let A=0 and B=1 and therefore the following is the state assignment table.
0 0 0
0 1 1
1 0 0
1 1 1
20
d) The excitation state and truth table using SR flip flop
0 0 0 0 d
0 1 1 1 0
1 0 0 0 1
1 1 1 d 0
Minimization
However, for the data to be written as explained above, then the select signal need to be high and
the R/W signal need to be zero. Therefore, the data input is going to be ended with these to
signals and thus the S and R are thus going to be as follows
21
Sel
5V
Din
CLK
CP1 Q1
CP2 Q2 S Q Dout
S0 _
R Q
RW
5V
Question 2b
1. INTRODUCTION
22
Memory cells can be configured in different configurations containing cells of any number such
as a configuration of 4x3 where four rows of three memory cells. And each memory cell is a one
bit memory cell.
2. DESIGN THEORY
A 4x3 RAM consist of 12 memory cells in total of which each three memory cells are arranged
on a single row. The design is based on a single memory cell. The single cell involves the
following signals; the selector signal for deciding the activeness or inactive of the cell, the
Read/write signal for making decisions whether to write or to read with bit 1 for read and 0 for
write, the data in signal supplying data to the memory and the data out signal to produce the
result during read.
Memory cell
The four rows of three memory cell each are controlled by the enable input of the decoder. The
decoder is disabled when the line is zero and at this time none of the memory words are selected
and when the decoder is enabled i.e. the line is 1 one among the four words is selected depending
on the addressing.
3. Circuit realization
i. Considering a single cell
The bellow circuit is the single memory cell as designed on the above problem 2a.
23
Sel
5V
Din
CLK
CP1 Q1
CP2 Q2 S Q
Dout
S0 _
R Q
RW
5V
The select signal which is the address to be monitored by the decoder can either be one
indicating the word has been selected or zero signifies no word for that memory has been
selected, while the R/W signal signifies read (1) or write (0) operation respectively. For the 4X3
memory unit then each cell need to have this signal for symmetry purpose. The clock in this case
behaves as the input data signal.
24
DS1
Data 8
CLK Seq 7
6
5
V1 4
3
CP1 Q1 CP1 2
CP2 Q2 CP2 1
U25A
4555
1/2
V2 A1 Q3 U13A
A0 Q2 U18B
0V Q1 U15C
E Q0 U10
U5 U1
S Q
S Q _ U24D U13B S Q
U16A _ U21A U18C R Q _
U23A
R Q R Q
U14B
U17A U19C U3
U7 U11 S Q
U14C _
S Q S Q
U24B R Q
U17B _ U20A _
U23C R Q U22A R Q
U15A
U17C U20B U4
U12 U8 S Q
S Q U24E U15B _
_ S Q R Q
U23D U18A U20C _
R Q U24A R Q
V3
5V U23E
U30A
U31A U30B
DISP1
4321 D2 D1
D0
25
Waveform after the simulation of above circuit
D0
D1
D2
26
(a) The N-bit binary counter is a device that counts up to 2N. It then resets and counts again
from zero. Design a four-bit binary counter with J-K flip-flops.
1. INTRODUCTION
Counters are N bits devices which when pulsed counts from 0 to 2N– 1, and the process then
repeats. Actually they are the modulo N counters where N is the number of bits and 2N is the
number of states to be taken by the counter.
The counter will increase by 1 for each input pulse. When the output reaches 2N – 1 then
the next state of the circuit will go low, that is the process repeats itself again.
2. DESIGN THEORY
The four bits binary counter is the counter which counts from 0 and adds one to obtain
the next state value up to 24 – 1=15 when a pulse is received before reset back to zero and the
process repeats. Since the counter counts from zero, then the counter will have 16 states and four
bits will be involved. The counter will thus have 16 outputs and will be designed using four JK
Flip Flops since four bits will be needed to represent the 16 states effectively.
27
1 2 3 4 5
0
15
14
13 12 11 10 9 8
2.2 THE STATE TABLE OF THE COUNTER FROM THE STATE DIAGRAM ABOVE :
S/N S3 S2 S1 S0 Q3 Q2 Q1 Q0
0 0 0 0 0 0 0 0 1
1 0 0 0 1 0 0 1 0
2 0 0 1 0 0 0 1 1
3 0 0 1 1 0 1 0 0
4 0 1 0 0 0 1 0 1
5 0 1 0 1 0 1 1 0
6 0 1 1 0 0 1 1 1
7 0 1 1 1 1 0 0 0
8 1 0 0 0 1 0 0 1
9 1 0 0 1 1 0 1 0
10 1 0 1 0 1 0 1 1
11 1 0 1 1 1 1 0 0
12 1 1 0 0 1 1 0 1
13 1 1 0 1 1 1 1 0
28
14 1 1 1 0 1 1 1 1
15 1 1 1 1 0 0 0 0
2.3 THE TRUTH TABLE OF THE COUNTER :
Present State (P.S) Next State (N.S) FF3 FF2 FF1 FF0
S3 S2 S1 S0 Q3 Q2 Q1 Q0 J3 K3 J2 K2 J1 K1 J0 K0
0 0 0 0 0 0 0 1 0 d 0 d 0 d 1 d
0 0 0 1 0 0 1 0 0 d 0 d 1 d d 1
0 0 1 0 0 0 1 1 0 d 0 d d 0 1 d
0 0 1 1 0 1 0 0 0 d 1 d d 1 d 1
0 1 0 0 0 1 0 1 0 d d 0 0 d 1 d
0 1 0 1 0 1 1 0 0 d d 0 1 d d 1
0 1 1 0 0 1 1 1 0 d d 0 d 0 1 d
0 1 1 1 1 0 0 0 1 d d 1 d 1 d 1
1 0 0 0 1 0 0 1 d 0 0 d 0 d 1 d
1 0 0 1 1 0 1 0 d 0 0 d 1 d d 1
1 0 1 0 1 0 1 1 d 0 0 d d 0 1 d
1 0 1 1 1 1 0 0 d 0 1 d d 1 d 1
1 1 0 0 1 1 0 1 d 0 d 0 0 d 1 d
1 1 0 1 1 1 1 0 d 0 d 0 1 d d 1
1 1 1 0 1 1 1 1 d 0 d 0 d 0 1 d
1 1 1 1 0 0 0 0 d 1 d 1 d 1 d 1
Consider FF3
29
S1S0 S1S0
00 01 11 10 00 01 11 10
S3S2 S3S2
00 0 0 0 0 00 d d d d
01 0 0 1 0 01 d d d d
10 d d d d 10 0 0 1 0
11 d d d d 11 0 0 0 0
J3
=S2S1S0 K3=S2S1S0
Consider FF2
S1S0 11 S1S0 11
00 01 10 00 01 10
S3S2 S3S2
00 0 0 1 0 00 d d d d
01 d d d d 01 0 d 1 0
10 d d d d 10 0 0 1 0
11 0 0 1 0 11 d d d d
J2=S1S0 K2=S1S0
Consider FF1
30
S1S0 S1S0
00 01 11 10 00 01 11 10
S3S2 S3S2
00 0 1 d d 00 d d 1 0
01 0 1 d d 01 d d 1 0
10 0 1 d d 10 d d 1 0
11 0 1 d d 11 d d 1 0
J1=S0 K1=S0
Consider FF0
S1S0 S1S0
00 01 11 10 00 01 11 10
S3S2 S3S2
00 1 d d 1 00 d 1 1 d
01 1 d d 1 01 d 1 1 d
10 1 d d 1 10 d 1 1 d
11 1 d d 1 11 d 1 1 d
J0=1 K0=1
31
output
S3 S2 S1 S0
4321
CLK S S S S
J Q J Q J Q J Q
CP S3 _ CP S2 _ CP S1 _ CP S0 _
K Q K Q K Q K Q
R R R R
CLK
CP1 Q1
CP2 Q2 key
5V
32
QUESTION 3(b)
Design a divide-by-12 counter that will count (in binary) the number of pulses on the input line.
Use J-K flip-flops.
1. INTRODUCTION
Divide by N counters are the counters which counts up from zero to 2 N - 1 then resets to one
and the process then repeats. Actually they are the modulo N counters where N is the
The counter will increase by 1 for each input pulse. When the output reaches 2n – 1 then
the next state of the circuit will go low. Thus next state becomes zero and the process
repeats itself.
2. DESIGN THEORY
33
To design a four-bit binary counter, will require 2N states, where N is the maximum number of
bits in the counter. In our case its four bits (specified from the question). Thus we have 2 4 =16
states in total.
The state will be increasing by 1 for each input pulse. When the output reaches 1011=11(in base
10), the next state would expected to be 1100 but for divide by 12 counter reset the counters i.e.
clears all the registers and starts from 0000 rather than 1100.
Since the counter has 12 states then a total of four JK flip flop are going to be used.
2 3 4 5
1
6
0
7
11 10 9 8
34
Present State (P.S) Next State (N.S)
S/N S3 S2 S1 S0 Q3 Q2 Q1 Q0
0 0 0 0 0 0 0 0 1
1 0 0 0 1 0 0 1 0
2 0 0 1 0 0 0 1 1
3 0 0 1 1 0 1 0 0
4 0 1 0 0 0 1 0 1
5 0 1 0 1 0 1 1 0
6 0 1 1 0 0 1 1 1
7 0 1 1 1 1 0 0 0
8 1 0 0 0 1 0 0 1
9 1 0 0 1 1 0 1 0 2.3
10 1 0 1 0 1 0 1 1 THE
11 1 0 1 1 0 0 0 0
12 1 1 0 0 d d d d
13 1 1 0 1 d d d d
14 1 1 1 0 d d d d
15 1 1 1 1 d d d d
TRUTH TABLE :
Present State (P.S) Next State (N.S) FF3 FF2 FF1 FF0
S3 S2 S1 S0 Q3 Q2 Q1 Q0 J3 K3 J2 K2 J1 K1 J0 K0
0 0 0 0 0 0 0 1 0 d 0 d 0 d 1 d
0 0 0 1 0 0 1 0 0 d 0 d 1 d d 1
0 0 1 0 0 0 1 1 0 d 0 d d 0 1 d
0 0 1 1 0 1 0 0 0 d 1 d d 1 d 1
35
0 1 0 0 0 1 0 1 0 d d 0 0 d 1 d
0 1 0 1 0 1 1 0 0 d d 0 1 d d 1
0 1 1 0 0 1 1 1 0 d d 0 d 0 1 d
0 1 1 1 1 0 0 0 1 d d 1 d 1 d 1
1 0 0 0 1 0 0 1 d 0 0 d 0 d 1 d
1 0 0 1 1 0 1 0 d 0 0 d 1 d d 1
1 0 1 0 1 0 1 1 d 0 0 d d 0 1 d
1 0 1 1 0 0 0 0 d 1 0 d d 1 d 1
1 1 0 0 d d d d d d d d d d d d
1 1 0 1 d d d d d d d d d d d d
1 1 1 0 d d d d d d d d d d d d
1 1 1 1 d d d d d d d d d d d d
Consider FF3
S1S0 S1S0 11
00 01 11 10 00 01 10
S3S2 S3S2
00 0 0 0 0 00 d d d d
01 0 0 1 0 01 d d d d
10 d d d d 10 d d d d
11 d d d d 11 0 0 1 0
36
J3=S2S1S0 K3=S1S0
Consider FF2
S1S0 11 S1S0 11
00 01 10 00 01 10
S3S2 S3S2
00 0 0 1 0 00 d d d d
01 d d d d 01 0 0 1 0
10 d d d d 10 d d d d
11 0 0 0 0 11 d d d d
Consider FF1
S1S0 S1S0
00 01 11 10 00 01 11 10
S3S2 S3S2
00 0 1 d d 00 d d 1 0
01 0 1 d d 01 d d 1 0
10 d d d d 10 d d d d
11 0 1 d d 11 d d 1 0
J1=S0 K1=S0
37
Consider FF0
S1S0 S1S0
00 01 11 10 00 01 11 10
S3S2 S3S2
00 1 d d 1 00 d 1 1 d
01 1 d d 1 01 d 1 d d
10 d d d d 10 d d d d
11 1 d d 1 11 d 1 1 d
J0=1 K0=1
The minimization above with the resulted equations end up in producing the following circuit
diagram:
38
DISP1
4321
S3 S2 S1 S0
V2
5V
S S S S
J Q J Q
CP S3_ CPS2 _ J Q J Q
K Q K Q CP S1_ CP S0_
CLK K Q K Q
R R R R
CLK
CP1 Q1 U2A
CP2 Q2
Simulation was done using the circuit maker and after simulation the following waveforms were
obtained.
From the waveform, a delay is observed during the raising edge of a clock to each of the output.
The delay is resulted from the internal gates delay and delays due to the JK flip flop used.
39
Furthermore, the change of S3 is very much slow i.e. change slowly as compare with the output
S0 which is the fastest, changes once after every two clock pulse (which is twice as much the
speed of output S2 as can be seen from the wave forms ).
Design a synchronous sequential circuit whose inputs are binary levels and that the following
state assignment is used:
Y=0 ≡ A
Y=1 ≡ B
1. INTRODUCTION
A sequential circuit is the one in which the decisions are made based on combination of the
current input as well as the past history of the inputs, furthermore a synchronous sequential
circuit is the one which is triggered by using clock.
40
The D flip flop is commonly used in situations where there is feedback from the output back
to the input through some other circuitry and this feedback can sometimes cause the flip-flop
to change states more than once per clock cycle. In order to ensure that the flip-flop changes
state just once per clock pulse, we break the feedback loop by constructing a master-slave
flip-flop.
2. DESIGN THEORY
2.1 STATE DIAGRAM
PRESENT
NEXT STATE [Q(t+1)]
STATE
[Q(t)]
In=0 In=1
A: 0 A/0 B/1
41
In Q(t) Q(t+1) OUTPUT(Z)
0 0 0 0
0 1 1 1
1 0 1 1
1 1 0 0
0 0 0
0 1 1
1 0 1
1 1 0
3. K-MAP MINIMIZATION
Q(t)
0 1
In
0 0 1
1 1 0
42
D I nQ(t ) I nQ (t )
1. CIRCUIT DIAGRAM AND WAVEFORMS
U4A
U1 A_ 1 L1
U1A
U1 A_ 3
V1 L1 _ 1
CP1 Q1 U2A
CP2 Q2
U3A
V1 _ 3 S U1 A_ 2
D Q
_ U1 B_ 5
CP Q U1B
R U1 B_ 4
U4 A_ 3
V3
5V
V3 _ 1
43