1
0
mirror of https://github.com/aap/pdp6.git synced 2026-01-13 15:27:46 +00:00
2016-11-15 23:57:55 +01:00
2016-11-08 00:09:55 +01:00
2016-11-08 00:09:55 +01:00
2016-11-08 00:09:55 +01:00
2016-11-15 23:57:55 +01:00
2015-10-30 19:40:17 +01:00
2016-11-01 01:00:02 +01:00

PDP-6 Simulator

This project is an attempt to simulate the PDP-6 computer with front panel and blinkenlights on the logic level. The maintenance manual has flow charts, schematics and explanations: Volume1 Volume2

Screenshot of the front panel

Code

The code is more or less a transcription of the schematics into C. This means you will not understand it unless you're familiar with the maintenance manual. Pulses are represented as functions, when a pulse triggers another pulse it does so by the nextpulse function which adds a pulse to the list of next pulses. In the main cpu loop the list of current pulses is iterated and each pulse is called, then (after checking some external signals) the current and next pulse lists are swapped and the process begins anew. The timing was not accurately modeled and there is room for improvement. Due to the inexact timing the hardware connections (through the memory and IO bus) were not implemented too accurately. This may change in the future.

Building

The supplied makefile assumes gcc (there are flags to silence some stupid warnings). Otherwise you need SDL and pthread.

Running

The cpu (apr), console tty and paper tape/punch are implemented. There are no other external devices yet. The only things missing from the cpu is the repeat key mechanism.

File tree

  • src source for the emulator
  • art everything graphical
  • code some test code for the PDP-6
  • misc some misc. and old stuff
  • tools tools like an assembler and linker

To do

  • repeat and maint. switches
  • test thoroughly!
  • devices
  • timing
Description
PDP-6 Emulator and Verilog Simulation
Readme MIT 3.1 MiB
Languages
C 79%
PHP 9.1%
Pawn 6.8%
Pascal 3.7%
Assembly 0.6%
Other 0.8%