Starting from:

$30

ECE2220-Lab 2 Quartus II, the DE10 and Designing a Simple Logic Circuit Solved

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
a)     Derive the truth table of the problem corresponding to logic problem described below. 

b)     Find the simplified circuit corresponding to the truth tale and draw it on the answer sheet. 

c)     Using Quartus® II, write the Verilog code for your circuit.  

d)     Simulate the code and show the result to the TA. 

e)     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.  

 

a)     Produce a truth table for this circuit 

 

b)     Sketch the simplified circuit 

 

c)     Write the Verilog code 

 

d)     Run a “functional” simulation of the hardware and show the timing diagram.   

1                                                                            
e)     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.

 

f)      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.

More products