J68 is a CPU core that implements the Motorola/Freescale/NXP 68000 Instruction Set.
J68 is free and open hardware licensed under the ISC license (a license that is similar in terms to the MIT license or the 2-clause BSD license).
- Small (1900 LUTs + 8 x M9k on a Cyclone III)
- High fmax (90 MHz on a Cyclone III, 180 MHz on a Stratix II)
- Stack based CPU with Forth-like microcode
- Not cycle exact : needs a frequency ~3 times higher
- All 68000 instructions are implemented
- Almost all 68000 exceptions are implemented (only bus error missing)
- Only auto-vector interrupts supported
This CPU is meant to be used in Retro gaming / Retro compututing applications. Due to its high fmax, it can operate at the SDRAM controller frequency, without clock domain crossing.
You are reading it right now.
This is the top level of the J68 CPU
Optimized 32-bit add / subtract.
The 16-bit ALU (ADD, SUB, AND, OR, XOR, NOT and bitmask) with C and V flags generation.
Instruction decoder, it generates a 8-bit index for a 256-entry jump table. It also generates the 4-bit effective address indexes and the immediate values. Finally, it detects the invalid and privileged instructions.
ROM containing the 256-entry jump table.
2048 x 20-bit ROM/RAM containing microcode and CPU registers (D0-D7, A0-A7).
Flags read / write in the condition code register (CCR).
Microcode loop for multi-cycle instructions (MUL, DIV, MOVEM).
Microcode conditional branching.
External bus management and special registers (PC, SR, EA1, EA2, VBR, ACCU, SHIFTER).
A system-on-a-chip that re-create the Raymatic M68000 development board (68000 + 16 KB ROM + 32 KB RAM + 2 x ACIAs 6850). The VUBUG debugger can run on this SOC (https://www.retro.co.za/68000/VUBUG/).
The 6850 ACIA from the Suska project (https://www.experiment-s.de/en/), translated into verilog.
Parameterized RAM block for Verilator and Altera Cyclone III.
Parameterized ROM block for Verilator and Altera Cyclone III.
100 MHz clock and reset generator for the Verilator testbench.
Verilator testbench top level.
Configurable clock generator for Verilator.
Musashi 680x0 trace/emulator from MAME project (https://github.com/kstenerud/Musashi).
DPI-C interface for Musashi.
C++ wrapper for the Musashi 680x0 trace/emulator.
Compile script for the Verilator testbench.
Main loop of the Verilator testbench.
Verilator testbench configuration file.
Micro-code assembler.
SRecord v1.64 tool (http://srecord.sourceforge.net/).
VASM M68k assembler (http://sun.hasenbraten.de/vasm/).
Assembly source code of the VUBUG debugger ROM.
Assembly source code of the 1500+ test cases.
The J68 Forth-like microcode.