# Joystick Physical Port Swap - 2026-04-19

Base tree:

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

New working tree:

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

## Change

The physical Joy1 and Joy2 connector assignments were swapped in:

`fpga/edgeartix7/edgeartix7_v0/xc7a35t/joystick.xdc`

No joystick logic was changed in Verilog. The internal mapping remains:

- `pin9..pin14` feed internal `joya` / Minimig Joy1.
- `pin15..pin20` feed internal `joyb` / Minimig Joy2.

The XDC now maps `pin9..pin14` to the physical package pins that previously belonged to the second joystick connector, and maps `pin15..pin20` to the physical package pins that previously belonged to the first joystick connector.

## Build Stability

This tree keeps the incremental build flow. The default incremental reference checkpoint was updated to the last user-tested stable route:

`/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`

This is intentional because the Artix-7 design is highly utilized and has shown route-sensitive WHDLoad stability. Incremental implementation should preserve as much of the previously stable placement and routing as Vivado allows.
