1 //===============================================================================
2 // FPGA MOONCRESTA VIDEO-LD_PLS_GEN
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 //================================================================================
49 always@(posedge I_CLK_6M)
53 wire W_4D1_G = ~(I_H_CNT[0]&I_H_CNT[1]&I_H_CNT[2]);
60 .I_Sel({I_H_CNT[8],I_H_CNT[3]}),
80 .I_Sel({I_H_CNT[8],I_H_CNT[3]}),
86 always@(negedge I_CLK_6M) // 2004-9-22 added
87 W_4C1_Q3 <= W_4C1_Q[3];
90 always@(posedge W_4C1_Q3)
96 .I_Sel({W_4C2_B,~(I_H_CNT[6]&I_H_CNT[5]&I_H_CNT[4]&I_H_CNT[3])}),
101 assign O_LDn = W_4D1_G;
102 assign O_CNTRLDn = W_4D1_Q[2];
103 assign O_CNTRCLRn = W_4D1_Q[0];
104 assign O_COLLn = W_4D2_Q[2];
105 assign O_VPLn = W_4D2_Q[0];
106 assign O_OBJDATALn = W_4C1_Q[2];
107 assign O_MLDn = W_4C2_Q[0];
108 assign O_SLDn = W_4C2_Q[1];