ECE2220 Lab2-Quartus II and the DE10 – Designing a Simple Logic Circuit Solved

35.00 $

Category:

Description

5/5 - (1 vote)

The purpose of this lab is allow you to become more familiar with Quartus® II, the simulation software, programming of the DE10 Standard board and the design of a simple combinational logic circuit.

2) Instructions

  1. Derive the truth table of the problem corresponding to logic problem described below.
  2. Find the simplified circuit corresponding to the truth tale and draw it on the answer sheet.
  3. Using Quartus® II, write the Verilog code for your circuit.
  4. Simulate the code and show the result to the TA.
  5. Program the hardware and show the result to the TA.

3)The Logic Problem

A washing machine motor is turned on by a control circuit. The circuit checks following conditions,

  • Power switch is ON ( Logic 1: ON , Logic 0: OFF)
  • Door is locked (Logic 1: Locked, Logic 0: Unlocked)
  • Water level is high enough (Logic 1: High, Logic 0: Low)
  • Over flow limit ( Logic 1: Above Overflow, Logic 0: Below Overflow)

The motor is turned on only if all the above conditions are met. Build a logic circuit for this washing machine control circuit.

  1. Produce a truth table for this circuit
  2. Sketch the simplified circuit
  3. Write the Verilog code
  4. Run a “functional” simulation of the hardware and show the timing diagram.  
  5. Program DE10 – Standard board and show the working circuit to the TA. The circuit should use the right most 4 LEDs – LEDR[0], LEDR[1], LEDR[2], LEDR[3]) to show the state of each input switch. The left most LED – LEDR[9] should be used for the output. Make sure your code is annotated.

 

  1. Using the right most push button KEY[0], create an automatic/emergency shutoff for the circuit above. When the button is depressed and held for a second or two, the output (i.e. motor power) should be set to zero. The corresponding LEDs should reflect this change. Use LED[5] to show the last state of the pushbutton (i.e. if the button is pushed LED[5] should be on). Once the button is released, the power should remain off until the button is pressed and held a second time. The 2nd push will allow the circuit to restart and operate again based on the input switches Program the DE10 board and show the working circuit to the TA. The bush button are defined by “negative” logic: when pushed the value of KEY[0] goes from high to low and vice versa. Therefore the sensitivity list of the always block used to detect the change in the level.

 

  • 02-Quartus-II-and-the-DE10-Designing-a-Simple-Logic-Circuit-8xetfu.zip