Skip to content

Base64 fx68k gateware v1.0.0 — first release

Choose a tag to compare

@jbilander jbilander released this 18 Aug 07:31
· 7 commits to main since this release

First release of the fx68k gateware for the Base64 carrier board. Turns a 68000 Amiga into a ~42.5 MHz machine with 24 MB of fast RAM and SD card boot, using a cycle accurate 68000 core.

Requires Base64 carrier board Rev C and an iCESugar-Pro FPGA module.


What you get

  • fx68k cycle accurate 68000 at an 85 MHz master clock, 42.5 MHz effective
    — 6x a stock A500.
  • 8 MB Zorro II fast RAM, autoconfigured, offered in descending sizes so it
    works on every Kickstart.
  • 16 MB fast RAM at $08000000 in 32-bit CPU space, added to the free pool at
    boot. Together that's 24 MB usable, including under Workbench 1.3.
  • SD card boot. A port of the SF2000 design, so the unmodified
    sfsd.device binds to it without a driver fork.
  • Boots from cold power-on, no manual reset needed.
    Tested on an Amiga 500 with Kickstart 1.3 and Kickstart 3.1.4, including a
    1 MB Hyperion ROM.

Autoconfig boards

Manufacturer Product Board
5194 13 Zorro II fast RAM
5194 14 AutoConfig ROM (adds the 16 MB at boot)
5194 11 SD card

IDs 13 and 14 are registered to Base64 with the Open Amiga Hardware Repository. Product 11 is deliberately shared with the SF2000, so its driver binds unmodified.


Installing

Plug a USB-C cable into the FPGA module. The on-board iCELink appears as a virtual disk — drop the .bit file onto it and wait a few seconds while it writes the SPI flash. No adapter, no drivers, no extra tools.

⚠ Do this with the module OUT of the Amiga

There is no protection on the module between its 5V rail and USB 5V.
Plugging in USB while the module is seated ties the Amiga's 5V to your PC's
with nothing in between, and whichever is higher back-drives the other. In
practice USB sits closer to a true 5.0V and the Amiga nearer 4.9V, so the
result is your PC powering the Amiga's 5V rail — which is not what you want
either.

If USB has to stay attached while the module is installed, use a data-only
cable
with the 5V conductor cut, leaving D+, D- and GND.

Program it, then seat it in the SO-DIMM socket.


Known limitations

  • DMA into the Zorro II fast RAM is not supported yet. A Zorro II DMA device
    targeting that range will hang. Set the mountlist Mask so the filesystem
    bounces through chip RAM — 0x001FFFFE — which is needed for the 32-bit fast
    RAM regardless, since Kickstart 1.3 has no MEMF_24BITDMA.
  • Passive mode is untested. The gateware will hand the bus over to a second
    accelerator that asserts and holds /BR (an SF2000 on the A500 expansion edge,
    for instance), but has not been tested much yet.
  • MapROM is not implemented yet. It is the next thing being worked on.
  • Timing margin is thin. This build closes at 86.911 MHz against an 85.900
    MHz constraint, so about +0.135 ns. Place-and-route variance between builds
    is comparable to that, so rebuilding from the same source may not produce a
    bitstream that closes. See the build notes.

Building from source

See fx68k/BUILD.md. Two things that will otherwise cost you a build:

  • The four .mem files (microrom, nanorom, turbomem, sfsd) must be members of the Diamond project, and Diamond's Clean deletes them from the implementation directory.
  • The fx68k submodule points at fredrequin/fx68k, which needs three bug fixes applied before it will boot on an Amiga — PR to that fork. Without them you get a deterministic Guru 81000005 during Exec init. FPGA utilisation, for reference: 8238 of 24288 LUT4 (34%), 5067 of 12144 slices (42%), 3083 registers (12%), 21 of 56 block RAMs.

Credits

  • Jorge Cwik (ijor) — the fx68k core.
  • Frédéric Requin (frenchshark) — the fx68k performance and size rework (PR #6) that makes 85 MHz possible.
  • Niklas Ekström and Matt Harlum — the SF2000 SD card fw, design and sfsd.device, ported here unchanged.
  • Alastair M. Robinson — the parent project, and the TG68k gateware that shares this repository.

Checksums

SHA256  1d2b781d415e1e9357f9f33d3075648ce4f8f6e2cccad83bc13fd74b1186e4e6  base64_fx68k_v1.0.0.bit