An Arduino shield can carry a whole processor implemented in programmable logic—not just another peripheral chip. Michael A. Morris’s Chameleon project on Hackaday.io, created on March 30, 2014, takes that approach with a 65C02-compatible soft core and buffered serial interfaces. By December that year, Morris reported running fig-FORTH on the board, giving the compact hardware an interactive programming environment of its own.
Chameleon was designed for two overlapping jobs: experimenting with soft-core processors and acting as an intelligent communications engine for an Arduino. It could also operate independently. That dual purpose explains much of the board: programmable level shifters buffer 12 UNO signals, while serial Flash, FRAM and 128 kB of parallel SRAM provide storage options beyond the FPGA itself.
Hand assembly shapes the FPGA choice
Morris chose a Xilinx Spartan-3A in a VQ100 quad flat package partly because it could be assembled with a soldering iron. He says the pictured board was built that way. A ball-grid-array package could occupy the same board area and offer access to more devices in the family, but cost and ease of assembly took priority here.
The board accepts either an XC3S50A or XC3S200A. That sounds like a simple capacity choice until the processor enters the picture. According to Morris’s project description, the original M65C02 core consumes more than half the smaller device’s logic and two-thirds of its block RAM, leaving little room for memory and peripherals.
On the XC3S200A, the processor plus two buffered UARTs and a buffered SPI master occupies about half the FPGA’s logic resources. Each serial interface has 16-byte transmit and receive FIFOs. Fitting a CPU is only the starting point; the useful computer also needs room for the things attached to it.
The later August 16, 2014 instruction-set log describes the smaller, faster M65C02A revision. Morris reports lower logic usage than the original core, but also cautions against ranking cores by isolated synthesis counts: both designs use two block RAMs for microprogram storage. Saving logic does not make that memory cost disappear.
Serial ports earn their board space
Chameleon’s connectors reflect its communications role. Each of its two serial ports offers four-wire RS-232 or two-wire, half-duplex RS-485 through a 2×5 box header. Separate transceivers and cable wiring select the interface, avoiding a more expensive software-selectable multiprotocol chip.
Two DB-9 connectors would not fit the UNO-sized board, so Morris moved those bulky connections onto ribbon cables. It is a practical division: keep the interface electronics on the shield and put the connector where there is space.
The April 19 checkout log provides a concrete communications result, though it used a different processor configuration. Morris ported his PIC16C5x-compatible M16C5x system to Chameleon and reported transferring an ASCII file at 921.6 kbps. That demonstrates a working serial path, rather than merely a processor fitting into the FPGA.
Checkout also exposed ordinary board-level problems: an UNO power-connector symbol error, stacking headers that allowed mechanical interference near the UNO’s USB connector, and a mistakenly specified 5 V SRAM where a 3.3 V part was needed. Morris reported updating the schematic, PCB documentation and parts list in the Chameleon repository. For anyone revisiting the hardware, those corrections matter as much as the processor architecture.
Forth turns the core into an interactive computer
In the December 17, 2014 fig-FORTH log, Morris describes adapting interpreter source supplied by 6502.org user enso. The port required changing two configuration variables, ORIG and MEM, and supplying three serial routines for character input, character output and carriage-return/line-feed output.
One small compatibility fix is especially revealing. fig-FORTH marks the last character of a dictionary name by setting its high bit. Morris masked that bit in the relevant output path so the VLIST dictionary listing would not end each name with an extended-ASCII character.
The published terminal capture records Klaus Dormann’s 6502 functional test completing successfully, followed by fig-FORTH starting and executing definitions that print a letter F in asterisks. It is a modest demonstration, but it connects the processor, memory, terminal I/O and interpreter in one working session.
Flash-backed disk support and five Forth-specific processor instructions were still future work in that entry. Likewise, in a March 14, 2015 discussion reply, Morris said the external SRAM interface had not yet been implemented. The physical presence of 128 kB of SRAM should not be mistaken for demonstrated access from the core.
Chameleon’s useful lesson is the gap between a programmable board and a complete system. The FPGA can hold different processors, but each configuration still needs working interfaces, memory mapping and software support. Here, the terminal session supplies the strongest milestone: not just a soft core that fits, but a small computer accepting and running programs.
Source: Chameleon