# Work Done 2026-04-21

## Source change

Created copied working tree:

```text
/home/ranko/Documents/Edge/edge-minimigaga-vga-hdmi-osd-joy-swap-ps2-hotplug-incremental-route/edge-minimigaga-vga-hdmi
```

Starting point:

```text
/home/ranko/Documents/Edge/edge-minimigaga-vga-hdmi-osd-joy-swap-incremental-route/edge-minimigaga-vga-hdmi
```

Changed:

```text
rtl/minimig/userio_ps2mouse.v
rtl/minimig/ciaa_ps2keyboard.v
fpga/edgeartix7/edgeartix7_v0/xc7a35t/ps2.xdc
```

The fix is in Verilog and FPGA constraints. No ARM firmware files were changed.

## Lint checks

Commands:

```bash
verilator --lint-only --no-timing -Wno-fatal --top-module userio_ps2mouse rtl/minimig/userio_ps2mouse.v
verilator --lint-only --no-timing -Wno-fatal --top-module ciaa_ps2keyboard rtl/minimig/ciaa_ps2keyboard_map.v rtl/minimig/ciaa_ps2keyboard.v
```

Result:

- Mouse lint: clean.
- Keyboard lint: completed with pre-existing warnings in `ciaa_ps2keyboard_map.v`.

## Incremental build

Build command:

```bash
/tools/Xilinx/2025.2/Vivado/bin/vivado -mode batch -source tcl/build_edge_bitstream_incremental_from_stable.tcl
```

Incremental reference:

```text
/home/ranko/Documents/Edge/edge-minimigaga-vga-hdmi-osd-joy-incremental-stable-route/edge-minimigaga-vga-hdmi/project_1/project_1.runs/impl_1/minimig_edge_top_routed.dcp
```

Vivado result:

```text
impl_1 status: write_bitstream Complete!
```

Final timing met:

```text
WNS 0.256 ns
TNS 0.000 ns
WHS 0.016 ns
THS 0.000 ns
```

## JTAG test

Programmed over JTAG with the release-local script:

```bash
./flash_tools/program_edge_release.sh
```

Vivado reported:

```text
End of startup status: HIGH
SUCCESS: programmed bitstream into xc7a35t_0
```

SPI flashing was not run during this step. The release-local flash script is included:

```bash
./flash_tools/flash_edge_release.sh
```

## Release files

- `minimig_edge_top.bit`
- `minimig_edge_top.bin`
- `post_build_timing_summary.rpt`
- `place_incremental_reuse.rpt`
- `route_incremental_reuse.rpt`
- `CHANGELOG.txt`
- `FLASHING_LINUX.txt`
- `PS2_HOTPLUG_2026-04-21.txt`
- `ROUTING_STABILITY_NOTE_2026-04-21.txt`
- `WORK_DONE_2026-04-21.txt`
- `SHA256SUMS.txt`
- `flash_tools/program_edge_release.sh`
- `flash_tools/flash_edge_release.sh`
