In this lab you will apply your understanding of Boolean algebra and digital gates to implement two logic functions using discrete logic gates. You will interface your logic gates to the NEXYS 4 board and test your logic function with switches and LEDs on the board.
You will create two digital circuits that implement two logic functions. These two logic functions are defined below.
A laptop is being produced that requires a circuit which will activate an alarm if the laptop's battery is low and turn on the internal fan if the laptop's temperature is too high. The circuit also depends on whether the laptop's power cord is plugged in or not. The inputs and outputs of this circuit are as follows:
Inputs | |
---|---|
C | Cord Plugged In |
B | Low Battery |
T | High Temperature |
Outputs | |
A | Alarm |
F | Fan |
The circuit operation of the alarm and the fan is defined in the following truth table:
Inputs | Outputs | |||
---|---|---|---|---|
C | B | T | F | A |
0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 0 |
0 | 1 | 0 | 0 | 1 |
0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 0 | 0 |
1 | 0 | 1 | 1 | 0 |
1 | 1 | 0 | 0 | 0 |
1 | 1 | 1 | 1 | 0 |
In this first exercise, you will design the Alarm Fan circuit using 7400 series gates. To begin this exercise, carefully read the 7400 Series Logic Devices tutorial.
Create a schematic drawing of your circuit for the fan alarm using 7400 ICs. You can create your schematic circuit diagram in one of two ways:
Your diagram must include each of the following:
The example below demonstrates a circuit diagram to give you an idea on what your circuit diagram might look like. The example below demonstrates a circuit diagram for a 7400 series schematic circuit that implements the function: Z = AB' + ABC
'. Note that you do not need to draw the internal gates.
Note: This is just an example diagram and you should not build your circuit according to this diagram.
Exercise 1 Pass-off: Show a TA your circuit diagram and explain how you know it is correct.
The next exercise in this laboratory is to build your logic circuit onto a breadboard. This involves obtaining the 7400 chips from the TA, placing them on your breadboard, and then wiring up the chips according to the drawing you created in the previous exercise.
Name | I/O Pin | Nexys 4 Assignment |
---|---|---|
Inputs | ||
C | J1-4 | SW2 |
B | J1-3 | SW1 |
T | J1-2 | SW0 |
Outputs | ||
A | J2-1 | LED 0 |
F | J2-2 | LED 1 |
How many wires did you need to build your circuit? Include all the wires you used in your count, including wires for powering the circuit, wires for the inputs and outputs, and wires between the 7400 series chips.
Exercise 2 Pass-off: Show a TA your circuit and have them check that it will not damage the board. Do not turn on the NEXYS 4 board until you have reviewed your circuit with a TA. It is relatively easy to damage the logic chips on the FPGA board if you hook up your logic circuit incorrectly.
At this point, the FPGA board should provide the button inputs to your circuit and the LEDs will display the logic produced by your circuit. Test all input combinations to make sure your two functions (F and A) are producing the correct results.
If their operation does not match the truth table given at the beginning of the lab, your circuit has a mistake! Turn off the NEXYS 4 and make changes as necessary. Have a TA check your circuit each time before you turn the NEXYS 4 back on.
The following are required for pass off:
After you complete pass off, return your chips and wires to their respective bins in the lab.
Don't forget to also submit your lab report on Learning Suite.
How many hours did you work on the lab?
Provide any suggestions for improving this lab in the future.
Here are some ideas for personal exploration in this laboratory:
Describe your personal exploration activities.