Skip to content

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