2

组合电路设计题。

    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 做那将给我分钟。term canonical 那么用卡诺图优化呢?任何帮助将不胜感激!

4

2 回答 2

0

You need to do 7 of these: Each for one segment in the 7-segment display. This figure is for illustration only. It doesn't necessarily map to any segment in your problem.

    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

The two middle rows represent "b==1" region and the two last rows are a==1 region.

From that map find maximum size rectangles (that are of size [1,2 or 4] x [1, 2 or 4]); that can be overlapping. The middle 2x4 region is coded as 'd'. The top row is '~a~b'. The top left 2x2 square is '~a~c'. A bottom left square that wraps from row 4 to row 1 is '~b~c'. Finally the small 2x1 region that covers position x=4, y=3 is 'abc'.

This function would thus be 'd + ~a~b + ~a~c + ~b~c + abc'. If there are no redundant squares (that are completely covered by other squares), then this formula should be optimal canonical form. (not counting XOR operation). Repeat for 7 times for the real data!

Any selection/permutation of the variables should give the same logical circuit, whether you use abcd or dcba or acbd etc.

于 2013-04-25T16:24:05.243 回答
0

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

ABCDEFG,所以真值表将是:

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

等等。

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

2)然后按照维基百科上的示例获取每个输出光。

于 2013-04-25T14:55:04.220 回答