I was ten years old in 1985 and a dedicated 'Commodore kid'. My parents had given me a VIC-20 a few Christmases before and I was hooked, to the point that it had to be put away during term-time in order for me to pay attention to schoolwork. (Cue much frustration then, and understanding and gratitude now.) My VIC was something special, and the BBC Model B that my school had was exciting and exotic at the same time -- but it wasn't a Commodore, therefore it wasn't 'proper.'
I remember the Commodore 128 coming out. It was love at first byte. The shape of it, the fact it was multiple machines in one, that it was a step up from my humble VIC-20... It was intoxicating, and I couldn't live without one. Dad took me to the only computer shop in town, a little place on a dingy side-street that was filled to the gunwales with hardware, tapes, discs and supplies. The owner brought out a box and opened it up, and there she was, a real, actual Commodore 128, large as life and more beautiful than I could ever imagine. I think I stroked her case.
Then the price came up: two hundred pounds. I looked up at my Dad, my heart full of hope, but his expression told me everything. It was just too expensive. The C128 was returned to her box and put away behind the counter, and we went home, and I went back to my VIC-20. (The VIC-20 was to be my only computer until 1991, when I acquired an A3000.)
I never forgot that Commodore 128. I'm happy to say that I have one now: a present from my parents for a recent milestone birthday. :-) She rests in her box, safe and sound between excursions, and the world is good. :-)
During COVID, I got to thinking about the C128 again, my 'dream machine.' Yet what, actually, would that machine look like? I'd had 40 years to imagine it, and now, due to changed life circumstances, I had plenty of time to experiment. I dug out all my old hardware and mined the 8-bits for inspiration - since, obviously, the 8-bits were the acme of design. ;-) The VIC, C128, BBC, Spectrum and Atari machines went under the microscope, and the Dragon, Lynx, Oric, Tandy as well. You name it, I stole from it -- I mean, used it for inspiration. :-D
Things were going fine: I had an interrupt-driven system, text and hi-res display, custom BASIC, all in C++ and SDL2. Then I wanted to implement a built-in assembler, and progress hit a brick wall. Which CPU to use?... I couldn't decide. None of the period chips felt quite right; I shelved the project and moved on. Until two years ago, when I realised what chip I wanted: one that didn't exist. So I created her, and her name is Sparrowhawk.
I designed Sparrowhawk from the start with retrocomputing and hobbyists in mind and to be simple enough for one person to understand, she is a love letter to the computers I grew up with, and an offering back to the community of people who love them, too. I drew inspiration primarily from the WDC 6502 and 65816 (including the 5A22 used in the SNES) and the ARM2, plus a bit from the 68000.
Sparrowhawk is a RISC-hybrid chip with 16 32-bit registers, a 16-bit data bus and a 20-bit address bus. Her 53-opcode custom ISA is heavily optimised around her 16-bit instruction words, using variable-length encoding, and includes 32- and 64-bit integer multiply instructions. In addition, she has coprocessor and DMA signalling pins, and a built-in trace/debug-step mode. She is designed to be as predictable as the 6502: she lacks any register forwarding, branch prediction, speculative execution or microarchitectural optimisations such as these. She is completely in-order and will do her best to do exactly what she is told. :-)
Sparrowhawk runs stably at 100MHz on a commercially available FPGA devkit, and is actively under test. There is an actively maintained assembler built on NASM and full documentation including a PRM. I've also put together a semihost protocol to drive a simple PC-based interface via USB for testing.
In accordance with Rule 5, AI has been used in the design of Sparrowhawk. It has been largely a two-person endeavour: I designed the architecture, wrote the cycle-accurate emulator in C++ and the first several versions of the assembler, led development and documentation, and designed and built the interface system and other software. My fantastic engineer implemented Sparrowhawk in HDL. AI has assisted throughout in testing, automation, proofreading, code generation and other similar aspects. However, while a fascinating experiment in human-machine interaction, this project has been very much human-led and human-driven. :-)
Sparrowhawk is intended to be the heart of the computer I originally dreamed of building, the Firebird. I've been working on a companion graphics chip, Frida, for a little while. My approach was inspired by the Amiga: give the CPU interesting things to compute and let the dedicated hardware do other work.
I've included a couple of demonstrations below. Adventureland is running in Sparrowhawk's Firebird development environment, while Elite is a capture using Sparrowhawk and Frida. (Adventureland is copyright 1978 Scott Adams; this version was made with permission from the author, woot! Elite is copyright 1984 Ian Bell, David Braben and Acornsoft; I made this version with permission from Ian Bell. Both versions are for demonstration only and not intended for distribution.)
Adventureland, running on FPGA and semihost
Elite, running on simulated Sparrowhawk and Frida hardware
Boing ball demo, running on simulated hardware
I've now reached the point where I would like to make her available to the community. My intention is to release her as a standalone unit, an FPGA-based DIP-style processor module: not a SoC or a complete computer but an old-school processor for people to build their own projects around. (As one of my teachers used to say, "What do you want to build today?")
I'm presently investigating manufacturing options and the feasibility of an initial production run. I'd love to know if Sparrowhawk is something people in the community would be interested in - and what kinds of projects you might want to build with her. :-)
I'd be happy to answer questions. :-)
Thank you for reading. :-)