Fix device ID validation bound, refactor COE injection, fix typos and type annotations#606
Draft
Copilot wants to merge 2 commits into
Draft
Fix device ID validation bound, refactor COE injection, fix typos and type annotations#606Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…annotations, spelling corrections, and test mock fix Agent-Logs-Url: https://github.com/VoltCyclone/PCILeechFWGenerator/sessions/4af478b0-41d8-4479-959d-0a8f53d36fe0 Co-authored-by: ramseymcgrath <2006510+ramseymcgrath@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix device ID validation to allow 0x0000
Fix device ID validation bound, refactor COE injection, fix typos and type annotations
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several correctness, maintainability, and code-quality issues across the device config, file manager, and Vivado utilities modules.
Changes
src/device_clone/device_config.py0x0001→0x0000;0x0000is a valid PCI device ID per specsrc/file_management/file_manager.py.coeinjection block fromcopy_ip_filesinto_inject_generated_coe_files— separates "copy templates" from "overwrite with generated files".coecfgspace dword layout (DDDDVVVVat offset 0x00) and why the hex string is split at[0:4]/[4:8]src/vivado_handling/build_state_cleaner.pyseen: set→seen: set[Path]src/vivado_handling/vivado_utils.py_VIVADOct_version→_vivado_detect_version; old name retained as a backward-compatible aliasVIVADOction→detectionin comment anddebug_vivado_searchdocstring/printtests/test_file_manager.pytest_bug528_coe_files_overwrite_template_with_device_idswas callingmock_repo_manager.get_board_pathon the class mock rather than the instance; fixed by routing throughmock_repo_manager_class.return_valueOriginal prompt