VIXEN-32 core - new since v0.76 =============================== v0.77 Blitter fix A running blit is no longer cut off when the CPU writes a lot to chip RAM at the same time. It pauses and finishes afterwards. v0.78 Border The top and bottom border can no longer be 0; a 0 is stored as 1. Fixes the graphics layer sometimes starting 8 pixels off, and jumpy fine scrolling. v0.79 SID Every CPU write reaches the SID in order, at most one per 1 MHz tick. Gate off/on straight after each other now restarts a note like on a real C64. v0.80 Reset button v0.81 Reloads BOOT.BIN: kernel and BASIC come back even after a game used all the RAM, with no power cycle. The screen starts clean, like at power-on. v0.82 Core temperature The FPGA temperature can be read by programs (VIH_TEMP, vih_temp_mc()). v0.83 HDMI The HyperRAM controller is placed next to its pins (the upstream MiSTer2MEGA65 fix): more timing margin for the HDMI frame buffer. It does not cure the rare HDMI fault seen after hours of use (a press of the reset button clears it). The analog output is not affected. v0.84 Internal SD card Boots from the internal SD slot when the back micro SD slot is empty. The back slot always wins; the slot is chosen at reset. Same speed. v0.85 Blitter queue Optional 256-deep op queue (vih_blit_queue(1)). Off by default. v0.86 1024 8bpp glyphs The 8bpp font memory is doubled to 64 KB; tile cell bit 27 picks characters 512-1023. The 1bpp, 8x16 and ROM fonts are unchanged. v0.87 Trapdoor RAM 256 KB of extra on-chip RAM right above the 512 KB of fast RAM, for code and data (TRAPDOOR_RAM_BASE, vih_trapdoor_present()). Code runs at 66% and data at 90% of fast-RAM speed. v0.88 Instruction cache Optional 8 KB cache for code in Trapdoor RAM or chip RAM (vih_icache(1)). Trapdoor code: 66% -> 99% of fast-RAM speed. A loop in chip RAM: 46% -> 100%. Fast-RAM code is unchanged. Off by default. v0.89 Zorro RAM The other 48 MB of the SDRAM chip, right after chip RAM (ZORRO_RAM_BASE, vih_zorro_present()). For the CPU only: code and data, through the same caches and at the same speed as chip RAM. The blitter, video and audio cannot see it: keep assets there and copy what is needed to chip RAM, at about 8 MB/s - about 20 times faster than loading from the SD card. v0.90 Blitter Z buffer Optional Z buffer in its own on-chip RAM (vih_blit_z(1)). Fill, textured and Gouraud spans test and write it, so 3D polygons no longer need sorting: every pixel is drawn once, nearest wins. One cell per 2 pixels of the 384x224 screen. A clear takes ~0.43 ms and runs beside the blitter, so it can overlap the screen fill (vih_blit_zbase(), vih_blit_zclear(), vih_blit_zspan()). Off by default. v0.91 Perspective textures Optional perspective-correct textured spans (vih_blit_texspan_persp()): textures no longer bend on polygons seen at an angle. The core divides every 32 pixels and steps straight in between; a span costs ~16 clocks more to start and nothing more per pixel. Uses the same 1/z values as the Z buffer. Off by default. v0.92 Fast Z fills One-color polygons with the Z buffer on now draw at plain-fill speed (v0.90/v0.91: about half speed). Textured and perspective spans, and everything with Z off, are unchanged. SD card: the core's own SD controller is now timing-checked in every build. The first v0.92 build could stop at "E01 NO SD CARD"; use vixen32-r6-v092fix.cor. v0.93 Blitter triangles One blitter op now draws a whole triangle -- one-color, textured, Gouraud or perspective, with the Z buffer on or off. The blitter works out every row itself, so the CPU no longer hands over each row (that, not the pixels, was where 3D scenes spent their time). vih_tri.h sets a triangle up from three vertices. Off unless a program uses it. v0.94 Without M2M The MiSTer2MEGA65 framework is gone: the board's pins go straight to the machine. Block RAM 79% instead of 95%, a third fewer LUTs, and builds take 20 minutes instead of 50. The 15 kHz analog PAL picture is exactly as before (checked pin for pin against the old one, and on a 1084S). NEW: HDMI 720x576 at 50 Hz with sound -- the same picture, all of it, locked to the PAL output (624 lines, 50.08 Hz; most HDMI TVs take that, a strict one may not). The core now loads /VIXEN-32/KERNEL.BIN (v0.93 and older: BOOT.BIN, so both can stay on one card), and reads only the kernel part of it at boot. Keyboard drive LED: green while the network is on. GONE WITH M2M: the F12 menu (the kernel's HELP browser loads files and mounts disks now), the HyperRAM frame buffer. OSD_STATUS / OSD_SIZE still exist and read 0. v0.95 Our own core, all of it The SD card controller, the SDRAM controller and the SID are now our own code. No third-party copyleft code is left in the core: it is closed, all rights reserved (Leif Arne Søderholm). VexRiscv's MIT notice is in NOTICES.txt. SD card: the bus runs at 25 MHz (was 12.5). SID: sounds the same as before. The 8-bit CPU block A 6502 and a Z80 with 64 KBytes of their own RAM, run by the RISC-V, which can stop and resume them at any instruction. With them: the VIC-20's two 6522 VIAs (keyboard, joystick, timers) and its VIC (6561, PAL: picture into chip RAM, sound into the mix), a page map for every VIC-20 memory layout and cartridge, a context switch (every register of the CPU, VIC and VIAs read and written), and a YM2151 (8 FM voices, stereo) the Z80 can drive on its own, as on arcade sound boards. The 64 KBytes sit at $000C0000, straight after Trapdoor RAM and as fast; with no 6502 or Z80 program it is 64 KBytes more RAM for the RISC-V. 8 x 256 palettes Each layer, tile cell and sprite can use one of eight palettes of 256 colors; the copper can switch them per line. Hi-res text The tile layer at 768 dots a line: 80 x 24 text over the unchanged picture and sprites. 15 kHz analog PAL (1084S) and HDMI both show it. HDMI zoom and scanlines Zoom: the picture fills the height (sent as 16:9). Scanlines: every second HDMI line darker; while zoomed, soft CRT scanlines (each line drawn like a beam). The HELP browser's F1 / F3 switch them and keep them in /VIXEN-32/CONFIG.TXT (with the current KERNEL.BIN). Picture and sprites exactly on their coordinates Framebuffer column x and sprite x now land on screen x (the picture was one pixel right, the sprites one pixel left). A program that set the GFX x scroll to 1 to make up for it now shows its picture one pixel left: set it back to 0. Faster CPU writes to chip and Zorro RAM A 32-bit store is one SDRAM burst instead of two writes: clearing 1 MByte of chip RAM with the CPU takes 62 ms (was 113), Zorro to chip copies run at 13 MB/s (was 8). Byte stores, reads and the blitter are unchanged. PCM sound fix Samples no longer turn distorted after long use with resets (a sample's last words were read past its end). Power LED green (release core). v0.96 A Commodore 64 in the 8-bit CPU block Our own VIC-II (6569, PAL), two 6526 CIAs and the PLA beside the 6502, on the same SID as VIXEN-32's: its bad lines and sprites stop the 6502 as on the real machine, and OSC3 and ENV3 read back. The VIC-II's picture is drawn into chip RAM. The core carries no Commodore ROMs: c64hw in KERNEL.BIN loads them from /VIXEN-32/C64/. C64 cartridges 16 KBytes of cartridge ROM in the core, shown by the PLA from GAME / EXROM, and a second ROMH bank for Zaxxon. A trap map (a bit for every 16 bytes) hands $DE00-$DFFF to the RISC-V, so a new cartridge type is a RISC-V change, not a core one. c64hw b14 plays .CRT files: normal 8K / 16K, Ultimax, EasyFlash, Final Cartridge I and III, Ocean, Zaxxon, Simons' Basic, Fun Play, Super Games, Westermann, Rex Utility, C64 Game System, Dinamic, Magic Desk and Comal 80. .D64 disks c64hw b16 gives the C64 a drive 8 for .D64 files through the same trap map: no 1541 in the core. The KERNAL's LOAD, the directory and the error channel work; the disk is read only, and games with their own fast loader do not load. Paddles and the 1351 mouse C64: POTX / POTY on control port 1 or 2. VIC-20: $9008 / $9009. c64hw and vic20hw turn the Amiga mouse into them. Power LED green (release core). Block RAM 356.5 of 365 (v0.95 345), LUT RAM 4,034 (v0.95 3,946). Timing: setup +0.379 ns, hold +0.042 ns. v0.97 C64: the CIAs never stand The C64's two CIAs now count every C64 cycle, also while the 6502 waits for c64hw to answer a cartridge or disk access, as on a real C64. A game that keeps an interrupt on the picture with a CIA timer stays on it: Wormhole's playfield no longer comes up in the wrong characters. While the HELP menu is open the CIAs stand with the 6502, as before. GMod2 cartridges c64hw b17 plays .CRT type 60 (Sam's Journey, Wormhole) and keeps their saves as GAME.EEP beside the .CRT on the card. Power LED green (release core). Block RAM 356.5 of 365, LUT RAM 4,034 (as v0.96). Timing: setup +0.504 ns, hold +0.048 ns. v0.98 C64 tapes A Datasette in the C64: c64hw plays a .TAP file into CIA 1 exactly as the cassette did, cycle for cycle, with PLAY and the motor on the 6510's port. Games with their own fast ("turbo") loader load as on a real C64, in the same time. c64hw b20 lists .TAP files in the game menu: RETURN puts the tape in, presses PLAY and types LOAD and RUN; SHIFT+RETURN puts it in only (side 2). Core version register CORE_VERSION ($3A00023C, read-only) tells software which core it runs on: v0.98 reads $00000098. Older cores read 0. Power LED green (release core). Block RAM 357 of 365 (v0.97 356.5), LUT RAM 4,034 (as v0.97). Timing: setup +0.616 ns, hold +0.048 ns. All new features are off until c64hw or vic20hw switches them on. The released memory map is unchanged.