Forum Discussion
Altera_Forum
Honored Contributor
14 years agoVGA problem
Hi, Anyone here can help me with VGA problem, the program code just simply output one colour to monitor. However, my monitor display nothing. I have no idea what happen. :( The attachment is my...
Altera_Forum
Honored Contributor
14 years agoHi,
Thanks for the suggestion ! After using SignalTap debugging, I found out that VGA_VS never low (show in list file). I not sure my V_Sync Generator correct or not. Here is the code: always @(posedge iCLK, posedge iRST) begin if (iRST) begin V_Cont <= 0; VGA_VS <= 1'b0; end else begin // When H_Sync Re-start if (H_Cont==H_SYNC_TOTAL-1) // V_Sync Counter if (V_Cont < V_SYNC_TOTAL-1) V_Cont <= V_Cont+1'b1; else V_Cont <= 0; // V_Sync Generator if (V_Cont < V_SYNC_CYC) VGA_VS <= 1'b0; else VGA_VS <= 1'b1; end end Best regards, TWK