SlideShare a Scribd company logo
1 of 9
CS 506-Final Exam
ARMANDO M. SO III
SOLUTIONS:
I Design a circuit using JK-Flip Flop, construct a state table, state diagram for the following counters:
(20 points each)
JK FF Excitation table
Q Q+ J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
a.) 3-bit synchronous counter
State Table:
Qa Qb Qc Qa+ Qb+ Qc+ Ja Ka Jb Kb Jc Kc
0 0 0 0 0 1 0 X 0 X 1 X
0 0 1 0 1 0 0 X 1 X x 1
0 1 0 0 1 1 0 X x 0 1 X
0 1 1 1 0 0 1 X x 1 x 1
1 0 0 1 0 1 X 0 0 X 1 X
1 0 1 1 1 0 X 0 1 X x 1
1 1 0 1 1 1 X 0 x 0 1 X
1 1 1 0 0 0 X 1 x 1 x 1
K-maps:
BC
A 00 01 11 10
BC
A 00 01 11 10
0 1 0 x x X X
1 x x x X 1 1
Ja = QbQc Ka = QbQc
BC
A 00 01 11 10
BC
A 00 01 11 10
0 1 X x 0 x x 1
1 1 X x 1 x x 1
Jb = Qc Kb =Qc
BC
A 00 01 11 10
BC
A 00 01 11 10
0 1 x x 1 0 x 1 1 X
1 1 x x 1 1 x 1 1 X
Jc = 1 Kc = 1
State diagram: Circuit:
b.) 4-bit synchronous counter
State table:
Qa Qb Qc Qd Qa+ Qb+ Qc+ Qd+ Ja Ka Jb Kb Jc Kc Jd Kd
0 0 0 0 0 0 0 1 0 X 0 X 0 X 1 X
0 0 0 1 0 0 1 0 0 X 0 X 1 X X 1
0 0 1 0 0 0 1 1 0 X 0 X X 0 1 X
0 0 1 1 0 1 0 0 0 X 1 X X 1 X 1
0 1 0 0 0 1 0 1 0 X X 0 0 X 1 X
0 1 0 1 0 1 1 0 0 X X 0 1 X X 1
0 1 1 0 0 1 1 1 0 X X 0 X 0 1 X
0 1 1 1 1 0 0 0 1 X X 1 X 1 X 1
1 0 0 0 1 0 0 1 X 0 0 X 0 X 1 X
1 0 0 1 1 0 1 0 X 0 0 X 1 X X 1
1 0 1 0 1 0 1 1 X 0 0 X X 0 1 X
1 0 1 1 1 1 0 0 X 0 1 X X 1 X 1
1 1 0 0 1 1 0 1 X 0 X 0 0 X 1 X
1 1 0 1 1 1 1 0 X 0 X 0 1 X X 1
1 1 1 0 1 1 1 1 X 0 X 0 X 0 1 X
1 1 1 1 0 0 0 0 X 1 X 1 X 1 X 1
K-maps:
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 00 X x X X
01 1 01 x X x X
11 X X X X 11 1
10 X X X X 10
Ja = QbQcQd Ka = QbQcQd
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 1 00 x x X x
01 x x X x 01 1
11 x x X x 11 1
10 1 10 x x X x
Jb = QcQd Kb = QcQd
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 1 X x 00 x x 1
01 1 X x 01 x x 1
11 1 X x 11 x x 1
10 1 X x 10 x x 1
Jc = Qd Kc = Qd
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 1 x X 1 00 x 1 1 x
01 1 x X 1 01 x 1 1 x
11 1 x x 1 11 x 1 1 x
10 1 x X 1 10 x 1 1 x
Jd = 1 Kd = 1
State diagram:
Circuit:
c.) 4-bit synchronous up/down counter
State table:
Dir Qa Qb Qc Qd Qa+ Qb+ Qc+ Qd+ Ja Ka Jb Kb Jc Kc Jd Kd
0 0 0 0 0 0 0 0 1 0 X 0 X 0 X 1 X
0 0 0 0 1 0 0 1 0 0 X 0 X 1 X X 1
0 0 0 1 0 0 0 1 1 0 X 0 X X 0 1 X
0 0 0 1 1 0 1 0 0 0 X 1 X X 1 X 1
0 0 1 0 0 0 1 0 1 0 X X 0 0 X 1 X
0 0 1 0 1 0 1 1 0 0 X X 0 1 X X 1
0 0 1 1 0 0 1 1 1 0 X X 0 X 0 1 X
0 0 1 1 1 1 0 0 0 1 X X 1 X 1 X 1
0 1 0 0 0 1 0 0 1 X 0 0 X 0 X 1 X
0 1 0 0 1 1 0 1 0 X 0 0 X 1 X X 1
0 1 0 1 0 1 0 1 1 X 0 0 X X 0 1 X
0 1 0 1 1 1 1 0 0 X 0 1 X X 1 X 1
0 1 1 0 0 1 1 0 1 X 0 X 0 0 X 1 X
0 1 1 0 1 1 1 1 0 X 0 X 0 1 X X 1
0 1 1 1 0 1 1 1 1 X 0 X 0 X 0 1 X
0 1 1 1 1 0 0 0 0 X 1 X 1 X 1 X 1
1 0 0 0 0 1 1 1 1 1 X 1 X 1 X 1 X
1 0 0 0 1 0 0 0 0 0 X 0 X 0 X X 1
1 0 0 1 0 0 0 0 1 0 X 0 X X 1 1 X
1 0 0 1 1 0 0 1 0 0 X 0 X X 0 X 1
1 0 1 0 0 0 0 1 1 0 X X 1 1 X 1 X
1 0 1 0 1 0 1 0 0 0 X X 0 0 X X 1
1 0 1 1 0 0 1 0 1 0 X X 0 X 1 1 X
1 0 1 1 1 0 1 1 0 0 X X 0 X 0 X 1
1 1 0 0 0 0 1 1 1 X 1 1 X 1 X 1 X
1 1 0 0 1 1 0 0 0 X 0 0 X 0 X X 1
1 1 0 1 0 1 0 0 1 X 0 0 X X 1 1 X
1 1 0 1 1 1 0 1 0 X 0 0 X X 0 X 1
1 1 1 0 0 1 0 1 1 X 0 X 1 1 X 1 X
1 1 1 0 1 1 1 0 0 X 0 X 0 0 X X 1
1 1 1 1 0 1 1 0 1 X 0 X 0 X 1 1 X
1 1 1 1 1 1 1 1 0 X 0 X 0 X 0 X 1
K-maps:
Dir = 0 Dir = 1
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 00 1
01 1 01
11 x x x X 11 X x x X
10 x X x x 10 X x x x
Ja = Dir’QbQcQd + DirQb’Qc’Qd’
Dir = 0 Dir = 1
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 x x x X 00 x x x X
01 x x X x 01 X x x x
11 1 11
10 10 1
Ka = Dir’QbQcQd + DirQb’Qc’Qd’
Dir = 0 Dir = 1
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 1 00 1
01 x x X x 01 x x X x
11 x x x x 11 x x x x
10 1 10 1
Jb = Dir’QcQd + DirQc’Qd’
Dir = 0 Dir = 1
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 x x X x 00 x x x X
01 1 01 1
11 1 11 1
10 x x x X 10 X x x X
Kb = Dir’QcQd + DirQc’Qd’
Dir = 0 Dir = 1
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 1 X x 00 1 x X
01 1 X X 01 1 x X
11 1 x x 11 1 x x
10 1 x x 10 1 x X
Jc = Dir’Qd + DirQd’
Dir = 0 Dir = 1
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 x x 1 00 x x 1
01 x x 1 01 x x 1
11 x x 1 11 x x 1
10 x x 1 10 x x 1
Kc = Dir’Qd + DirQd’
Dir = 0 Dir = 1
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 1 x X 1 00 1 x X 1
01 1 x X 1 01 1 x X 1
11 1 x x 1 11 1 x X 1
10 1 x X 1 10 1 x X 1
Jd = 1
Dir = 0 Dir = 1
CD
AB 00 01 11 10
CD
AB 00 01 11 10
00 x 1 1 x 00 x 1 1 x
01 x 1 1 x 01 x 1 1 x
11 x 1 1 x 11 x 1 1 x
10 x 1 1 x 10 x 1 1 x
Kd = 1
State diagram:
Circuit:
d.) 4-bit asynchronous counter
Timing diagram (negative edge trigger):
Circuit:
II Construct a truth table for each counter in Part-I for a decoder that will match the 7-segment display
output. (20 points each)
For (a):
Input Segments
Symbol
Qa Qb Qc a b c d e f g
0 0 0 1 1 1 1 1 1 0 0
0 0 1 0 1 1 0 0 0 0 1
0 1 0 1 1 0 1 1 0 1 2
0 1 1 1 1 1 1 0 0 1 3
1 0 0 0 1 1 0 0 1 1 4
1 0 1 1 0 1 1 0 1 1 5
1 1 0 1 0 1 1 1 1 1 6
1 1 1 1 1 1 0 0 0 0 7
For (b), (c), and (d):
Input Segments
Symbol
Qa Qb Qc Qd a b c d e f g
0 0 0 0 1 1 1 1 1 1 0 0
0 0 0 1 0 1 1 0 0 0 0 1
0 0 1 0 1 1 0 1 1 0 1 2
0 0 1 1 1 1 1 1 0 0 1 3
0 1 0 0 0 1 1 0 0 1 1 4
0 1 0 1 1 0 1 1 0 1 1 5
0 1 1 0 1 0 1 1 1 1 1 6
0 1 1 1 1 1 1 0 0 0 0 7
1 0 0 0 1 1 1 1 1 1 1 8
1 0 0 1 1 1 1 0 0 1 1 9
1 0 1 0 1 1 1 0 1 1 1 A
1 0 1 1 0 0 1 1 1 1 1 B
1 1 0 0 1 0 0 1 1 1 0 C
1 1 0 1 0 1 1 1 1 0 1 D
1 1 1 0 1 0 0 1 1 1 1 E
1 1 1 1 1 0 0 0 1 1 1 F
a
b
c
d
e
f
g
III Design a shift register using D-Flip flop in SIPO mode.(20 points)
4-bit D-FF SIPO shift register, with output bits Qa, Qb, Qc, Qd, ordered from MSB to LSB.
IV Design a buffer register using D-Flip flop in PIPO mode.(20 points)
4-bit D-FF PIPO buffer register, with input Data A, Data B, Data C, Data D, and output bits Qa, Qb, Qc, Qd.
Prepared by:
Engr.Pepito Cardoza Jr.
Instructor
Note: Show your solution
Deadline of submission Oct 18, 2017
@ CSIT Faculty Workroom 1:00 PM
“Good luck and God bless”

More Related Content

Similar to sequential and combinational circuits exam

Chapter 4 combinational_logic
Chapter 4 combinational_logicChapter 4 combinational_logic
Chapter 4 combinational_logicCh Farhan
 
Combinational logic 2
Combinational logic 2Combinational logic 2
Combinational logic 2Heman Pathak
 
Designing a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequenceDesigning a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequenceMd. Shafaat Jamil Rokon
 
Electrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicasElectrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicasSANTIAGO PABLO ALBERTO
 
Data Encryption Standard (DES)
Data Encryption Standard (DES)Data Encryption Standard (DES)
Data Encryption Standard (DES)Amir Masinaei
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential CircuitHeman Pathak
 
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Hsien-Hsin Sean Lee, Ph.D.
 
Combinational logic 1
Combinational logic 1Combinational logic 1
Combinational logic 1Heman Pathak
 
Binárna číselná sústava - Бинарни бројни систем
Binárna číselná sústava - Бинарни бројни системBinárna číselná sústava - Бинарни бројни систем
Binárna číselná sústava - Бинарни бројни системDarina Poljak
 
die diesem Kleid ein so romantisches Gefühl verleihen
die diesem Kleid ein so romantisches Gefühl verleihendie diesem Kleid ein so romantisches Gefühl verleihen
die diesem Kleid ein so romantisches Gefühl verleihenmokleider lee
 
Ihre Freundschaftstraditionen zu feiern und zu festigen
Ihre Freundschaftstraditionen zu feiern und zu festigenIhre Freundschaftstraditionen zu feiern und zu festigen
Ihre Freundschaftstraditionen zu feiern und zu festigenmokleider lee
 
5 Bit Down Prime Counter
5 Bit Down Prime Counter5 Bit Down Prime Counter
5 Bit Down Prime CounterZohair Hussain
 
5 bit down prime counter
5 bit down prime counter5 bit down prime counter
5 bit down prime counterZohair Hussain
 
12 x1 t08 05 binomial coefficients (2013)
12 x1 t08 05 binomial coefficients (2013)12 x1 t08 05 binomial coefficients (2013)
12 x1 t08 05 binomial coefficients (2013)Nigel Simmons
 

Similar to sequential and combinational circuits exam (20)

elec2200-6.pdf
elec2200-6.pdfelec2200-6.pdf
elec2200-6.pdf
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
Chapter 4 combinational_logic
Chapter 4 combinational_logicChapter 4 combinational_logic
Chapter 4 combinational_logic
 
Combinational logic 2
Combinational logic 2Combinational logic 2
Combinational logic 2
 
Designing a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequenceDesigning a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequence
 
Electrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicasElectrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicas
 
Data Encryption Standard (DES)
Data Encryption Standard (DES)Data Encryption Standard (DES)
Data Encryption Standard (DES)
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential Circuit
 
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
 
Combinational logic 1
Combinational logic 1Combinational logic 1
Combinational logic 1
 
Binárna číselná sústava - Бинарни бројни систем
Binárna číselná sústava - Бинарни бројни системBinárna číselná sústava - Бинарни бројни систем
Binárna číselná sústava - Бинарни бројни систем
 
K - Map
  K - Map    K - Map
K - Map
 
die diesem Kleid ein so romantisches Gefühl verleihen
die diesem Kleid ein so romantisches Gefühl verleihendie diesem Kleid ein so romantisches Gefühl verleihen
die diesem Kleid ein so romantisches Gefühl verleihen
 
Ihre Freundschaftstraditionen zu feiern und zu festigen
Ihre Freundschaftstraditionen zu feiern und zu festigenIhre Freundschaftstraditionen zu feiern und zu festigen
Ihre Freundschaftstraditionen zu feiern und zu festigen
 
5 Bit Down Prime Counter
5 Bit Down Prime Counter5 Bit Down Prime Counter
5 Bit Down Prime Counter
 
5 bit down prime counter
5 bit down prime counter5 bit down prime counter
5 bit down prime counter
 
Lec9
Lec9Lec9
Lec9
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
12 x1 t08 05 binomial coefficients (2013)
12 x1 t08 05 binomial coefficients (2013)12 x1 t08 05 binomial coefficients (2013)
12 x1 t08 05 binomial coefficients (2013)
 
海量視覺資料-孫民
海量視覺資料-孫民海量視覺資料-孫民
海量視覺資料-孫民
 

More from i i

Bouncing circle
Bouncing circleBouncing circle
Bouncing circlei i
 
0-1 KNAPSACK PROBLEM
0-1 KNAPSACK PROBLEM0-1 KNAPSACK PROBLEM
0-1 KNAPSACK PROBLEMi i
 
hypothesis testing overview
hypothesis testing overviewhypothesis testing overview
hypothesis testing overviewi i
 
x86 architecture
x86 architecturex86 architecture
x86 architecturei i
 
boolean algebra exercises
boolean algebra exercisesboolean algebra exercises
boolean algebra exercisesi i
 
database normalization case study
database normalization case studydatabase normalization case study
database normalization case studyi i
 
cpbricks context diagram
cpbricks context diagramcpbricks context diagram
cpbricks context diagrami i
 
cpbricks project document
cpbricks project documentcpbricks project document
cpbricks project documenti i
 
cpbricks manual
cpbricks manualcpbricks manual
cpbricks manuali i
 
imperative programming language, java, android
imperative programming language, java, androidimperative programming language, java, android
imperative programming language, java, androidi i
 
shortest job first
shortest job firstshortest job first
shortest job firsti i
 
designing reports
designing reportsdesigning reports
designing reportsi i
 
bnf of c switch statement
bnf of c switch statementbnf of c switch statement
bnf of c switch statementi i
 
shell and merge sort
shell and merge sortshell and merge sort
shell and merge sorti i
 
adders/subtractors, multiplexers, intro to ISA
adders/subtractors, multiplexers, intro to ISAadders/subtractors, multiplexers, intro to ISA
adders/subtractors, multiplexers, intro to ISAi i
 

More from i i (15)

Bouncing circle
Bouncing circleBouncing circle
Bouncing circle
 
0-1 KNAPSACK PROBLEM
0-1 KNAPSACK PROBLEM0-1 KNAPSACK PROBLEM
0-1 KNAPSACK PROBLEM
 
hypothesis testing overview
hypothesis testing overviewhypothesis testing overview
hypothesis testing overview
 
x86 architecture
x86 architecturex86 architecture
x86 architecture
 
boolean algebra exercises
boolean algebra exercisesboolean algebra exercises
boolean algebra exercises
 
database normalization case study
database normalization case studydatabase normalization case study
database normalization case study
 
cpbricks context diagram
cpbricks context diagramcpbricks context diagram
cpbricks context diagram
 
cpbricks project document
cpbricks project documentcpbricks project document
cpbricks project document
 
cpbricks manual
cpbricks manualcpbricks manual
cpbricks manual
 
imperative programming language, java, android
imperative programming language, java, androidimperative programming language, java, android
imperative programming language, java, android
 
shortest job first
shortest job firstshortest job first
shortest job first
 
designing reports
designing reportsdesigning reports
designing reports
 
bnf of c switch statement
bnf of c switch statementbnf of c switch statement
bnf of c switch statement
 
shell and merge sort
shell and merge sortshell and merge sort
shell and merge sort
 
adders/subtractors, multiplexers, intro to ISA
adders/subtractors, multiplexers, intro to ISAadders/subtractors, multiplexers, intro to ISA
adders/subtractors, multiplexers, intro to ISA
 

Recently uploaded

Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 

Recently uploaded (20)

Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 

sequential and combinational circuits exam

  • 1. CS 506-Final Exam ARMANDO M. SO III SOLUTIONS: I Design a circuit using JK-Flip Flop, construct a state table, state diagram for the following counters: (20 points each) JK FF Excitation table Q Q+ J K 0 0 0 X 0 1 1 X 1 0 X 1 1 1 X 0 a.) 3-bit synchronous counter State Table: Qa Qb Qc Qa+ Qb+ Qc+ Ja Ka Jb Kb Jc Kc 0 0 0 0 0 1 0 X 0 X 1 X 0 0 1 0 1 0 0 X 1 X x 1 0 1 0 0 1 1 0 X x 0 1 X 0 1 1 1 0 0 1 X x 1 x 1 1 0 0 1 0 1 X 0 0 X 1 X 1 0 1 1 1 0 X 0 1 X x 1 1 1 0 1 1 1 X 0 x 0 1 X 1 1 1 0 0 0 X 1 x 1 x 1 K-maps: BC A 00 01 11 10 BC A 00 01 11 10 0 1 0 x x X X 1 x x x X 1 1 Ja = QbQc Ka = QbQc BC A 00 01 11 10 BC A 00 01 11 10 0 1 X x 0 x x 1 1 1 X x 1 x x 1 Jb = Qc Kb =Qc BC A 00 01 11 10 BC A 00 01 11 10 0 1 x x 1 0 x 1 1 X 1 1 x x 1 1 x 1 1 X Jc = 1 Kc = 1
  • 2. State diagram: Circuit: b.) 4-bit synchronous counter State table: Qa Qb Qc Qd Qa+ Qb+ Qc+ Qd+ Ja Ka Jb Kb Jc Kc Jd Kd 0 0 0 0 0 0 0 1 0 X 0 X 0 X 1 X 0 0 0 1 0 0 1 0 0 X 0 X 1 X X 1 0 0 1 0 0 0 1 1 0 X 0 X X 0 1 X 0 0 1 1 0 1 0 0 0 X 1 X X 1 X 1 0 1 0 0 0 1 0 1 0 X X 0 0 X 1 X 0 1 0 1 0 1 1 0 0 X X 0 1 X X 1 0 1 1 0 0 1 1 1 0 X X 0 X 0 1 X 0 1 1 1 1 0 0 0 1 X X 1 X 1 X 1 1 0 0 0 1 0 0 1 X 0 0 X 0 X 1 X 1 0 0 1 1 0 1 0 X 0 0 X 1 X X 1 1 0 1 0 1 0 1 1 X 0 0 X X 0 1 X 1 0 1 1 1 1 0 0 X 0 1 X X 1 X 1 1 1 0 0 1 1 0 1 X 0 X 0 0 X 1 X 1 1 0 1 1 1 1 0 X 0 X 0 1 X X 1 1 1 1 0 1 1 1 1 X 0 X 0 X 0 1 X 1 1 1 1 0 0 0 0 X 1 X 1 X 1 X 1 K-maps: CD AB 00 01 11 10 CD AB 00 01 11 10 00 00 X x X X 01 1 01 x X x X 11 X X X X 11 1 10 X X X X 10 Ja = QbQcQd Ka = QbQcQd CD AB 00 01 11 10 CD AB 00 01 11 10 00 1 00 x x X x 01 x x X x 01 1 11 x x X x 11 1 10 1 10 x x X x Jb = QcQd Kb = QcQd
  • 3. CD AB 00 01 11 10 CD AB 00 01 11 10 00 1 X x 00 x x 1 01 1 X x 01 x x 1 11 1 X x 11 x x 1 10 1 X x 10 x x 1 Jc = Qd Kc = Qd CD AB 00 01 11 10 CD AB 00 01 11 10 00 1 x X 1 00 x 1 1 x 01 1 x X 1 01 x 1 1 x 11 1 x x 1 11 x 1 1 x 10 1 x X 1 10 x 1 1 x Jd = 1 Kd = 1 State diagram: Circuit:
  • 4. c.) 4-bit synchronous up/down counter State table: Dir Qa Qb Qc Qd Qa+ Qb+ Qc+ Qd+ Ja Ka Jb Kb Jc Kc Jd Kd 0 0 0 0 0 0 0 0 1 0 X 0 X 0 X 1 X 0 0 0 0 1 0 0 1 0 0 X 0 X 1 X X 1 0 0 0 1 0 0 0 1 1 0 X 0 X X 0 1 X 0 0 0 1 1 0 1 0 0 0 X 1 X X 1 X 1 0 0 1 0 0 0 1 0 1 0 X X 0 0 X 1 X 0 0 1 0 1 0 1 1 0 0 X X 0 1 X X 1 0 0 1 1 0 0 1 1 1 0 X X 0 X 0 1 X 0 0 1 1 1 1 0 0 0 1 X X 1 X 1 X 1 0 1 0 0 0 1 0 0 1 X 0 0 X 0 X 1 X 0 1 0 0 1 1 0 1 0 X 0 0 X 1 X X 1 0 1 0 1 0 1 0 1 1 X 0 0 X X 0 1 X 0 1 0 1 1 1 1 0 0 X 0 1 X X 1 X 1 0 1 1 0 0 1 1 0 1 X 0 X 0 0 X 1 X 0 1 1 0 1 1 1 1 0 X 0 X 0 1 X X 1 0 1 1 1 0 1 1 1 1 X 0 X 0 X 0 1 X 0 1 1 1 1 0 0 0 0 X 1 X 1 X 1 X 1 1 0 0 0 0 1 1 1 1 1 X 1 X 1 X 1 X 1 0 0 0 1 0 0 0 0 0 X 0 X 0 X X 1 1 0 0 1 0 0 0 0 1 0 X 0 X X 1 1 X 1 0 0 1 1 0 0 1 0 0 X 0 X X 0 X 1 1 0 1 0 0 0 0 1 1 0 X X 1 1 X 1 X 1 0 1 0 1 0 1 0 0 0 X X 0 0 X X 1 1 0 1 1 0 0 1 0 1 0 X X 0 X 1 1 X 1 0 1 1 1 0 1 1 0 0 X X 0 X 0 X 1 1 1 0 0 0 0 1 1 1 X 1 1 X 1 X 1 X 1 1 0 0 1 1 0 0 0 X 0 0 X 0 X X 1 1 1 0 1 0 1 0 0 1 X 0 0 X X 1 1 X 1 1 0 1 1 1 0 1 0 X 0 0 X X 0 X 1 1 1 1 0 0 1 0 1 1 X 0 X 1 1 X 1 X 1 1 1 0 1 1 1 0 0 X 0 X 0 0 X X 1 1 1 1 1 0 1 1 0 1 X 0 X 0 X 1 1 X 1 1 1 1 1 1 1 1 0 X 0 X 0 X 0 X 1
  • 5. K-maps: Dir = 0 Dir = 1 CD AB 00 01 11 10 CD AB 00 01 11 10 00 00 1 01 1 01 11 x x x X 11 X x x X 10 x X x x 10 X x x x Ja = Dir’QbQcQd + DirQb’Qc’Qd’ Dir = 0 Dir = 1 CD AB 00 01 11 10 CD AB 00 01 11 10 00 x x x X 00 x x x X 01 x x X x 01 X x x x 11 1 11 10 10 1 Ka = Dir’QbQcQd + DirQb’Qc’Qd’ Dir = 0 Dir = 1 CD AB 00 01 11 10 CD AB 00 01 11 10 00 1 00 1 01 x x X x 01 x x X x 11 x x x x 11 x x x x 10 1 10 1 Jb = Dir’QcQd + DirQc’Qd’ Dir = 0 Dir = 1 CD AB 00 01 11 10 CD AB 00 01 11 10 00 x x X x 00 x x x X 01 1 01 1 11 1 11 1 10 x x x X 10 X x x X Kb = Dir’QcQd + DirQc’Qd’ Dir = 0 Dir = 1 CD AB 00 01 11 10 CD AB 00 01 11 10 00 1 X x 00 1 x X 01 1 X X 01 1 x X 11 1 x x 11 1 x x 10 1 x x 10 1 x X Jc = Dir’Qd + DirQd’ Dir = 0 Dir = 1 CD AB 00 01 11 10 CD AB 00 01 11 10 00 x x 1 00 x x 1 01 x x 1 01 x x 1 11 x x 1 11 x x 1 10 x x 1 10 x x 1 Kc = Dir’Qd + DirQd’
  • 6. Dir = 0 Dir = 1 CD AB 00 01 11 10 CD AB 00 01 11 10 00 1 x X 1 00 1 x X 1 01 1 x X 1 01 1 x X 1 11 1 x x 1 11 1 x X 1 10 1 x X 1 10 1 x X 1 Jd = 1 Dir = 0 Dir = 1 CD AB 00 01 11 10 CD AB 00 01 11 10 00 x 1 1 x 00 x 1 1 x 01 x 1 1 x 01 x 1 1 x 11 x 1 1 x 11 x 1 1 x 10 x 1 1 x 10 x 1 1 x Kd = 1 State diagram: Circuit:
  • 7. d.) 4-bit asynchronous counter Timing diagram (negative edge trigger): Circuit:
  • 8. II Construct a truth table for each counter in Part-I for a decoder that will match the 7-segment display output. (20 points each) For (a): Input Segments Symbol Qa Qb Qc a b c d e f g 0 0 0 1 1 1 1 1 1 0 0 0 0 1 0 1 1 0 0 0 0 1 0 1 0 1 1 0 1 1 0 1 2 0 1 1 1 1 1 1 0 0 1 3 1 0 0 0 1 1 0 0 1 1 4 1 0 1 1 0 1 1 0 1 1 5 1 1 0 1 0 1 1 1 1 1 6 1 1 1 1 1 1 0 0 0 0 7 For (b), (c), and (d): Input Segments Symbol Qa Qb Qc Qd a b c d e f g 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 2 0 0 1 1 1 1 1 1 0 0 1 3 0 1 0 0 0 1 1 0 0 1 1 4 0 1 0 1 1 0 1 1 0 1 1 5 0 1 1 0 1 0 1 1 1 1 1 6 0 1 1 1 1 1 1 0 0 0 0 7 1 0 0 0 1 1 1 1 1 1 1 8 1 0 0 1 1 1 1 0 0 1 1 9 1 0 1 0 1 1 1 0 1 1 1 A 1 0 1 1 0 0 1 1 1 1 1 B 1 1 0 0 1 0 0 1 1 1 0 C 1 1 0 1 0 1 1 1 1 0 1 D 1 1 1 0 1 0 0 1 1 1 1 E 1 1 1 1 1 0 0 0 1 1 1 F a b c d e f g
  • 9. III Design a shift register using D-Flip flop in SIPO mode.(20 points) 4-bit D-FF SIPO shift register, with output bits Qa, Qb, Qc, Qd, ordered from MSB to LSB. IV Design a buffer register using D-Flip flop in PIPO mode.(20 points) 4-bit D-FF PIPO buffer register, with input Data A, Data B, Data C, Data D, and output bits Qa, Qb, Qc, Qd. Prepared by: Engr.Pepito Cardoza Jr. Instructor Note: Show your solution Deadline of submission Oct 18, 2017 @ CSIT Faculty Workroom 1:00 PM “Good luck and God bless”