Close

CPU State Machine

A project log for Novasaur CP/M TTL Retrocomputer

Retrocomputer built from TTL logic running CP/M with no CPU or ALU

alastair-hewittAlastair Hewitt 04/22/2019 at 15:571 Comment

8 weeks in and the CPU is running, although it's not doing anything useful yet. The initial task was to get all the timing circuits in place and measure the performance of the system.

Only 10 chips are needed to implement the clock circuit, program counter, instruction register, and CPU state machine. This would have been 15 chips if it wasn't for this guy below.

The initial design was all 74-series chips and it needed 50 in total. A single programmable array logic (PAL) can absorb 6 of the 74-series chips. The first PALs were introduced in 1978 and included the 16R8. The device show above is the modern equivalent knows as a GAL (generic array logic). This chip can emulate a variety of old PAL devices and in this case it is being used as the 1978-era 16R8.

I could go further though. The table below shows the possible chip count reductions using more PALs:

PALsTTLOtherTotal
Original Design050555
Current Design144550
Optional Design530540

The optional design would replace the 8-bit counters that currently require 3 chips (two 4-bit counters + buffer) with a single chip. There would be 3 of these 8-bit counter PALs. The rest of the instruction decode logic and bus state machine would also fit in a single PAL. Note: Control signals used by the counters would require the larger 24-pin 22R10 devices.

Consolidating 6 chips in to one was an easy choice. The current plan is to stop there though. The design files for the PAL have been uploaded along with a simulation showing different execution states for the CPU State Machine.

Discussions

Dave's Dev Lab wrote 04/22/2019 at 16:23 point

nice work! love the docs on using the 16V8 stuff! i've got a massive number of those devices (around 10k), but have hesitated in using them for my DYI CPU designs other than for the hex decoder - https://hackaday.io/project/163274-4-bit-full-hex-decoder

  Are you sure? yes | no