Professional Documents
Culture Documents
http://dte.uc3m.es
a) implement an architecture of the system in VHDL. For the combinational part of the FSM,
implement only S1 and S2 states. (1.9 points)
b) How many Flip-flops are needed? (0.3 points)
c) What type of FSM is it? (0.3 points)
http://dte.uc3m.es
http://dte.uc3m.es
http://dte.uc3m.es
c) Indicate the initial and final address (in hexadecimal) of each module and the number of
address lines necessary for each module
d) Draw the schematic of the Chip Select (CS) control circuit for the system. Don’t forget to
indicate the modules of each CS line.
http://dte.uc3m.es
1.- Initially the microwave oven is in standby mode, where the magnetron is disable (M = 0). If no
buttons are pressed it remains in this state.
2. The cook procedure starts from the standby when only the start button is pressed (I = 1) and the
door is closed (D = 0), the Magnetron signal is activated (M = 1) and the popcorn start to be cooked.
3. The popcorn bag starts to inflate and at some time the built pressure inside the bag will break the
seal releasing steam into the microwave chamber. In that moment, the humidity sensor is activated
(H=1) by the steam indicating that the popcorn is cooked and disabling the Magnetron (M = 0).
4. When the popcorn is cooked the beep signal is activated (B = 1) for 3 seconds. The company wants
you to reuse one of the timers that is implemented in the microwave oven control logic board which
VHDL code is given in figure 1. After the beep period the system returns to the initial state. The user
can cancel the beeps, returning to the standby mode, either by pressing the stop button (P = 1) or by
opening the door (D = 1).
5. If the stop button is pressed (P = 1) once or the user opens the door (D = 1) when the magnetron is
active the cooking is paused. During the pause the magnetron is disable. In this state, if the stop button
is pressed again the procedure will be cancel returning the microwave oven to the standby mode. If
the microwave oven is paused, the cook procedure can be resumed pressing the start button when
the door is closed (D = 0).
6. The activation of the start or stop buttons in any other situation not considered in the previous
statements is ignored.
7. If start and stop buttons are pressed at the same time, the stop button has priority when is
applicable.
a) Draw the state transition graph of the finite state machine (FSM) that implements this functionality.
The designed FSM must use the timer given in figure 1. Indicate clearly in the state transition graph
key which inputs and outputs are used from the VHDL code in the FSM.
HINT1: The beeper and the timer are active at the same time.
http://dte.uc3m.es
LIBRARY IEEE;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.all;
ENTITY timer IS
PORT( clk, reset, en: IN std_logic;
eoc: OUT std_logic);
END timer;
http://dte.uc3m.es
http://dte.uc3m.es