seq <= (~clk_d[1] & clk_d[0]) ? 0 : seq+1;\r
case(seq)\r
0:begin\r
- //sound\r
ROM_A <= W_WAV_A0;\r
W_CPU_ROM_DO <= ROM_D;\r
end\r
2:begin\r
- //sound\r
ROM_A <= W_WAV_A1;\r
W_WAV_D0 <= ROM_D;\r
end\r
4:begin\r
- //sound\r
ROM_A <= {3'h0,W_A[15:0]};\r
W_WAV_D1 <= ROM_D;\r
end\r
6:begin\r
- //sound\r
ROM_A <= W_WAV_A2;\r
W_CPU_ROM_DO <= ROM_D;\r
end\r
- 8:W_WAV_D2 <= ROM_D; //sound\r
+ 8:W_WAV_D2 <= ROM_D;\r
10:ROM_A <= {3'h0,W_A[15:0]};\r
12:W_CPU_ROM_DO <= ROM_D;\r
- 16:ROM_A <= {3'h0,W_A[15:0]};\r
- 18:begin\r
+ 14:ROM_A <= {3'h0,W_A[15:0]};\r
+ 16:begin\r
ROM_A <= {3'h0,4'h4,1'b0,W_OBJ_ROM_A};\r
W_CPU_ROM_DO <= ROM_D;\r
end\r
- 20:begin\r
+ 18:begin\r
ROM_A <= {3'h0,4'h5,1'b0,W_OBJ_ROM_A};\r
W_OBJ_ROM_A_D <= ROM_D;\r
end\r
- 22:begin\r
+ 20:begin\r
ROM_A <= {3'h0,W_A[15:0]};\r
W_OBJ_ROM_B_D <= ROM_D;\r
end\r