

Scheme-79 reimplements SCHEME-79, one of the scheme chips developed at the MIT AI Lab (Memo 559 by Holloway, Steele, Sussman and Bell, 1979). It evaluates S-code: Lisp programs stored as graphs of 32-bit words, each a mark bit, a 7-bit type and a 24-bit address or immediate value, in an external list memory. The type of a pointer selects how the chip evaluates the object it points at. A micro PLA and a nano PLA, sequenced by a small control PLA, drive nine registers on one bus; the chip holds the evaluator, a mark-and-compact garbage collector, interrupt entry and a boot sequence. The PLAs are built from the original 1979 files, with one correction (below), and the chip executes one nano step per rising clock edge.
A step that used the 1979 memory pads becomes a byte-serial transaction
on the pins, least significant byte first. The chip sends an opcode
byte, whose bits are the 1979 strobes (bit 0 CDR, 1 READ, 2 WRITE,
3 ALE, 4 READ-INTERRUPT, 5 RESULT), then its request bytes under
TX_VALID, and samples the response bytes on ui_in at the edges after
RX_READY. The memory system holds the clock while it prepares a
response, so memory latency is invisible to the chip.
One modification this deisgn makes is that in cycles without a request byte,
uo_out and uio[7] show the 9-bit micro-PC. When the program reaches DONE,
the chip sends one RESULT transaction carrying the value register, raises DONE,
and shows the value's low four bits as a seven-segment digit on uo_out (segment a on
uo_out[0], the decimal point off). GC_NEEDED signals that allocation
has reached the memory limit; the memory system answers it with a
garbage-collec tion interrupt.
From the 1979 chip: GC_NEEDED (uio[6]) signals that allocation has reached the memory limit. In 1979 the pin was unreliable and went unused; here the memory system answers its rising edge with a garbage-collection interrupt, which runs the chip's own collector.
This design makes two modifications to the original 1979 chip. First, in cycles without a request byte, uo_out and uio[7] show the 9-bit micro-PC so chip execution can be observed. Second, on reaching DONE, the chip:
The original chip simpled looped on DONE and required debugger to read the computed value.
The RP2350 on the demoboard is the memory system: it loads a memory
image, drives the clock, holds rst_n low for at least two rising
edges, then answers each transaction (ALE latches a node address, READ
returns its CAR or CDR, WRITE stores a word, READ-INTERRUPT returns an
interrupt vector, RESULT records the value) and raises IRQ for
interrupts. The boot reads the memory limit from node 1 and the boot
pointer, collects garbage once, and evaluates the boot expression; the
run ends when DONE rises and the digit on the seven-segment display
shows the result's low four bits.
None beyond the Tiny Tapeout demoboard: its RP2350 serves the memory and its seven-segment display shows the result.
The PLAs in the generated control modules come from the MIT SCHEME-79 design files of 1979 (G. L. Steele Jr., G. J. Sussman, J. Holloway, A. Bell), taken from the PDP-10 archive at https://github.com/larsbrinkhoff/scheme-chip-files.
The archive also contains a lot of interesting information about the entire series of Scheme chips designed at MIT AI Lab, photos of the original chips and their layouts/schematics.
Bradford Miller's s79-simulator (https://github.com/Bradford-Miller/s79-simulator) provided test programs and an independent reading of the microcode used to cross-check this design.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | RX[0] | TX[0]/UPC[0]/SEG_A | TX_VALID |
| 1 | RX[1] | TX[1]/UPC[1]/SEG_B | |
| 2 | RX[2] | TX[2]/UPC[2]/SEG_C | |
| 3 | RX[3] | TX[3]/UPC[3]/SEG_D | RX_READY |
| 4 | RX[4] | TX[4]/UPC[4]/SEG_E | IRQ |
| 5 | RX[5] | TX[5]/UPC[5]/SEG_F | DONE |
| 6 | RX[6] | TX[6]/UPC[6]/SEG_G | GC_NEEDED |
| 7 | RX[7] | TX[7]/UPC[7]/SEG_DP | UPC[8] |