From 88f96fa5fa3439e4e5fa11694d05fdf033bc9a75 Mon Sep 17 00:00:00 2001 From: Myfro9 <36755290+Myfro9@users.noreply.github.com> Date: Mon, 20 Jul 2026 07:47:15 -0500 Subject: [PATCH] vivado: resolve install path from ~/skills_env.md instead of hardcoding D:\Xilinx The Vivado install root differs per machine (C:\Xilinx here, D:\Xilinx on the box these skills were written on), so every hardcoded path was already wrong on this machine. - new fpga_flash/scripts/vivado_env.py: resolves --vivado-dir > env var > VIVADO_ROOT (falling back to VIVADO_PATH) from ~/skills_env.md - gen_mcs / program_flash / check_flash_csv: --vivado-dir now optional - fpga_update/gen_update_mcs.py: same precedence for --vivado - fpga_flash / smod_atsc_dev / vivado-prj-create SKILL.md: document the lookup instead of naming a drive letter - skills_env template: VIVADO_ROOT/VIVADO_PATH are now blanks to fill in, so a new machine can't inherit a wrong default Co-Authored-By: Claude Opus 4.8 --- fpga_flash/SKILL.md | 16 +++--- fpga_flash/scripts/check_flash_csv.py | 12 ++-- fpga_flash/scripts/gen_mcs.py | 9 +-- fpga_flash/scripts/program_flash.py | 9 +-- fpga_flash/scripts/vivado_env.py | 58 ++++++++++++++++++++ fpga_update/scripts/gen_update_mcs.py | 40 +++++++++++++- smod_atsc_dev/SKILL.md | 2 +- tools-sync/references/skills_env_template.md | 3 +- vivado-prj-create/SKILL.md | 21 ++++--- 9 files changed, 138 insertions(+), 32 deletions(-) create mode 100644 fpga_flash/scripts/vivado_env.py diff --git a/fpga_flash/SKILL.md b/fpga_flash/SKILL.md index bb526b7..2eab4fa 100644 --- a/fpga_flash/SKILL.md +++ b/fpga_flash/SKILL.md @@ -52,16 +52,18 @@ python "$USERPROFILE/.claude/skills/fpga_flash/scripts/