feat(fpga): gen-xdc command + XDC profile integration#394
Merged
Conversation
Add `t27c gen-xdc <profile>` command that generates nextpnr-compatible XDC constraints from board profiles (minimal/full). Refactor fpga-build to use xdc_for_profile() instead of hardcoded XDC strings. - t27c gen-xdc minimal — 12 prjxray-verified pins + clock - t27c gen-xdc full — 16 pins (LED+UART+SPI) + clock - --output flag writes to file instead of stdout - fpga-build --profile minimal/full now uses shared xdc_for_profile() - E2E bitstream unchanged (3,822,696 bytes) Closes #393
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.
Summary
Add
t27c gen-xdc <profile>command that generates nextpnr-compatible XDC constraints from board profiles. Refactorsfpga-build --profileto use sharedxdc_for_profile()instead of hardcoded XDC strings.Closes #393
Changes
t27c gen-xdc <profile>CLI command (--outputoptional)PinAssignment/ClockAssignmentstructs for pin dataxdc_qmtech_minimal()— 12 prjxray-verified pins + clockxdc_qmtech_full()— 16 pins (LED+UART+SPI) + clockemit_xdc()— generic XDC emitterfpga-build --profilenow callsxdc_for_profile()instead of inline XDCTest plan
t27c gen-xdc minimal— 13 lines outputt27c gen-xdc full— 17 lines outputt27c gen-xdc minimal --output /tmp/test.xdc— writes filet27c fpga-build --profile minimal— E2E bitstream unchanged (3,822,696 bytes)