Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (spcKey == 1'b1) begin
- if (counter==1)
- sndOut = 4'd7;
- if (counter==2)
- sndOut = 4'd2;
- if (counter==3)
- sndOut = 4'd3;
- if (counter==4)
- sndOut=4'd9;
- if (counter==5)
- sndOut=4'd9;
- if (counter==6)
- sndOut=4'd5;
- if (counter==7)
- sndOut=4'd7;
- nxt_st = InitGame ;
- end
- always @(posedge fstSec)
- begin
- if (counter==10)
- counter<=0;
- else
- counter <= counter+1;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement