'define vend_a_drink {D,dispense,collect} = {IDLE, 2'b11}
D - next_state
dispense - dispense the drink
collect - collect coins
Given statement was included in a code written using verilog for an vending machine.
'define vend_a_drink {D,dispense,collect} = {IDLE, 2'b11}
D - next_state
dispense - dispense the drink
collect - collect coins
Given statement was included in a code written using verilog for an vending machine.
When
`vend_a_drink
is present it is replaced with{D,dispense,collect} = {IDLE, 2'b11}
during pre-compilation.