Advertisement
AlexanderAntonov

Untitled

Oct 18th, 2022
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREDIT:
  2.     begin
  3.     if (coin_put_i)
  4.         begin
  5.         credit_accumulated <= credit_accumulated + coin_sum_bi;
  6.         end
  7.     else if (select_good_i)
  8.         begin
  9.         selected_good <= select_good_num_bi;
  10.         check_credit <= credit_accumulated - select_good_cost_bi;
  11.         if (check_credit < 0)
  12.             begin
  13.             state <= CHANGE;
  14.             end
  15.         else
  16.             begin
  17.             credit_accumulated <= check_credit;
  18.             state <= DELIIVERY;
  19.             end
  20.         end
  21.     else if (cancel_i)
  22.         begin
  23.         state <= CHANGE;
  24.         end
  25.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement