-
Notifications
You must be signed in to change notification settings - Fork 2
fix ai fu types mapping #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
888300a
409e490
c33674e
a14dc49
4f8fbaa
a527aa3
77690f3
7db7c5f
68a13e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| schema: spec-driven | ||
| created: 2026-02-27 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,8 @@ | |||||
| * Parses AI responses and extracts validated CGRA configurations | ||||||
| */ | ||||||
|
|
||||||
| import { getAllFunctionUnits, getUnitForInstruction, FUNCTION_UNIT_TO_INSTRUCTIONS } from '../../shared/functionalUnitMapping.js'; | ||||||
|
||||||
| import { getAllFunctionUnits, getUnitForInstruction, FUNCTION_UNIT_TO_INSTRUCTIONS } from '../../shared/functionalUnitMapping.js'; | |
| import { getAllFunctionUnits, getUnitForInstruction } from '../../shared/functionalUnitMapping.js'; |
Copilot
AI
Mar 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FUNCTION_UNIT_TO_INSTRUCTIONS is imported here but never used in this module. This will trip linting/CI in many setups and makes it harder to see what dependencies are actually required. Remove the unused import (or start using it).
Copilot
AI
Mar 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix message says "Resolved/removed invalid FU types" but it only lists entries that were not resolved (i.e., those pushed into invalidEntries). This is misleading when debugging AI config repairs. Consider splitting this into two lists (resolved instruction names vs removed invalid entries) or adjust the message to match what’s actually reported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR title/description suggest a narrow FU-types mapping fix, but this PR also adds/changes verification UI, runner executors (run_tests/synthesis), Docker image toolchain installs, and checks in large generated Verilog/Verilator artifacts. Please update the PR title/description (or split into smaller PRs) so reviewers can scope risk and intent accurately.