Converting Scala types to Chisel types

apaj edited this page Sep 3, 2018 · 1 revision

Scala Boolean may be converted to Chisel Bool as follows:

val thisIsScala : Boolean
val thisIsChisel = Bool(thisIsScala)

Example usage in Rocket Chip

Clone this wiki locally
You can’t perform that action at this time.
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.
Press h to open a hovercard with more details.