BCD to 7 segment display logic minimisation

  • Thread starter Thread starter fonz
  • Start date Start date
  • Tags Tags
    Logic
Click For Summary

Discussion Overview

The discussion revolves around the logic minimization for driving a 7-segment display from a 4-bit binary input, specifically focusing on segment (d). Participants are engaged in deriving the truth table, Karnaugh map, and logic expressions, while also addressing potential issues in their calculations and interpretations.

Discussion Character

  • Homework-related, Technical explanation, Debate/contested

Main Points Raised

  • One participant presents a truth table and Karnaugh map for segment (d) and derives a canonical form expression, questioning the correctness of their minimization and application of De-Morgan's laws.
  • Another participant requests to see the circuit used to create the truth table, suggesting a specific example for clarity.
  • There is a discussion about whether the display should only show decimal digits 0-9 or also include hexadecimal A-F, with some participants referencing 'don't care' conditions for values 10-15.
  • Confusion arises regarding the number of truth tables needed, with clarification that only one is required for segment (d) in this homework.
  • Participants debate whether segment (d) should be lit for the digit 9, with differing opinions based on provided examples and personal interpretations.
  • One participant points out potential issues with the groupings in the Karnaugh map, suggesting that the original groupings may not be valid.
  • Corrections to the canonical form are discussed, with participants working through the implications of applying De-Morgan's laws and identifying missing terms in their expressions.

Areas of Agreement / Disagreement

Participants express differing views on the correctness of the logic expressions derived, the treatment of the digit 9 in relation to segment (d), and the validity of the Karnaugh map groupings. The discussion remains unresolved with multiple competing interpretations and calculations presented.

Contextual Notes

There are limitations regarding the assumptions made about the display's behavior for digits beyond 9, as well as potential misunderstandings in the application of Karnaugh map techniques and De-Morgan's laws. The scope is restricted to segment (d) for this homework assignment.

fonz
Messages
151
Reaction score
5

Homework Statement



A 7-segment display is used to show a decimal digit and it is driven from 4-bit input. Each bar is assumed to light up when a logical 1 is applied to it.
  1. Draw the truth table to drive segment (d) of the display.
  2. Using the truth table you have obtained, draw a Karnaugh map to find the minimised logic expression in the 1-st canonical form (SOP, i.e. series of AND terms ORed together).
  3. Convert the expression from 2 to a function which uses only NAND gates and draw the equivalent circuit diagram in Logic Circuit and generate its truth table to compare with 1.
seven-segment_example.png

Homework Equations



De-Morgan's laws:$$(A + B)' = A' \cdot B'$$$$A' + B' = (A \cdot B)'$$

The Attempt at a Solution


[/B]
See attached for truth table and k-map.

Canonical Form:$$A + C'D + CD' + A'B'$$

Applying De-Morgan's Theorem:$$A'BCC'DD'$$

but since ##C \cdot C' = 0## and ##D \cdot D' = 0## then this all reduces to 0.

I'm not sure whether it is my K-Map minimisation or application of De-Morgan's laws that is wrong?
 

Attachments

  • segment_d.png
    segment_d.png
    30 KB · Views: 1,394
Physics news on Phys.org
Yes that is correct thanks berkeman.
 
fonz said:
used to show a decimal digit
And this part of the problem statement implies you should only show 0-9 and blank on any number 10 and up? Or are you supposed to display A-F too...
 
berkeman said:
And this part of the problem statement implies you should only show 0-9 and blank on any number 10 and up? Or are you supposed to display A-F too...

In the example that was provided for segment c, the decimal values 10 to 15 are shown as 'don't care' terms so I have kept it consistent with the example.
 
I'm confused though. You should end up with 7 truth tables, one for each segment drive, right?
 
berkeman said:
I'm confused though. You should end up with 7 truth tables, one for each segment drive, right?

Yes in total, although this homework is only to derive the logic circuit for segment d.
 
Ah, okay. I missed that if you said it in your OP. Let me check your work now...
 
  • #10
berkeman said:
d should not be 1 for the digit 9...

Well, I guess it could, but I normally wouldn't make d ON for 9.

I did think this originally but then I checked the example solution that was provided in the homework material and found this.
 

Attachments

  • segment.png
    segment.png
    14.6 KB · Views: 678
  • #11
fonz said:
I did think this originally but then I checked the example solution that was provided in the homework material and found this.
Ah, fair enough. The issue I see is the blue rectangle and green rectangle that you have around 3 terms each in your K-map. I don't think you can do that... :smile:

http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/graphics/g3.gif
g3.gif
 
  • Like
Likes   Reactions: fonz
  • #12
Great thanks for pointing that out, still got the same issue though:

Canonical:

##A + BC'D + B'C + B'D' + CD'##

Applying De-Morgan's law:

##A'BBB'CC'C'DDD'##

Now the ##BB'##, ##CC'## and ##DD'## terms all equal zero.
 

Attachments

  • segment_d.png
    segment_d.png
    29.9 KB · Views: 696
  • #13
fonz said:
A+BC′D+B′C+B′D′+CD′
That's not what I'm getting for a corrected version of your K-map. Can you post the corrected K-map and show your groupings?
 
  • #14
berkeman said:
That's not what I'm getting for a corrected version of your K-map. Can you post the corrected K-map and show your groupings?

I think I am missing the ##A'## from the third minterm.

##A + BC'D + A'B'C +B'D' + CD'##
 

Attachments

  • segment_d.png
    segment_d.png
    31.2 KB · Views: 684
  • #15
fonz said:
I think I am missing the A' from the third minterm.

A+BC′D+A′B′C+B′D′+CD′
Your 3rd minterm does include A', and I get the same minterms as you now. :smile:
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
8K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
6K