We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaf4ef8 commit 7d49e4bCopy full SHA for 7d49e4b
.github/workflows/ci.yml
@@ -150,7 +150,7 @@ jobs:
150
151
- name: Flash bitstream
152
run: |
153
- nix run .#bitstream-load
+ DEVICE=/dev/ttySONATA_JTAG_FPGA nix run .#bitstream-load
154
155
- name: Run software tests
156
nix/bitstream.nix
@@ -61,7 +61,11 @@ in {
61
runtimeInputs = [pythonEnv pkgs.openfpgaloader];
62
text = ''
63
BITSTREAM=$(find ./ -type f -name "lowrisc_sonata_system_0.bit")
64
- openFPGALoader -c ft4232 "$BITSTREAM"
+ if [[ -n "''${DEVICE-}" ]]; then
65
+ openFPGALoader -c ft4232 -d "$DEVICE" "$BITSTREAM"
66
+ else
67
+ openFPGALoader -c ft4232 "$BITSTREAM"
68
+ fi
69
'';
70
};
71
}
0 commit comments