r/c64 • u/nebulasleuth • 1h ago
C64 Ultimate I built a proposed VIC extension for FPGA C64s (VIC-X)
VIC-X: a proposal (and working prototype) for new C64 graphics modes - 256 colors, two scrolling layers, 128 sprites, a blitter, still 100% C64 underneath
When I was a young tech nerd and budding programmer, I thought the Commodore 64's graphics were awesome. I started with a TRS-80 Color Computer, and when all my friends had Commodore 64s I was jealous, until I finally got one for myself. Obviously, as time passed and I upgraded to the Amiga and beyond, things only got better and more amazing. However, the nostalgia of the C64 has never wavered. (Plenty of Amiga nostalgia too!)
I purchased the Ultimate 64 Elite when it came out and happily played the old games I remembered. I was excited when Commodore was officially resurrected, and I bought one of the first Commodore 64 Ultimate units. I have even ordered a Commodore 77.
But what I have been hoping for is that Commodore would push the C64 forward. Now don't get me wrong, I love it. The modern bits like USB sticks and HDMI are great. Having a community to find and share with is also great. The uptick in new software is even greater! But I think we can do better.
With the Commodore 77 and its new XC7A100T FPGA, the possibilities are even more open. I propose a new set of graphics modes and features that still fit the nostalgia and stay fully compatible with the C64, but open up new features that an influx of new designers can use to wow us.
Is this a good idea? I dunno! But the wiggle worm wouldn't get out of my head, so...
I have built a prototype of what this might look like. I call it VIC-X. I first implemented it as a fork of the VICE emulator, then as a working MiSTer core based on the official C64_MiSTer core. (And yes, claude was used, as it is for all my current work, whether open source or for my businesses.)
It features:
* A 256-color palette
* Two independently scrolling layers, each either tiles or a bitmap, in 4-bit or 8-bit color, with priorities you can change per raster line
* 4- and 8-bit color sprites, from 8 to 64 pixels each way: up to 128 on screen and up to 32 per line, with hardware collision detection and interrupts
* Graphics and sprites out into the border area
* 128 KB of video RAM, plus up to 16 MB of extra RAM shared with the REU, reachable by the CPU through two 8 KB windows
* A DMA blitter: copy, fill, masked copy, expand, scale, mirror and color remapping, in 2D and chained lists
Compatibility comes first. VIC-X stays locked until a program unlocks it, so a stock program sees no difference. I check that against VICE's own VIC-II test programs, which must produce identical results with VIC-X locked, unlocked, and in an unmodified VICE.
To show waht it can do, there are demos: parallax scrolling, a 128-sprite bullet storm, a 1 MB world streamed from extra RAM with music for each scene, a gallery of 256-color pictures, a widescreen scene that runs into the border, and a GEOS-style desktop whose windows are drawn by the blitter.
How would it fit in the new hardware? The new Commodore products are closed source, so I can only speculate about how much room each one has left. On my measurements, the complete VIC-X design uses about 15% of the Commodore 77's FPGA, and under a third of the smaller FPGA in the Commodore 64 Ultimate. So, the real questions are how much of each chip is still free, and how much memory bandwidth is left for video RAM. I am confident the Commodore 77 could handle it. The design is modular, so a smaller machine could implement a subset.
It's all open source (GPL), and you don't need special hardware to try it:
* The VICE fork, to run VIC-X on your PC: https://github.com/NebulaSleuth/vice-vicx/tree/vicx
* The MiSTer core: https://github.com/NebulaSleuth/C64_MiSTer/tree/vicx
* Tests, demos, tools and the FPGA design: https://github.com/NebulaSleuth/VIC-X
The full specification, with every register and examples in BASIC and assembly, is on my website: https://extrastrength.com/vic-x-docs.html
Now... Does anyone know Christian's email address? ;)
EDIT: Main page lol. https://extrastrength.com/vic-x.html
