Commit Graph
14 Commits
Author SHA1 Message Date
Alan SterembergandClaude Opus 5.5 874f4f3083 Add Verilator simulation (ImGui + headless)
verilator/ runs the core on the host with the shared FM-7 / Apple-IIgs sim
framework: windowed (ImGui/SDL2) or --headless, typing on a frame schedule,
screenshots, text-screen dump, 6809 disassembly trace, floppy/SDC/cart/cassette,
and RS-232 Pak serial debugging (TXD decoder, RXD driver, pty bridge, ACIA
trace) with a minimal DriveWire server and a script to run the real FujiNet
daemon against the sim. See verilator/README.md.

- The VHDL the build uses (ROMs, RAMs, font) is converted to Verilog in
  verilator/rtl/; the VHDL CPU is not instantiated (CoCo3_CYC_ACC_6809).
- sdram2.sv is simulated with its own controller logic and an SDR chip model.
- run_tests.sh: boot, keyboard, disk, WIDTH 80 and HSCREEN tests, judged on
  the text screen and byte-for-byte against test-ref/ screenshots.

rtl/wd1793.sv: spt_addr and buff_wr are declared at module scope instead of
inside generate blocks. They are assigned outside those blocks; Quartus
accepted it, Verilator rejected spt_addr and silently split buff_wr into a
separate net. No change on the FPGA (FM-7 made the same fix).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-02 07:15:44 -04:00
Alan SterembergandClaude Opus 5.5 aae1ceabf1 RS-232 Pak: decode in any MPI slot; clock the receiver from the baud generator
Two bugs kept the FujiNet HDB-DOS SY6551 carts from working:

- $FF68-$FF6B were decoded only when the Multi-Pak I/O select was slot 1
  (MPI_SCS == 0), which the OSD cannot select. With the cart in slot 3 the
  6551 was unreachable: HDB-DOS polled status forever and sent nothing. On a
  real CoCo the SCS line covers only $FF40-$FF5F and the RS-232 Pak decodes
  $FF68 itself, so it now answers in any slot.

- With CTL bit 4 = 0 ("external receive clock") the receiver ran off the fixed
  1.8475 MHz enable, i.e. 115,200 baud. HDBDW3L3_19200.CCC writes CTL=$0F, so
  it transmitted at 19,200 and received at 115,200 -- every DriveWire sector
  failed its checksum. The receiver now uses the baud generator (RX_CLK =
  TX_CLK); unchanged for CTL=$1x and for baud select 0.

Verified in the Verilator sim against the real FujiNet daemon (FujiNet-PC):
the L3 cart at 19,200 loads FujiNet CONFIG with no checksum errors.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-02 07:15:44 -04:00
Alan Steremberg 8cb1f96855 fix 2023-02-24 15:09:40 -08:00
Alan Steremberg 6708a8632f updated sys yc 2023-02-24 15:00:43 -08:00
Alan Steremberg a8014eae0b added first version of overview 2022-02-10 11:20:53 -08:00
Alan Steremberg 4c9526079e removed ci - moved to official system 2021-12-25 16:24:58 -08:00
Alan Steremberg 4cc5cb5344 Made tape sounds louder 2021-12-25 16:08:45 -08:00
Alan Steremberg 755369c3f7 fixed cassette and added dpad
CI Build / build (push) Canceled after 0s
2021-12-25 15:40:40 -08:00
Alan Steremberg 299e4c43af added workflow 2021-12-25 15:07:17 -08:00
Alan Steremberg aa42fa4241 whitespace 2021-12-25 15:05:43 -08:00
Alan Steremberg 14fbee7dbe release 2021-12-21 17:06:17 -08:00
Alan Steremberg f82a38d2c7 fixes 2021-12-21 17:02:28 -08:00
Alan Steremberg 65355b70a9 added readme 2021-12-21 16:02:51 -08:00
Alan Steremberg f00b53c0f3 first check in 2021-12-21 16:01:35 -08:00