ECE380 Lab 03-Multifunctional Logic Circuit Solved

35.00 $

Category:

Description

5/5 - (1 vote)

Multifunctional Logic Circuit

In Lab #03, you will design, build, and test a multifunctional logic circuit that implements multiple logic functions. You will be using the Quartus II CAD tool to design the circuit or write VHDL codes. When you have compiled your design, download and test your design on Altera’s DE1 board.

Lab procedures:

  1. Get your pre-lab initialed by the TA.
  2. Using the text editor of Quartus II, compile and simulate your design.
    1. Print out vhd and the waveform files.
    2. Fill in the data table column vhd with the values that you get from the simulator.
  1. Download the design from Step 2 (previous step) to Altera’s Cyclone® DE1 board. Use toggle switches SW[3 … 0] for the four inputs and LEDR[7] for the function output.
    1. Verify the design by testing all possible inputs.
    2. Fill in the data table column vhd DE1 with the values that you get.
    3. Ask the TA to test the logic unit and verify your results.
    4. Have the TA initial the resulting data table.
  1. Using the block editor of Quartus II, create and simulate your design.
    1. Print out the bdf and waveform files.
    2. Fill in the data table column bdf with the values that you get from the simulator.
  2. Download the design from Step 4 (previous step) to Altera’s Cyclone® DE1 board. Use toggle switches SW[3 … 0] for the four inputs and LEDR[7] for the function output.
    1. Verify the design by testing all possible inputs.
    2. Fill in the data table column bdf DE1 with the values that you get.
    3. Ask the TA to test the logic unit and verify your results.
    4. Have the TA initial the resulting data table.
  3. Fill in all the values in the truth table before you leave the lab and get them verified by the TA.

Appendix: Download VHDL design or schematics to DE1-SoC

  1. Build project
  2. Write VHDL code/Construct schematic
  3. Select the correct Cyclone V chip: 5CSEMA5F31C6 (VERY IMPORTANT) Compile
  4. Go to Assignments-àPin Planner
  5. Assign pins, see Page 23 of De1-SoC User Manual for slide switches, page 24 for LEDs
  6. Compile again
  7. Go to Tools-à Programmerà Hardware Setup-àselect “DE-SoC”
  8. Make sure Mode is “JTAG”
  9. Click auto-detect
  10. Select 5CSEMA5
  11. Right click on 5CSEMA5-àadd file-àoutput files-àselect the .sof file
  12. Then click on the Program/Configure checkbox on the 5CSEMA5 line
  13. Click “Start”

 

Question 1 (30 pts): Use algebraic manipulation to prove the following Boolean statements.

  1. 𝑥𝑥𝑥𝑥 + yz + 𝑥𝑥̅𝑧𝑧 = 𝑥𝑥𝑥𝑥 + 𝑥𝑥̅𝑧𝑧
  2. (𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 + 𝑥𝑥4)(𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3 + 𝑥𝑥̅4) = 𝑥𝑥1 + 𝑥𝑥2 + 𝑥𝑥3
  3. d) (Bonus 10 pts): (𝑥𝑥 + 𝑥𝑥) ∙ (𝑥𝑥 + 𝑧𝑧) ∙ (𝑥𝑥̅ + 𝑧𝑧) = (𝑥𝑥 + 𝑥𝑥) ∙ (𝑥𝑥̅ + 𝑧𝑧)

 

Question 2 : Draw circuits using NMOS transistors to implement each of the functions as shown below.

 

  • f (x1,x2) = x1 + x2 ;

 

  • (10 pts) 𝑓𝑓(𝑥𝑥1, 𝑥𝑥2, 𝑥𝑥3 ) = 𝑥𝑥̅1 ∙ 𝑥𝑥̅2 ∙ 𝑥𝑥̅3
  • (20 pts) 𝑓𝑓(𝑥𝑥1, 𝑥𝑥2, 𝑥𝑥3 ) = 𝑥𝑥1 + 𝑥𝑥2 ∙ 𝑥𝑥3 ∙ 𝑥𝑥4 ∙ 𝑥𝑥5
  • (10 pts) 𝑓𝑓(𝑥𝑥1, 𝑥𝑥2, 𝑥𝑥3 ) = 𝑥𝑥1 ∙ 𝑥𝑥2 ∙ 𝑥𝑥3
  • (20 pts) 𝑓𝑓(𝑥𝑥1, 𝑥𝑥2, 𝑥𝑥3, 𝑥𝑥4 ) = 𝑥𝑥̅1 ∙ 𝑥𝑥̅2 ∙ 𝑥𝑥̅3 + 𝑥𝑥̅4 ∙ 𝑥𝑥̅5
  • Lab3-alag3n.zip