Search code examples
verilogsystem-veriloghdl

What is the meaning of this code statement in verilog?


'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.


Solution

  • When `vend_a_drink is present it is replaced with {D,dispense,collect} = {IDLE, 2'b11} during pre-compilation.