求用verilog语言写的一个自动贩售机程序要求是:每次只能投入一枚五角或...答://idle,one,half,two,three 为中间状态变量,代表投入币值的几种情况 input one_dollar,half_dollar,reset,clk;output collect,half_out,dispense;reg collect,half_out,dispense;reg[2:0] D;always @(posedge clk)begin if(reset)begin dispense=0; collect=0;half_out=0; D=idle;end case(D...