////////////////////////////////////////////////////////////////////////////////
///
/// Template for LSU EE 4702-1 Spring 2001 Homework 3
///

 /// Name:


 /// Instructions:
  //
  // Copy this to a file named hw03sol.v to directory ~/hw in your
  // class account. (~ is your home directory.)  Use this
  // file for your solution.  Your entire solution should be in
  // this file.
  //
  // Do not rename the modules in this file and be sure to use the
  // directory and filename given above.

  // Assignment: http://www.ee.lsu.edu/v/2001/hw02.pdf

////////////////////////////////////////////////////////////////////////////////

module microwave_oven_controller(beep,dmt,dmu,dst,dsu,mag_on,key_code,clk);
   input key_code;              // Key begin pressed (see parameters).
   input clk;                   // A 64 Hz clock.
   output mag_on;               // When 1, magnetron is on (oven is heating).
   output beep;                 // When 1, emit tone.
   output dmt;                  // Tens digit of minute display.
   output dmu;                  // Units digit of minute display.
   output dst, dsu;             // Tens and units digits of seconds display.

   wire   clk;
   wire [5:0] key_code;
   reg [3:0]  dmt, dmu, dst, dsu;
   reg        mag_on;
   
   parameter key_none   = 6'd0;  // No key pressed.
   parameter key_never  = 6'd1;  // This code will never be returned.

   parameter key_start = 6'd10;
   parameter key_reset = 6'd11;
   parameter key_power = 6'd12;

   parameter key_0      = 6'd20;
   parameter key_1      = 6'd21;
   parameter key_2      = 6'd22;
   parameter key_3      = 6'd23;
   parameter key_4      = 6'd24;
   parameter key_5      = 6'd25;
   parameter key_6      = 6'd26;
   parameter key_7      = 6'd27;
   parameter key_8      = 6'd28;
   parameter key_9      = 6'd29;


endmodule