Skip to content
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

Add script to reconfigure AFCv3.1 and AFCv4.0 FPGA via XVC #173

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

augustofg
Copy link
Contributor

This script assumes that openocd with XVC support is installed and in PATH.

@gustavosr8
Copy link
Contributor

Have you tested it? I don't really understand the scansta and boot commands (maybe it would be nice to add a comment explaining them), but the bash part seems good to me.

@augustofg
Copy link
Contributor Author

Have you tested it? I don't really understand the scansta and boot commands (maybe it would be nice to add a comment explaining them), but the bash part seems good to me.

Yes, I've tested it. The scansta SVF file contains the JTAG commands to change the SCANSTA111 JTAG switch to select the FPGA (necessary for AFCv3.1 cards). The boot SVF file has the JTAG commands to make the FPGA reconfigure itself from the non-volatile SPI flash.

bin/sirius-script-afc-boot-from-flash.sh Show resolved Hide resolved
bin/sirius-script-afc-boot-from-flash.sh Outdated Show resolved Hide resolved
@augustofg augustofg force-pushed the afc-boot-from-flash branch from 1a01893 to 2342a29 Compare January 7, 2025 12:31
@anacso17 anacso17 requested a review from ericonr January 7, 2025 21:24
Copy link

@ericonr ericonr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to document in the commit that this was based on the scripts from fpga-programming, and also explain why it diverges in some points.

The FREQUENCY in the svf scripts is different, the sfp_jtag line as well, and some further device properties (though part of those could have been folded into cpld/xilinx-xc7.cfg?)

@ericonr
Copy link

ericonr commented Jan 13, 2025

As discussed, the scripts from fpga-programming will be updated to match the ones here.

(though some parts, such as frequency setting, will probably be removed)

augustofg and others added 2 commits January 16, 2025 09:18
This script assumes that openocd with XVC support is installed and in
PATH.
@augustofg augustofg force-pushed the afc-boot-from-flash branch from ddf5da6 to f40e263 Compare January 16, 2025 12:18
@augustofg
Copy link
Contributor Author

FREQUENCY command removed from SVF files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants