Professional Documents
Culture Documents
Submitted by:
Jayson Becosacer
Fourth Year BSECE
Submitted to:
Engr. Cedric Matthew Gador
December 6, 2017
Problem:
Create a circuit that would display the square a 4-bit input value. Display the outputs
through 8 LEDs arranged from left ( MSB ) to right ( LSB ). If in case the square of the input
exceeds 8 bits, ignore the extra bits and display only the 8 least significant bits. Use AND, OR
and NOT gates only.
Analysis:
The first approach in this circuit is to solve for the squares of the individual 4-bit inputs
from 0 to 15. Since the circuit uses eight LEDs to display the output, this would mean that the
square of the numbers is also represented in binary form. After getting the square of the numbers,
we should convert them into binary form for us to create a truth table that indicates whether the
LED on a specific output bit is either high or low depending on the given 4-bit binary input. The
truth table will be the basis of our fundamental equations and will help us establish a simplified
working circuit.
Truth Table:
A B C D F7 F6 F5 F4 F3 F2 F1 F0
0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0 0
0 0 1 1 0 0 0 0 1 0 0 1
0 1 0 0 0 0 0 1 0 0 0 0
0 1 0 1 0 0 0 1 1 0 0 1
0 1 1 0 0 0 1 0 0 1 0 0
0 1 1 1 0 0 1 1 0 0 0 1
1 0 0 0 0 1 0 0 0 0 0 0
1 0 0 1 0 1 0 1 0 0 0 1
1 0 1 0 0 1 1 0 0 1 0 0
1 0 1 1 0 1 1 1 1 0 0 1
1 1 0 0 1 0 0 1 0 0 0 0
1 1 0 1 1 0 1 0 1 0 0 1
1 1 1 0 1 1 0 0 0 1 0 0
1 1 1 1 1 1 1 0 0 0 0 1
Equations:
F1 = 0
Circuit Diagram: