SlideShare a Scribd company logo
1 of 9
BY UNSA SHAKIR
HEX to 7-seg Design Example
Using K-maps
HEX to 7-seg Design Example
• Create truth table from specification
A
B
C
D
E
F
G
In3 In2 In1 In0 A B C D E F G
0 0 0 0 1 1 1 1 1 1 0
0 0 0 1 0 1 1 0 0 0 0
0 0 1 0 1 1 0 1 1 0 1
0 0 1 1 1 1 1 1 0 0 1
0 1 0 0 0 1 1 0 0 1 1
0 1 0 1 1 0 1 1 0 1 1
0 1 1 0 1 0 1 1 1 1 1
0 1 1 1 1 1 1 0 0 X 0
1 0 0 0 1 1 1 1 1 1 1
1 0 0 1 1 1 1 X 0 1 1
1 0 1 0 1 1 1 0 1 1 1
1 0 1 1 0 0 1 1 1 1 1
1 1 0 0 1 0 0 1 1 1 0
1 1 0 1 0 1 1 1 1 0 1
1 1 1 0 1 0 0 1 1 1 1
1 1 1 1 1 0 0 0 1 1 1
Don’t Care
Seven Segment Display
HEX to 7-seg Design Example
• Generate K-maps & obtain logic equations
00 01 11 10
1 1 1 1
1 0 1 0
0 1 0 0
1 1 0 1
01
11
10
00 01 11 10
1 0 1 1
0 1 1 1
1 0 1 1
1 1 0 1
In1 In0
In3 In2
00
01
11
10
A = In2’In0’ + In3’In1 + In2In1
+ In3 In0’ + In3’In2 In0 + In3In2’In1’
In1 In0
In3 In2
00
B = In2’In0’+ In2’In1’+ In3’In1’In0’
+ In3 In1’In0 + In3’In1 In0
K-map for
Aoutput
K-map for
B output
In3 In2 In1 In0 A B C D E F G
0 0 0 0 1 1 1 1 1 1 0
0 0 0 1 0 1 1 0 0 0 0
0 0 1 0 1 1 0 1 1 0 1
0 0 1 1 1 1 1 1 0 0 1
0 1 0 0 0 1 1 0 0 1 1
0 1 0 1 1 0 1 1 0 1 1
0 1 1 0 1 0 1 1 1 1 1
0 1 1 1 1 1 1 0 0 0 0
1 0 0 0 1 1 1 1 1 1 1
1 0 0 1 1 1 1 0 0 1 1
1 0 1 0 1 1 1 0 1 1 1
1 0 1 1 0 0 1 1 1 1 1
1 1 0 0 1 0 0 1 1 1 0
1 1 0 1 0 1 1 1 1 0 1
1 1 1 0 1 0 0 1 1 1 1
1 1 1 1 1 0 0 0 1 1 1
HEX to 7-seg Design Example
• K-maps & logic equations for outputs C-G
00 01 11 10
1 0 0 1
0 0 0 1
1 1 1 1
1 0 1 1
00
01
11
10
In3 In2 00 01 11 10
1 0 0 0
1 1 X 1
1 0 1 1
1 1 1 1
In1 In0
In3 In2
00
01
11
10
K-map for F output
00 01 11 10
0 0 1 1
1 1 0 1
0 1 1 1
1 1 1 1
In1 In0
In3 In2
00
01
11
10
K-map for G output
00 01 11 10
1 1 1 0
1 1 1 1
0 1 0 0
1 1 1 1
00
01
11
10
In3 In2 00 01 11 10
1 0 1 1
0 1 0 1
1 1 0 1
1 X 1 0
00
01
11
10
In3 In2
In1 In0 In1 In0 In1 In0
K-map for C output K-map for D output K-map for E output
C = In3 In2’ + In1’In0 + In2’In1’+ In3’In0 +In3’In2
D = In3’In2’In0’ + In2’In1 In0 + In2In1’In0
+ In3 In1’ + In2 In1In0’
E = In2’In0’+ In3 In2 + In1 In0’ + In3In1
F = In1’In0’+ In3 In2’+ In2 In0’+ In3 In1 + In3’In2
G = In3 In2’+ In1 In0’+ In3 In0 + In3’In2 In1’+ In2’In1
K-map for each output and get
A = A’C+A’BD+B’C’D’+AB’C’
B = A’B’+A’C’D’+A’CD+AB’C’
C = A’B+A’D+B’C’D’+AB’C’
D = A’CD’+A’B’C+B’C’D’+AB’C’+A’BC’D
E = A’CD’+B’C’D’
F = A’BC’+A’C’D’+A’BD’+AB’C’
G = A’CD’+A’B’C+A’BC’+AB’C’
 hex to 7 seg display
 hex to 7 seg display
 hex to 7 seg display

More Related Content

What's hot

Eceg 3201-dld-lec 12-synchronous_counter_design
Eceg 3201-dld-lec 12-synchronous_counter_designEceg 3201-dld-lec 12-synchronous_counter_design
Eceg 3201-dld-lec 12-synchronous_counter_design
Nebiyu Musie
 
X2 t01 04 mod arg form(2013)
X2 t01 04 mod arg form(2013)X2 t01 04 mod arg form(2013)
X2 t01 04 mod arg form(2013)
Nigel Simmons
 
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
台灣資料科學年會
 
xilinx fpga problems
xilinx fpga problemsxilinx fpga problems
xilinx fpga problems
Anish Gupta
 

What's hot (20)

電路學 - [第三章] 網路定理
電路學 - [第三章] 網路定理電路學 - [第三章] 網路定理
電路學 - [第三章] 網路定理
 
ANALOG AND DIGITAL ELECTRONICS unit 4
ANALOG AND DIGITAL ELECTRONICS unit 4ANALOG AND DIGITAL ELECTRONICS unit 4
ANALOG AND DIGITAL ELECTRONICS unit 4
 
Communication systems solution manual 5th edition
Communication systems solution manual 5th editionCommunication systems solution manual 5th edition
Communication systems solution manual 5th edition
 
Flip Flop & RS Latch
Flip Flop & RS LatchFlip Flop & RS Latch
Flip Flop & RS Latch
 
AIスキルの獲得及びAI人材育成の学び方を学ぶ講座
AIスキルの獲得及びAI人材育成の学び方を学ぶ講座AIスキルの獲得及びAI人材育成の学び方を学ぶ講座
AIスキルの獲得及びAI人材育成の学び方を学ぶ講座
 
電路學 - [第二章] 電路分析方法
電路學 - [第二章] 電路分析方法電路學 - [第二章] 電路分析方法
電路學 - [第二章] 電路分析方法
 
Eceg 3201-dld-lec 12-synchronous_counter_design
Eceg 3201-dld-lec 12-synchronous_counter_designEceg 3201-dld-lec 12-synchronous_counter_design
Eceg 3201-dld-lec 12-synchronous_counter_design
 
Lab 2-Simple Combinational Logic
Lab 2-Simple Combinational LogicLab 2-Simple Combinational Logic
Lab 2-Simple Combinational Logic
 
Electronic devices-9 e-floyd-solutions
Electronic devices-9 e-floyd-solutionsElectronic devices-9 e-floyd-solutions
Electronic devices-9 e-floyd-solutions
 
X2 t01 04 mod arg form(2013)
X2 t01 04 mod arg form(2013)X2 t01 04 mod arg form(2013)
X2 t01 04 mod arg form(2013)
 
RMQ クエリ処理
RMQ クエリ処理RMQ クエリ処理
RMQ クエリ処理
 
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
[DSC 2016] 系列活動:李宏毅 / 一天搞懂深度學習
 
Conversion of flip flop
Conversion of flip flopConversion of flip flop
Conversion of flip flop
 
電路學 - [第七章] 正弦激勵, 相量與穩態分析
電路學 - [第七章] 正弦激勵, 相量與穩態分析電路學 - [第七章] 正弦激勵, 相量與穩態分析
電路學 - [第七章] 正弦激勵, 相量與穩態分析
 
Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits
 
電路學 - [第五章] 一階RC/RL電路
電路學 - [第五章] 一階RC/RL電路電路學 - [第五章] 一階RC/RL電路
電路學 - [第五章] 一階RC/RL電路
 
Integration Formulas
Integration FormulasIntegration Formulas
Integration Formulas
 
UNIT-I 191EEC303T LIC.pdf
UNIT-I 191EEC303T LIC.pdfUNIT-I 191EEC303T LIC.pdf
UNIT-I 191EEC303T LIC.pdf
 
xilinx fpga problems
xilinx fpga problemsxilinx fpga problems
xilinx fpga problems
 
Digital clock
Digital clockDigital clock
Digital clock
 

Similar to hex to 7 seg display

343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011
e11ie
 
Chapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdfChapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdf
GetinetGaroma1
 
dd_sampleslides.ppt
dd_sampleslides.pptdd_sampleslides.ppt
dd_sampleslides.ppt
wafawafa52
 
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Hsien-Hsin Sean Lee, Ph.D.
 

Similar to hex to 7 seg display (20)

elec2200-6.pdf
elec2200-6.pdfelec2200-6.pdf
elec2200-6.pdf
 
sequential and combinational circuits exam
sequential and combinational circuits examsequential and combinational circuits exam
sequential and combinational circuits exam
 
Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
Kmaps.ppt
Kmaps.pptKmaps.ppt
Kmaps.ppt
 
K - Map
  K - Map    K - Map
K - Map
 
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
 
D-Flip-Flops(Digital Logic Design (CS302))
D-Flip-Flops(Digital Logic Design (CS302))D-Flip-Flops(Digital Logic Design (CS302))
D-Flip-Flops(Digital Logic Design (CS302))
 
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
 
Combinational logic 2
Combinational logic 2Combinational logic 2
Combinational logic 2
 
Chapter 4 combinational_logic
Chapter 4 combinational_logicChapter 4 combinational_logic
Chapter 4 combinational_logic
 
Basic electronics
Basic electronicsBasic electronics
Basic electronics
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
 
Combinational logic 1
Combinational logic 1Combinational logic 1
Combinational logic 1
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011343logic-design-lab-manual-10 esl38-3rd-sem-2011
343logic-design-lab-manual-10 esl38-3rd-sem-2011
 
Chapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdfChapter-4-Combinational Logic.pdf
Chapter-4-Combinational Logic.pdf
 
dd_sampleslides.ppt
dd_sampleslides.pptdd_sampleslides.ppt
dd_sampleslides.ppt
 
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
 

More from Unsa Shakir

More from Unsa Shakir (20)

Types of diode
Types of diodeTypes of diode
Types of diode
 
Transistor
TransistorTransistor
Transistor
 
Single diode circuits
Single diode circuitsSingle diode circuits
Single diode circuits
 
Silicon control rectifier
Silicon control rectifierSilicon control rectifier
Silicon control rectifier
 
Rectifiers
RectifiersRectifiers
Rectifiers
 
Operational amplifier
Operational amplifierOperational amplifier
Operational amplifier
 
Diode voltage multiplier
Diode voltage multiplierDiode voltage multiplier
Diode voltage multiplier
 
Types of transistors
Types of transistorsTypes of transistors
Types of transistors
 
Clipper and clamper circuits
Clipper and clamper circuitsClipper and clamper circuits
Clipper and clamper circuits
 
kinds of distribution
 kinds of distribution kinds of distribution
kinds of distribution
 
Probability of card
Probability of  cardProbability of  card
Probability of card
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
probability
probabilityprobability
probability
 
tree diagrams
 tree diagrams tree diagrams
tree diagrams
 
counting techniques
counting techniquescounting techniques
counting techniques
 
analytical representation of data
 analytical representation of data analytical representation of data
analytical representation of data
 
frequency distribution
 frequency distribution frequency distribution
frequency distribution
 
graphic representations in statistics
 graphic representations in statistics graphic representations in statistics
graphic representations in statistics
 
introduction to statistical theory
introduction to statistical theoryintroduction to statistical theory
introduction to statistical theory
 

Recently uploaded

"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
hublikarsn
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 

Recently uploaded (20)

S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 

hex to 7 seg display

  • 1. BY UNSA SHAKIR HEX to 7-seg Design Example Using K-maps
  • 2. HEX to 7-seg Design Example • Create truth table from specification A B C D E F G In3 In2 In1 In0 A B C D E F G 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 0 1 0 1 0 0 0 1 1 0 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 0 1 1 1 1 1 1 0 0 X 0 1 0 0 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 X 0 1 1 1 0 1 0 1 1 1 0 1 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 0 0 1 0 0 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1 Don’t Care
  • 4. HEX to 7-seg Design Example • Generate K-maps & obtain logic equations 00 01 11 10 1 1 1 1 1 0 1 0 0 1 0 0 1 1 0 1 01 11 10 00 01 11 10 1 0 1 1 0 1 1 1 1 0 1 1 1 1 0 1 In1 In0 In3 In2 00 01 11 10 A = In2’In0’ + In3’In1 + In2In1 + In3 In0’ + In3’In2 In0 + In3In2’In1’ In1 In0 In3 In2 00 B = In2’In0’+ In2’In1’+ In3’In1’In0’ + In3 In1’In0 + In3’In1 In0 K-map for Aoutput K-map for B output In3 In2 In1 In0 A B C D E F G 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 0 1 1 0 0 0 0 0 0 1 0 1 1 0 1 1 0 1 0 0 1 1 1 1 1 1 0 0 1 0 1 0 0 0 1 1 0 0 1 1 0 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 0 1 1 1 1 1 1 0 0 0 0 1 0 0 0 1 1 1 1 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 0 1 0 1 1 1 0 1 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 0 0 1 0 0 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 0 1 0 0 1 1 1 1 1 1 1 1 1 0 0 0 1 1 1
  • 5. HEX to 7-seg Design Example • K-maps & logic equations for outputs C-G 00 01 11 10 1 0 0 1 0 0 0 1 1 1 1 1 1 0 1 1 00 01 11 10 In3 In2 00 01 11 10 1 0 0 0 1 1 X 1 1 0 1 1 1 1 1 1 In1 In0 In3 In2 00 01 11 10 K-map for F output 00 01 11 10 0 0 1 1 1 1 0 1 0 1 1 1 1 1 1 1 In1 In0 In3 In2 00 01 11 10 K-map for G output 00 01 11 10 1 1 1 0 1 1 1 1 0 1 0 0 1 1 1 1 00 01 11 10 In3 In2 00 01 11 10 1 0 1 1 0 1 0 1 1 1 0 1 1 X 1 0 00 01 11 10 In3 In2 In1 In0 In1 In0 In1 In0 K-map for C output K-map for D output K-map for E output C = In3 In2’ + In1’In0 + In2’In1’+ In3’In0 +In3’In2 D = In3’In2’In0’ + In2’In1 In0 + In2In1’In0 + In3 In1’ + In2 In1In0’ E = In2’In0’+ In3 In2 + In1 In0’ + In3In1 F = In1’In0’+ In3 In2’+ In2 In0’+ In3 In1 + In3’In2 G = In3 In2’+ In1 In0’+ In3 In0 + In3’In2 In1’+ In2’In1
  • 6. K-map for each output and get A = A’C+A’BD+B’C’D’+AB’C’ B = A’B’+A’C’D’+A’CD+AB’C’ C = A’B+A’D+B’C’D’+AB’C’ D = A’CD’+A’B’C+B’C’D’+AB’C’+A’BC’D E = A’CD’+B’C’D’ F = A’BC’+A’C’D’+A’BD’+AB’C’ G = A’CD’+A’B’C+A’BC’+AB’C’