-
Notifications
You must be signed in to change notification settings - Fork 199
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
Vivado pgm fails ugly if no device is connected #67
Comments
I wonder if this might work --- a/edalize/templates/vivado/vivado-program.tcl.j2
+++ b/edalize/templates/vivado/vivado-program.tcl.j2
@@ -14,7 +14,11 @@ connect_hw_server
# Find the first target and device that contains a FPGA $part.
set hw_device_found 0
-foreach { hw_target } [get_hw_targets] {
+if {[catch get_hw_targets hw_targets]} {
+ exit 1
+}
+
+foreach hw_target $hw_targets {
puts "INFO: Trying to use hardware target $hw_target"
current_hw_target $hw_target
Don't have access to a board right now to test the working case but it seems to fail nicer at least :) |
I can give it a try in the new year. |
Are we happy with it now? |
Is there any progress on this issue? The generation of a bitstream file without the need to program a connected device would be nice. |
I agree. In hindsight it was a questionable choice to try and program boards by default and most of the new FPGA backends don't have this functionality. In the long run I think there should be some extra config in the target sections to define how and if the board should be programmed. There's also some more thoughts about this here. Oh, wait a minute. The easiest thing you can do right now is to add |
Ok, that helps for the moment. Thanks a lot for the hint. |
If no device is connected, we get this error message. We should tidy it up to be more helpful and less of a stacktrace.
I thought
-notrace
should have taken care of thewhile executing...
part. But perhaps this is because it's a nested error? Pulling this anyway and perhaps there are some more improvements to be done later onOriginally posted by @olofk in #65 (comment)
The text was updated successfully, but these errors were encountered: