-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For Grapefruit and Cosmo, the Spartan-7 FPGA is used as a memory-mapped peripheral once its bitstream is loaded. It's important that it not die or be reset, because that will be Very Confusing for any tasks writing directly into its memory space. This PR moves loading that FPGA into a standalone task, separate from `grapefruit-seq` (and the eventual `cosmo-seq`). The new task is infallible once it enters the Idol runtime loop, and can provide unforgeable tokens that prove the FPGA was loaded; eventually, I'd like for FPGA-based peripherals to take those tokens in their constructors. The code changes in this PR are mostly reorganization and boilerplate, pulling stuff from `grapefruit-seq` into `drv-spartan7-loader` and writing `drv-spartan7-loader-api` / Idol files. Tested on Grapefruit (standalone).
- Loading branch information
Showing
15 changed files
with
474 additions
and
209 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.