morris_mano
Full Member level 2
I was asked in an interview, how would you design a vending machine that accepts nickel, dime and quarter, and output a product after the total coin value reaches 40 cent and also return a change if total coin value exceeds 40cent. The change can be in any combination of nickel, dime and quarter.
I designed this vending machine later and tested it. It works. Basically it had 3 submodule: coin_adder, vending_fsm and coin_change.
If you were asked the same question, what would be your approach to answer it. Will you show block diagram of different sub blocks first and draw state graph for each sub-blocks and explain the procedural blocks inside, or..?
It will help other people and myself in how to give the best answer, if asked in interview next time.
Thanks,
I designed this vending machine later and tested it. It works. Basically it had 3 submodule: coin_adder, vending_fsm and coin_change.
If you were asked the same question, what would be your approach to answer it. Will you show block diagram of different sub blocks first and draw state graph for each sub-blocks and explain the procedural blocks inside, or..?
It will help other people and myself in how to give the best answer, if asked in interview next time.
Thanks,
Last edited: