-
Notifications
You must be signed in to change notification settings - Fork 239
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
Refactored SPI peripheral #1052
Merged
Merged
Conversation
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
Contributor
JacobPease
commented
Nov 2, 2024
- Refactored SPI peripheral based on SPI controller module. Works in tests/custom/spitest.
- Fixed enabling of TransmitFIFOReadIncrement and ReceiveFIFOWriteIncrement
- Fixed issues relating to SCLKenable and TransmitStart. Works at multiple dividers now, instead of just SckDiv = 0.
- Added changed SPI controller module. New signal TransmitStartD that starts the FSM based on SCLKenable. TransmitStart is responsible for resetting SCLKenable and loading the Transmit Shift Register.
- Fixed FSM to continue transmitting after delay.
- Refactored SPI passes regression save for hardware interlock tests.
- Fixing latches.
- Fixed lint issues.
- Fixed ShiftEdge and SampleEdge to not always include PhaseOneOffset. Before, it worked in simulation, but not on the FPGA.
- Changed the condition for TransmitStart fsm to avoid edge condition.
- Cleaned up some code. Still more work to do there.
- Wrote a script that can take hexadecimal bytes from a file and write them to an output file and an sd card.
- Added usage and help functions to write-bytes.sh
- Reverted bootloader optimizations to second iteration. Working on last optimization.
…sts/custom/spitest.
…ple dividers now, instead of just SckDiv = 0.
…tarts the FSM based on SCLKenable. TransmitStart is responsible for resetting SCLKenable and loading the Transmit Shift Register.
…Before, it worked in simulation, but not on the FPGA.
…them to an output file and an sd card.
Closed
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.