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

Adding one-hot to binary helper function #456

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

vaaniarora
Copy link
Contributor

Takes a one-hot input and returns the bit position of the high bit in binary.

pyrtl/helperfuncs.py Outdated Show resolved Hide resolved
pyrtl/helperfuncs.py Outdated Show resolved Hide resolved
pyrtl/helperfuncs.py Outdated Show resolved Hide resolved
pyrtl/helperfuncs.py Outdated Show resolved Hide resolved
pyrtl/helperfuncs.py Outdated Show resolved Hide resolved
tests/test_helperfuncs.py Outdated Show resolved Hide resolved
tests/test_helperfuncs.py Outdated Show resolved Hide resolved
tests/test_helperfuncs.py Show resolved Hide resolved
pyrtl/helperfuncs.py Show resolved Hide resolved
pyrtl/helperfuncs.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.4%. Comparing base (e63b71d) to head (e9bbb0c).
Report is 1 commits behind head on development.

Additional details and impacted files
@@              Coverage Diff              @@
##           development    #456     +/-   ##
=============================================
+ Coverage         91.4%   91.4%   +0.1%     
=============================================
  Files               24      24             
  Lines             6409    6418      +9     
=============================================
+ Hits              5855    5864      +9     
  Misses             554     554             

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

@fdxmw fdxmw merged commit 4c72f2d into UCSBarchlab:development Dec 12, 2024
2 checks passed
@fdxmw fdxmw linked an issue Dec 12, 2024 that may be closed by this pull request
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.

Add a helper function to encode 1-hot to binary
2 participants