Search code examples
booleanbitboolean-logiccircuit

Circuit that accept 4-bit number and generate its triple, what does that mean? Can someone give me an example of it?


I have to design a combinational circuit that accepts a 4-bit number and generate its triple, what does it mean? Can someone please give me an example of a specific input and its output so I can understand the question?

If you could give me also any hint for designing this circuit I would be very grateful.

Thank you.


Solution

  • Start with a truth table:

    IN              OUT
     0   0 0 0 0     0   0 0 0 0 0 0
     1   0 0 0 1     3   0 0 0 0 1 1
     2   0 0 1 0     6   0 0 0 1 1 0
     3   0 0 1 1     9   0 0 1 0 0 1
     4   0 1 0 0     C   0 0 1 1 0 0
     5   0 1 0 1     F   0 0 1 1 1 1
     6   0 1 1 0    12   0 1 0 0 1 0
     7   0 1 1 1    15   0 1 0 1 0 1
     8   1 0 0 0    18   0 1 1 0 0 0
     9   1 0 0 1    1B   0 1 1 0 1 1
     A   1 0 1 0    1E   0 1 1 1 1 0
     B   1 0 1 1    21   1 0 0 0 0 1
     C   1 1 0 0    24   1 0 0 1 0 0
     D   1 1 0 1    27   1 0 0 1 1 1
     E   1 1 1 0    2A   1 0 1 0 1 0
     F   1 1 1 1    2D   1 0 1 1 0 1
    

    Then use a standard technique such as a Karnaugh Map to deduce the input/output expressions.