Class used to write conditional operation on Data value
Class used to write conditional operation on Data value
val res = myBool ? myBits1 | myBits2
Class used to write conditional operation on Enumeration value
Class used to write conditional operation on Enumeration value
val res = myBool ? myEnum1 | myEnum2implicit conversion is used to send SpinalEnumElement
Logical AND operator
Logical AND
Logical AND
a Bool assign with the AND result
val result = myBool1 && myBool2
Conditional operation for Enumeration value
Conditional operation for Data value
Logical XOR operator
Cast a Bool to an Bits of a given width
Cast a Bool to an Bits of a given width
the width of the Bits
a Bits data of a given length initialize to this
Cast a Bool to an SInt
Cast a Bool to an SInt
a SInt data
mySInt := myBool.asSInt
Cast a Bool to an UInt of a given width
Cast a Bool to an UInt of a given width
the width of the UInt
an UInt data of a given length initialize to this
myUInt := myBool.asUInt(8 bits)
Cast a Bool to an UInt
Cast a Bool to an UInt
an UInt data
myUInt := myBool.asUInt
this is assigned to False
this is assigned to False when cond is True
Edge detection
Edge detection of this with an initial value
Edge detection of this with an initial value
the initial value
a Bool
val res = myBool.edge(False)
Falling edge detection
Falling edge detection of this with an initial value
Falling edge detection of this with an initial value
the initial value
a Bool
val res = myBool.fall(False)
Rising edge detection
Rising edge detection of this with an initial value
Rising edge detection of this with an initial value
the initial value
a Bool
val res = myBool.rise(False)
this is assigned to True
this is assigned to True when cond is True
this is assigned to True when cond is True
a Bool condition
this is assigned to True when cond is True
myBool.setWhen(cond)
Logical NOT
Logical NOT
a Bool assign with the NOT result
val result = !myBool1
Inverse bitwise operator
Logical OR operator
Logical OR
Logical OR
a Bool assign with the OR result
val result = myBool1 || myBool2
The Bool type corresponds to a boolean value (True or False)
Bool Documentation