@bagheera - Line-doubling from 240p / 288p to 480i / 576i is easy enough, but I'm intrigued how that guy managed to do fairly decent "de-interlacing" when buffering only a couple of lines at a time from each field?
The TVP7002 chip that marqs is using looks interesting though...
http://www.ti.com/product/tvp7002
I know a lot of these chips have already solved the issue on doing clever de-interlacing without needing a huge SDRAM or SRAM attached, so it may be an option on a future version of my board to use a similar off-the-shelf chip like that.
I'm already looking at finishing the design of the Uber-scaler, and that will require SDRAM but massively simplifies all the timing and scaling stuff.
The TrueView chip even handles decent motion-adaptive de-interlacing and all sorts of other stuff, like gamma / colour correction, black level adjustment, colour space conversion etc.
(although it does work in the YUV colour-space internally anyway.)
I've plugged some line-doubling code into my project now, and it's working OK...
I've actually connected a Game Gear mobo to my Cyc V GX dev board, but when I connect the clock from the crystal, it kills the oscillation on the GG.
So, I'll have to just generate the 32MHz clock on the FPGA for the time being.
(strangely, it works fine when connecting the GG clock to the CPLD RGB board, so it the Cyc V is probably adding too much capacitance. The on-board clamp diodes won't be helping either.)
I think what marqs and kevtris are doing is re-generating the sync signals, but for different reasons...
kevtris showed in a video that the NES / FPGA didn't always stay in sync on reset / power-up (I believe he's fixed that now), so what it appears to be doing is generating the HDMI sync on the FPGA, then waiting until the sync from the NES aligns closely. That way, he can output at 480p / 720p / 1080p, then do the line stretching within that output frame etc.
When switching between 240p and 480i like the N64 often does, the main difference is the slight change in the Hsync pulse positions for each "field" (so-called "half-lines" etc.)
AFAIK, the actual pixel output timing is the same between the two modes, but the Hsync offset in 480i means the second field is drawn above / below the previous field on the CRT.
So, basically I'm now looking into doing a bit of sync re-gen on the FPGA for consoles like the N64.
I also need to get all the timing standards sorted, and make a note of all the weird modes that different consoles and games might use (the Genesis is particularly fussy).
The CEA-861 specs are obviously what I need to adhere to for the HDMI output timings, and I already have a test-pattern gen which works fine with those mode timings.
One annoying thing about the CEA spec is that it doesn't seem to list the standard pixel clock freq next to the diagram of each mode, but it's a great document otherwise.
Anywho, I hope to have the Game Gear working on HDMI later today, and I want to see what the main difference is between the timings when it's in "stretch" mode (when test pad T10 is tied High).
This GG has already had it's stock LCD removed anyway, as I was close to getting chroma encoding working for a cheap Composite screen.
I now have some source code for the common mini-LCD scaler chips too, so looking at either inputting digital video into one of those, or using a cheap LVDS-to-TTL adapter board for driving a new LCD more directly.
Right... I now have to send some monies over to Mr [RDC] for the new prototype HDMI boards.
OzOnE