Advertisement
Guest User

Untitled

a guest
May 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (spcKey == 1'b1) begin
  2.                 if (counter==1)
  3.                     sndOut = 4'd7;
  4.                 if (counter==2)
  5.                     sndOut = 4'd2;
  6.                 if (counter==3)
  7.                     sndOut = 4'd3;
  8.                 if (counter==4)
  9.                     sndOut=4'd9;
  10.                 if (counter==5)
  11.                     sndOut=4'd9;
  12.                 if (counter==6)
  13.                     sndOut=4'd5;
  14.                 if (counter==7)
  15.                     sndOut=4'd7;
  16.                 nxt_st = InitGame ;
  17.             end
  18.  
  19.  
  20.  
  21.  
  22. always @(posedge fstSec)
  23. begin
  24. if (counter==10)
  25.     counter<=0;
  26. else
  27. counter <= counter+1;
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement