Sim: follow the 20260927 release

- sim.v: the coco3fpga ports changed (RED_O/GREEN_O/BLUE_O, PROBE_O/PROBE_I,
  Display_Debug) and so did the switch word (rs_swap, UART_INPUT, and the cart
  interrupt option on SWITCH[9]); mirror CoCo3.sv. SNAC inputs idle high.
- rtl/ovo.v: Verilog translation of the new rtl/OVO.vhd overlay; the
  Makefile drops the removed Mister_Video_GIMEX.v.
- PIX_CLK is now a clk_sys enable, high 2 of every 4 cycles, fed to the
  mixer's ce_pix. Capture video as video_mixer.sv does: on a clk_sys rising
  edge, one pixel per rising edge of the enable.
- New reference screenshots: the release's video timing moves the picture
  about 2 pixels; text checks unchanged.
- Commit tests/dw_boot.sh, which the dw_boot* ignore pattern was hiding.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Alan SterembergandClaude Opus 5.5 committed 2026-10-02 07:29:18 -04:00
1 parent 50d76dd489
commit 9e70212e87
12 files changed
+184 -19

No files matched your search

+12 -5
View File
@@ -433,7 +433,6 @@ static void sim_step() {
const bool c28 = !((k >> 2) & 1);
const bool c14 = !((k >> 3) & 1);
const bool sys_rise = c57 && !top->CLK_57;
const bool pix_rise = c14 && !top->CLK_14;
// 50 MHz, free-running and asynchronous to the rest, as on the board.
clk50_acc += fast_clocks ? 8730 : 4365; // step length in ps
@@ -455,6 +454,18 @@ static void sim_step() {
b_dout = top->dbg_dout;
b_rs232 = top->dbg_rs232_en;
// Video is captured the way sys/video_mixer.sv does it: on a clk_sys
// rising edge, taking the values that stand before the edge. The core's
// pixel enable (PIX_CLK) is high for 2 of every 4 clk_sys cycles; the
// mixer sees it oscillate and takes one pixel per rising edge
// (~old_ce & ce_pix), and so does this.
static bool old_ce = false;
if (top->CE_PIXEL && !old_ce) {
uint32_t colour = 0xFF000000 | (top->VGA_B << 16) | (top->VGA_G << 8) | top->VGA_R;
video.Clock(top->VGA_HB, top->VGA_VB, top->VGA_HS, top->VGA_VS, colour);
}
old_ce = top->CE_PIXEL;
bus.BeforeEval();
blk.BeforeEval(main_time);
input.BeforeEval();
@@ -531,10 +542,6 @@ static void sim_step() {
old_irqn = top->dbg_irqn;
}
if (pix_rise) {
uint32_t colour = 0xFF000000 | (top->VGA_B << 16) | (top->VGA_G << 8) | top->VGA_R;
video.Clock(top->VGA_HB, top->VGA_VB, top->VGA_HS, top->VGA_VS, colour);
}
main_time++;
}