Re: 819 line standards convertor.
Are vsync and mclk synchronized in this design? For example, is mclk generated by a PLL locked to the incoming video? If not, then your code leads to a race condition where the length of the vsync_reset pulse depends on the exact timing between the edges of vsync and mclk, which could be anything between a whole cycle of mclk and 0. This could mean that vsync_reset is unreliable.
If they are synchronised, and any jitter on vsync is small compared with the period of mclk, then you should have no problem.
|