Close

TD4B CPU Schematic and Simulating a TTA CPU

A project log for TD4 CPU

TD4 CPU is a "4bit CPU that runs". It is very interesting for what can be done with so little.

agp.cooperagp.cooper 08/08/2017 at 07:120 Comments

TD4 CPU Version B 

Here id the full schematic

And the PCB:

Simulating A TTA

A TTA is a Transport Triggered Architecture (i.e. a single instruction move only CPU). An example is my Weird CPU.

Why simulate TTA? It is a good test for a CPU, can it simulate another CPU.

The TTA CPU model:

Here is my program:

In the above I explicitly test the jump address for the not carry flag. There are other hardware/software arrangements. You could read the PC and write it back as PC+2. The carry signal would determine which of Mem[15] or Mem[14] was read.

Here are the modified OpCode for reference:

So pretty cool for a 4 bit CPU. The power of this CPU is the automatic adding of immediate data with every OpCode, without it it would be dead.

Expanding the TD4B

There are two basic approaches:

  1. Increase the 4 bus to 8 bit but keep the 4 bit OpCode.
  2. Increase the only the PC to 8 bit.

The second approach is not easy. We need to add a page register. For this we have to remap on of the OpCodes (okay you could multiplex DOUT using AOUT and get 16 registers but that would take an extra instruction each time). We could remap JNC, B to Page, B. The new Page register would set the high nibble of the PC on a jump. There would still only be 16 RAM words to play with. 

A Few Days Later

I coded the Page Register:

By adding three chips I have 256 bytes of program memory. I cannot program it with the CPU directly (they call it Harvard Architecture) so what to do? It needs some thought.

AlanX

Discussions