Re: HW3 Q2

From: Jose Nelson Amaral (amaral@cs.ualberta.ca)
Date: Tue Nov 20 2001 - 16:53:48 MST


On Tue, 20 Nov 2001, Aloak Kapoor wrote:

>
>
> Hi Professor,
>
> I was just wondering about question 2. When doing the state
> table, I found that I came to states in which I was ready to dispense
> the change back to the user (i.e. after 30 cents of input). In these
> states, I want to stop "listening" to the user's input, i.e. I want to go
> into go into the 5 cent return state regardless of ANY input. How would I
> express this in my state table?

You will have to make an assumption about the speed of the clock that
you are using to change states in your machine, and the speed at which
a person can input coins in the machine. If you make your state machine
clock fast enough, you can make sure to have at least X state transitions
between two coin inputs, you can determine the minimum value of X at
which your machine will work.

                Cheers,

                                Nelson

           /
    \ / / Jose Nelson Amaral - amaral@cs.ualberta.ca
     ) / ( Associate Professor
    / / \ Dept. of Computing Science - University of Alberta
   ( / ) Edmonton, Alberta, Canada, T6G 2E8
    \ O / Phone: (780)492-5411 Fax: (780)492-1071
     \ / http://www.cs.ualberta.ca/~amaral
      `----'

             



This archive was generated by hypermail 2.1.3 : Wed Nov 21 2001 - 15:50:13 MST