From e22abf5195285560e1da133ee993f2043fe61961 Mon Sep 17 00:00:00 2001 From: Vasilev Dmitrii Date: Sun, 4 Oct 2026 22:36:11 +0700 Subject: [PATCH] fix(ci): give fpga-hslm Yosys the embedding_weights.mem it reads embedding_lookup.v does $readmemb("embedding_weights.mem") relative to Yosys's working directory, fpga/openxc7-synth. 6f6840d52 (2026-03-18) deleted the file there; e8fa551a8 restored it byte-identically (blob 668eaee9) but only as fpga/weights/embedding_weights.mem. Both runs since, 24625363076 (2026-04-19) and 37212434310 (the #862 audit dispatch), fail in Yosys with "Can not open file `embedding_weights.mem` for $readmemb." Copy it in before synthesis, and trigger on it and on this workflow. Refs #862 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/fpga-hslm-bitstream.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/fpga-hslm-bitstream.yml b/.github/workflows/fpga-hslm-bitstream.yml index 338366c9d4..7d629fd093 100644 --- a/.github/workflows/fpga-hslm-bitstream.yml +++ b/.github/workflows/fpga-hslm-bitstream.yml @@ -19,6 +19,8 @@ on: - 'fpga/openxc7-synth/ternary_rmsnorm.v' - 'fpga/openxc7-synth/embedding_lookup.v' - 'fpga/openxc7-synth/argmax_unit.v' + - 'fpga/weights/embedding_weights.mem' + - '.github/workflows/fpga-hslm-bitstream.yml' jobs: bitstream: @@ -50,6 +52,10 @@ jobs: echo "00000000000000000000000000000000" > tmu_w_wide.mem echo "00000000000000000000000000000000" > tmu_w_up_wide.mem echo "00000000000000000000000000000000" > tmu_w_down_wide.mem + # embedding_lookup.v reads embedding_weights.mem from Yosys's working directory. The file + # left this directory in 6f6840d52 (2026-03-18) and came back, byte-identical, only as + # fpga/weights/embedding_weights.mem (e8fa551a8); Yosys has failed on it since (#862). + cp ../weights/embedding_weights.mem . - name: Pull openXC7 Docker image run: |