带LED照明的组合电路

时间:2013-04-25 14:47:48

标签: combinations boolean-logic karnaugh-map

组合电路设计问题。

    A
   ____
  |    |
F |    | B
  |    |
   ____ 
  |  G |
E |    | C
  |    |
   ____
    D

Suppose this is a LED display. It would take input of 4 bit
(0000)-(1111) and display the Hex of it. For example
if (1100) come in it would display C by turning on AFED and turning off BCG.

If (1010) comes in it would display A by turning on ABCEFG 
and turn off D.

These display will all be Capital letters so there is no visual
difference between 0 and D and 8 and B.

Develop a truth table and an optimized expression using Karnaugh Maps.

我不确定如何开始。对于真值表,我会使用(w,x,y,z)作为输入变量还是只使用ABCDEFG变量,因为它是打开和关闭的那个?

input (1010)-->A--> ABCEFG~D (~ stand for NOT)
input (1011)-->B--> ABCDEFG
input (1100)-->C--> ADEF~B~C~G

那么我会为所有的十六进制0-F做那么这会给我分钟。术语规范然后使用卡诺图来优化它?任何帮助都将不胜感激!

2 个答案:

答案 0 :(得分:0)

1)将你的灯光映射到位:

ABCDEFG,所以真值表将是:

                   ABCDEFG
input (1010)-->A-->1110110

等等。

你将有一张大桌子(有16行)。

2)然后在wikipedia上关注每个输出光的样本。

答案 1 :(得分:0)

您需要执行以下7项操作:每段7段显示中的一段。 此图仅供参考。它不一定映射到您问题中的任何部分。

    cd=00 01 11 10  <-- where abcd = 0000 for 0  : put '1' if the light is on
ab= 00  1  1  1  1                 = 0001 for 1  : put '0' if it's off for
ab= 01  1  1  1  0                 = 0010 for 2 ...      the given segment
ab= 11  0  1  1  1        
ab= 10  1  1  1  0                 = 1111 for f
           ^^^^ = d=1 region
              ^^^^ = c==1 region

两个中间行代表“b == 1”区域,最后两个行是== 1区域。

从该地图中找到最大尺寸的矩形(大小为[1,2或4] x [1,2或4]);这可能是重叠的。中间的2x4区域被编码为“d”。顶行是'~a~b'。左上方的2x2方格是'~a~c'。 从第4行到第1行包裹的左下方是'~b~c'。最后,覆盖位置x = 4,y = 3的小2x1区域是'abc'。

因此,该函数将是'd + ~a~b + ~a~c + ~b~c + abc'。如果没有多余的正方形(完全由其他正方形覆盖),那么这个公式应该是最佳的规范形式。 (不计算XOR操作)。对真实数据重复7次!

变量的任何选择/置换应该给出相同的逻辑电路,无论你使用abcd还是dcba或acbd等。