You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's desirable to access a bit of a Logic signal by another Logic. This is achievable with >> n and & Const(1), but it would be nice to just use [n] directly to generate that code for ease of use and readability.
Desired solution
Modify the overloaded operator[] on Logic so that it can accept either an int or another Logic, and appropriately generates hardware if necessary (if it's a Logic).
The text was updated successfully, but these errors were encountered:
Motivation
Sometimes it's desirable to access a bit of a
Logic
signal by anotherLogic
. This is achievable with>> n
and& Const(1)
, but it would be nice to just use[n]
directly to generate that code for ease of use and readability.Desired solution
Modify the overloaded
operator[]
onLogic
so that it can accept either anint
or anotherLogic
, and appropriately generates hardware if necessary (if it's aLogic
).The text was updated successfully, but these errors were encountered: