DAVIAC-1, 2 and 3 compared
All three machines share one architecture and one instruction set. A program assembled with Hillbilly1 for DAVIAC-1 runs on DAVIAC-2 and DAVIAC-3 as it is. What changes is what the machine is made of, and so how fast it runs, how much memory it can have, and how it talks to the world.
| DAVIAC-1 | DAVIAC-2 | DAVIAC-3 | |
|---|---|---|---|
| Built from | Relays: roughly 900, in clear cases | 74LS-series TTL chips on one board | An AMD Artix-7 FPGA on a Digilent Basys 3 |
| Described in | Schematics and PCBs | Schematics and a PCB | VHDL |
| Clock | Motor and cam, 0.5–40 Hz, usually about 5 Hz | 2 MHz crystal | 100 MHz, divided down |
| Speed | A few states a second | About 2 million states a second | 2 or 20 states a second to watch, 2 million, or 12.5 million |
| One instruction (7–16 states) | Around a second | About 5 microseconds | Under a microsecond at full speed |
| Instruction set | The DAVIAC instruction set | The same | The same, plus JSR, RTS and LDSP (DAVIAC 3.5) |
| Address bus | 12 bits | 16 bits | 16 bits |
| ROM | 128 bytes, on DIP switches | 32 KiB EPROM | 32 KiB, in the FPGA |
| RAM | 128 bytes of micro-relays, plus 8 bytes of scratch RAM in large relays | 8 KiB (31 KiB in revision 2.04) | 31 KiB |
| Input and output | Front panel switches; the scratch RAM with a WAIT handshake | Serial terminal through a 6551 ACIA (and an 8-bit PIA in 2.04) | Serial terminal through a 6551-compatible ACIA; 8-bit PIA on the Pmod connectors |
| What you see | An LED on every bit, and every relay moving | LED bar graphs on the registers, buses and sequencer | 16 LEDs and a 4-digit display, switched between registers and buses |
| What you hear | Every relay | Nothing | Nothing |
| Loading a program | Set the DIP switches, or the loader writes RAM over the bus | Program the EPROM, or DAVBUG's F command over the serial line | The serial loader (it can write ROM too), DAVBUG's F command, or a new bitstream |
| Software | Assembler programs: 16-bit addition, Fibonacci, Rule 30, a subroutine handler | DavSys 325.6: DAVBUG monitor, MATHS16, DAVBAS BASIC | DavSys 350: the same, using JSR and RTS, about 27% faster |
| Try it | DAVIAC Virtual, in your browser |
The same program on each machine
NROOT is a DAVBAS program that works out n-th roots to many digits. Its ten test cases take 1,833 million machine states under DavSys 325.6 and 1,338 million under DavSys 350.
| Machine | Software | Time for the ten cases |
|---|---|---|
| DAVIAC-3, 12.5 million states a second | DavSys 350 | 105 seconds (measured) |
| DAVIAC-2, about 2 million states a second | DavSys 325.6 | About 15 minutes (calculated) |
| DAVIAC-1 | – | DavSys needs far more memory than DAVIAC-1 has. At ten states a second, the same work would take nearly six years. |