1 //===============================================================================
2 // FPGA MOONCRESTA VIDEO-MISSILE
6 // Copyright(c) 2004 Katsumi Degawa , All rights reserved
10 // This program is freeware for non-commercial use.
11 // An author does no guarantee about this program.
12 // You can use this under your own risk.
14 // 2004- 9-22 The problem which missile didn't sometimes come out from was improved.
15 //================================================================================
32 input I_CLK_6M,I_CLK_18M;
43 always@(posedge I_CLK_6M)
49 W_45R_Q <= W_45R_Q +1;
58 always@(posedge I_CLK_18M)
59 W_5P1_CLK <= ~((&W_45R_Q[7:2])&W_5P1_Q);
61 always@(posedge W_5P1_CLK or negedge I_MLDn)
69 assign O_MISSILEn = W_5P1_CLK;
72 always@(posedge I_CLK_6M)
78 W_45S_Q <= W_45S_Q +1;
87 always@(posedge I_CLK_18M)
88 W_5P2_CLK <= ~((&W_45S_Q[7:2])&W_5P2_Q);
90 always@(posedge W_5P2_CLK or negedge I_SLDn)
98 assign O_SHELLn = W_5P2_CLK;