Skip to content

ll-34 1.2

Latest

Choose a tag to compare

@dbrll dbrll released this 25 Oct 10:10
· 4 commits to main since this release

This release considerably improves conformance over the original hardware. Every
opcode was run on both machines, and logic captures of the microcode sequencing,
the ALU control, the condition codes and the trap logic were compared cycle by
cycle. The logic analyzer now probes 488 signals named after the DEC prints
(from 102 in the previous release), and its captures can be exported to VCD or
sigrok to check against the reference machine.

Architecturally, the engine and frontends are now separated, and the CLI and
WASM GUI share the same backend code. The ROMs are no longer inlined in a large
header. Instead, every ROM has its image in physical pin order
(pdp11/kd11ea/roms/M8265, M8266), as it would be read from the chip, or
programmed into a replacement ROM on the physical hardware. The CLI has been
polished, bugs were fixed, the timing calibration has "nominal" and "aged"
modes, and ll-34 can load a MACRO-11 listing, including with a custom start
address.

Complete changelog

Features

  • Timing measurements showed discrepancies between the (50-years old) reference
    hardware and nominal values from the technical manuals. ll-34 now has two
    calibration profiles: --timing nominal (default) and --timing aged.
  • Line clock frequency can be set with --rtc 50 or --rtc 60 (default).
  • The new --lst FILE loads a program from its MACRO-11 listing (like
    PDP11-GUI) and leaves the CPU halted at the .END address.
  • --start ADDR starts the CPU as the front panel START does.
  • --probe FILE runs logic analyzer commands from a file before the CPU starts,
    so a capture can begin at the first micro-cycle. Lines after arm wait for
    the capture, and exit leaves ll-34.
  • --unpaced runs as fast as the host allows, not at the reference speed.
    Useful for long tasks such as benchmarks and compilation.
  • The PDP-11 output is shown in green by default to better separate it from the
    emulator output. Set NO_COLOR to turn it off.

Peripherals

  • The conformance tests showed that the DL11-W line clock behaves differently
    from the KW11-L: INT ENB set does not interrupt by itself, the next line clock
    edge does, and INT ENB low clears the request.
  • Bugfix in the DL11: interrupt requests on the rising edge of DONE AND IE,
    cleared with IE.
  • Ctrl-P, Ctrl-E and Ctrl-L used to stop between two micro-instructions, with
    the PC past the instruction word, which would corrupt the disassembly. They
    now stop at the end of the current instruction, as the front panel HALT does.
  • KY11-LB (console): START used to begin at the address just loaded plus 2. Now
    LAD ends an EXAM or DEP sequence, so the next EXAM, DEP or START uses that
    address.

Tools

  • The logic analyzer now lists its signals by sheet or chip, has a search
    function, and completes signals with Tab.
  • Captures can be exported as VCD and sigrok files for close inspection and
    comparison with the physical hardware.
  • Various UX improvements: most important information such as logic analyzer
    status or the PC value are shown in the prompts.
  • Byte single operand instructions, TRAP, MTPS and MFPS are now decoded properly
    by the disassembler.
  • q in the debugger or the logic analyzer goes back to where the user was.

Conformance

  • The conformance/ directory contains logic analyzer captures from the
    original machine (MPC lines, ALU control, condition codes, trap decode),
    self-checking programs (every opcode, odd destination registers, memory
    management, traps and interrupts), DEC diagnostic results and timing benches.
    run.sh then runs tests against the physical reference.
  • ll-34 passes the DEC diagnostics FKAAC0, FKABD1, FKACA0 and FKTHB0, like the
    machine, and unlike SimH.
  • A few corrections found with the conformance tests:
    • E63: BPT, IOT and reserved opcodes go from MPC 015 to 000 directly.
    • E80: an odd address is legal only for a byte operand cycle (SSMUX 11). SWAB
      and destination pointer fetches now take the odd address trap.
    • E83 on the data path board: read-only abort also on DATIP.
    • Memory management aborts are decided when the transfer starts, with the bus
      cycle type, not when the address is loaded.

Misc

  • Simulated time is kept across a CPU reset.
  • Filesystem cleanup: PDP-11 sources grouped under pdp11/, demos under
    demos/ and frontends in frontends/.