@AhmedXyz - Yes, in general it's a lot easier to get accurate timings on in FPGA logic, but only if you have decent enough documentation / schematics / programming guides to deduce the logic as closely as possible to the original.
Some of the old chips used various tricks to re-use certain registers and all sorts to try to keep costs down.
In those cases, it can take a lot of debugging to figure out what's actually going on.
In most cases though, there's only so many ways you can implement things.
You can think of the bulk of the work being done inside the original chips as just a large bunch of counters, plus a lot of combinatorial logic.
eg. There will generally be an "X" counter for the current pixel position across the screen, a "Y" counter for the current line, then it's a case of implementing how each specific chipset addresses VRAM (or main RAM) to draw the tiles / backgrounds / sprites on the screen.
It really is all just a ton of counters (stored as "registers" / Flip Flops), basic binary maths, and logic equations at the end of the day.
If we had proper schematics of the internals of each original chip, we would in theory be able to make a 100% accurate FPGA core for them, but sadly it's not always the case. Most machines only came with programming manuals, and those don't always tell you the exact timings or slight quirks that a machine might have (not to mention some of the unique edge cases and manufacturing bugs that might have had work-arounds / patches in certain games.)
EDIT: The Atari Jaguar core (coded by Gregory "Torlus" Estrade) was a rare case where it was translated mainly from the original Jaguar netlists released by Atari. So, the custom Tom and Jerry chips are in theory identical to the originals, it's only the 68000 core that then had to be added (68K cores are VERY accurate now).
So, it's down to the skill of the FPGA coder as to how good the cores are really, and how much info we have on the chip internals.
Having said that, there are generally fewer factors to worry about when implementing a retro FPGA core compared to coding a traditional software emulator on a PC / modern console / phablet.
Of course, quite a few old chips have been de-capped an analysed at a low level now, but it's only recently that the 6502 / 6510 and the NES PPU have been fully analysed (stunning work btw)...
http://visual6502.org/JSSim/index.html
http://www.qmtpro.com/~nes/chipimages/visual2c02/
The other advantage with FPGAs is that you're not bound by having to follow the timing of one main CPU or graphics card.
You can genuinely have multiple "chips" / logic running in parallel, and they can have completely different clock speeds and timings (like a lot of arcade hardware).
As regards resolution switching, that still hasn't been fully explored nor tested for the N64 / GC and other machines yet.
In theory, I should eventually be able to make the switch seemless, without the HDMI link and TV loosing sync for a few seconds.
The N64 does switch from 480i to 240p all the time. The difference in timings is actually fairly subtle, but the code would need to ensure that there are no "gaps" in the sync or clocks to the HDMI chip.
For most machines I will be doing line-doubling to 480p / 576p, and that should in theory ensure seemless switching (as long as the console / computer doesn't take too long between resolutions).
You can do other tricks though, like generating extra sync pulses if the video signal from the console is lost or "late" for a short time.
Most consoles only switch resolution when the cart / disk first boots though, or when it gets into the main game, so it shouldn't be a problem.
Again, I could have stuck an SDRAM chip on the board, but it would have added latency.
I discussed this at length with [RDC], and we decided that for the sake of cost and board complexity, we would do as much as possible without needing SDRAM.
(If I spent extra time getting the SDRAM stuff working, it would have taken so long to debug that the project might never have got this far tbh.)
At least this way, you will be getting the purest most direct digital video signal from the HDMI port on the majority of machines, and with ZERO (perceptible) added lag.
That brings me to the point of up-scaling...
Now, I know a lot of people will immediately ask "Does it do 720p or 1080p up-scaling??" - Well, no, not at the moment.
The reason is because "up-scaling" is generally completely pointless for most older machines - you can't really add any extra pixels or detail to the original image, and any further processing would either be a false sharpness filter, or it would be adding things which weren't there to begin with.
kevtris even mentioned in one of his vids that the main reason to justify "1080p" output on his Hi-Def NES boards is by adding support for things like Super Eagle scaling. Without that, the "1080p" output would be fairly pointless, because it can't really improve the original low-res blocky character of the NES video output.
Personally I don't really like the look of the Eagle filters, but it's something that I could actually add to my HDMI firmware at a later date.
If you think about something with a low-res screen like the original DMG Game Boy, it only has a resolution of 160x140 pixels. If you then "up-scale" that to a 1080p TV / monitor panel res (1920x1080 pixels), all it means is that it will be drawing each of the relatively huge Game Boy pixels using multiple "TV pixels".
That's why the current gen of HDMI board will be outputting the purest direct video resolution it can, or at least just a simple line-doubled 240p / 288p / 480i / 576i to 480p or 576p.
Modern TVs all have to "up-scale" a lower-res input to the native panel res anyway, and most now do a very good job of it, as long as the input isn't from a terrible Composite, RF, or other analog input.
I realize that a lot of modern TVs have a reputation of doing quite a bad job of displaying SD content too, but that's usually from an analog source - trust me, pixel-perfect noise-free 480p or 576p via HDMI can look superb on 95% of modern TVs.
However, I'm also working on a scaler solution that will work a bit like the popular GBS-82x0 scaler boards, but has two HDMI inputs, VGA input, Component, Composite, and an analog RF tuner. Initially it will "up-scale" and spit out either 720p or 1080p via HDMI, but I eventually want to add an analog DAC to that as well.
The scaler board itself has already been tested, and worked with every retro console I've tried so far.
(N64, GC, Dreamcast, Atari 130XE, C64, MSX, 3DO, and even Intellivision and 2600 via the RF tuner.)
The idea is that it will form a relatively cheap solution for switching multiple inputs from retro machines, but will also be perfect for outputting to HDMI for capture cards and modern TVs. The eventual RGB output board will be great for displaying on CRT / LCD monitors too.
I will of course be adding a scanlines option to that, even for the HDMI output.
Oh, and did I mention that the scaler board also has an IR remote control, nice on-screen menus, on-board 9 Watt stereo audio amp, and even a USB socket on it, and can playback full 1080p MKV movies.
So yep, a lot of work to do yet. My brain is starting to melt. lol
btw, I am very concious that so-called "feature creep" is the killer of too many a project, so I'm trying to keep things as simple as possible.
I do intend on adding scan-line support for the HDMI board, but for now it might have to be enabled via some simple switches.
Adding an on-screen menu would take a while to debug, and would also require a method for control.
That would mean hooking up to the controller / joystick port on each type of console / computer, so we also decided against that for the first version of the board.
The board is intended to be as "plug and play" as possible (but not in the Windows Vista sense. lol)
OzOnE.