Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/src/main/scala-3/chisel3/BitsIntf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -597,4 +597,11 @@ private[chisel3] trait BoolIntf extends ToBoolable { self: Bool =>
def asClock(using SourceInfo): Clock = _asClockImpl

def asAsyncReset(using SourceInfo): AsyncReset = _asAsyncResetImpl

/** Logical implication
*
* @param that a boolean signal
* @return [[!this || that]]
*/
def implies(that: Bool): Bool = (!this) | that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not duplicate the implementation, instead we should put the single implementation in a private method that is called here (like the functions above). This also should have SourceInfo.

}
Loading