Skip to content
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

Introduce mode to trust inertial writes #3875

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

ktbarrett
Copy link
Member

@ktbarrett ktbarrett commented May 1, 2024

Closes #3544.

Just read the documentation. This provides better behavior and performance where it will work.

TODO

  • fix tests for commercial sims

Copy link

codecov bot commented May 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.63%. Comparing base (3fd24f5) to head (6f3373f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3875      +/-   ##
==========================================
- Coverage   72.65%   72.63%   -0.03%     
==========================================
  Files          49       50       +1     
  Lines        8055     8060       +5     
  Branches     2221     2208      -13     
==========================================
+ Hits         5852     5854       +2     
+ Misses       1699     1681      -18     
- Partials      504      525      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ktbarrett ktbarrett force-pushed the read-write-stuff branch 4 times, most recently from 46c7ae9 to a2f2a35 Compare May 2, 2024 04:11
@ktbarrett ktbarrett marked this pull request as ready for review May 2, 2024 04:12
@ktbarrett
Copy link
Member Author

  • Add test for COCOTB_TRUST_INERTIAL_WRITES

@ktbarrett ktbarrett requested a review from a team May 2, 2024 04:13
@ktbarrett ktbarrett force-pushed the read-write-stuff branch 3 times, most recently from 1862ddc to ed0d29c Compare May 7, 2024 05:25
@ktbarrett ktbarrett force-pushed the read-write-stuff branch 3 times, most recently from a3d8379 to e737666 Compare May 8, 2024 16:17
@ktbarrett
Copy link
Member Author

Giving up on Riviera's VHPI. Their scheduler has some serious issues.

@ktbarrett
Copy link
Member Author

ktbarrett commented May 8, 2024

  • Default the flag for simulators it always works.
  • Add documentation on how to test simulators to see if it works.

docs/source/building.rst Outdated Show resolved Hide resolved
@ktbarrett ktbarrett force-pushed the read-write-stuff branch 2 times, most recently from 46905ad to b309b8e Compare May 10, 2024 04:50
@ktbarrett
Copy link
Member Author

ktbarrett commented May 11, 2024

Still need to add default to runner. Fixed.

@ktbarrett ktbarrett requested a review from a team May 16, 2024 01:39
@ktbarrett
Copy link
Member Author

Waiting on #3895.

@ktbarrett
Copy link
Member Author

Unblocked.

docs/source/building.rst Outdated Show resolved Hide resolved
docs/source/newsfragments/3873.feature.rst Outdated Show resolved Hide resolved
tests/test_cases/test_cocotb/test_edge_triggers.py Outdated Show resolved Hide resolved
Behavior and performance optimization by trusting inertial writes in the
VPI/VHPI/FLI rather than mimicing that behavior by applying writes in
the ReadWrite callback.

Add a couple tests for write scheduling behavior.
@ktbarrett ktbarrett merged commit 5567157 into cocotb:master Jun 8, 2024
28 of 29 checks passed
@ktbarrett ktbarrett deleted the read-write-stuff branch June 8, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do we really need to wait until ReadWrite to apply writes if writes are inertial?
2 participants