About the project

Goal of the project is the development and the realization of a 16 bit relay CPU. To save money and to safe space diodes are also used. The system was simulated using the game "Logic World".

Why? Just for fun...like a railway model or a RC controlled plane. And "High performace" relay computer? Well, its a 16 bit machine, thats not bad for a relay computer.

Overview

The system ist a very simple CPU using an Accu register like CPUs in the 80s.  All mathematical operations are using the Accu, also all store / load operations. And, because it is a "High Performance" relay system, the program counter has its own adder which is only able to add 1 to the program counter.

The following diagram shows an overview about the system structure:

Command set

Note: The PC_HR register is necessary, because I can not write the changed PC based on its own value plus 1 direct into the PC...

One detail is important to understand the design of the system: all registers, which are realized by "self retaining" relays, have to be cleared before any information can be stored, also before the stored information can be changed. Thats the reason why the clock of the systemis not an ordinary clock as you know it from digital systems. The clock of this system consists of 4 different pulses:

CPU structure

The control unit of the systemis using the instruction register and a state register to select the control lines, a control line timing module is setting the Clear, Input-enable and Output-enable control lines based on the clock information.

And, of course, there is not only a state register...there is also a second state register which is cleared / loaded during cycles 0 and 1. You see this detail in the structure picture and in the circuit diagram. It is the same principle than I have to use for the program counter.

The following table shows the command set of the CPU:

The CPU is able to adress the memory using 3 different adressing modes. a) LD X is loading the Accu with the dataword stored in the adress after the opcode, b) LD M(X) is loading the Accu with the data stored in the memory adress stored after the opcode, and c) LD M(M(X)) is ... yes, indirect adressing. The dataword after the opcode contains the adress where the CPU finds the adress of the dataword that will be stored in the Accu. Is adressing mode c) really necessary? Maybe not. But it makes it easier.

And, as you can see, a CALL / RET set of operations is also avaliable. No, there is no stack realized, only one subroutine level is possible. The return adress is stored in the register SR.

Status of the project

The simulation is running very well, all commands of the command set are tested. A more complex programm, a multiplication using shift operations, will be the last test of the simulation.

The circuit diagram is finished, you can find it in the design part.

And the realization is in progress, the control unit is running. For more details check the realisation part of this page. How long will it take to build the complete system? At least 1 year, but may be 2 years.

If you want to contact me...

info@relaiscomputer.at