forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[i2c,dif] Test i2c dif clock stretching cycle bounds
The i2c block requires a minimum value (for the current setup, at least 4 cycles) for the SCL high and low time in order for clock stretching to function. This functionality was previously added to the DIF, and this commit updates the relevant unit tests to also check for these conditional cases. Modified input clock periods are used that have been calculated to execute minimum boundary branch cases, and a static assertion before the test ensures that these stay relevant. Signed-off-by: Alex Jones <[email protected]>
- Loading branch information
1 parent
752d5ed
commit 2dd2bfe
Showing
3 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
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