summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main/scala/chisel3/core/Data.scala
diff options
context:
space:
mode:
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Data.scala')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/Data.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Data.scala b/chiselFrontend/src/main/scala/chisel3/core/Data.scala
index c17672ff..30e1bf97 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/Data.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/Data.scala
@@ -304,7 +304,7 @@ abstract class Data extends HasId {
* This performs the inverse operation of fromBits(Bits).
*/
@deprecated("Best alternative, .asUInt()", "chisel3")
- def toBits(): UInt = do_asUInt(DeprecatedSourceInfo)
+ def toBits(implicit compileOptions: CompileOptions): UInt = do_asUInt(DeprecatedSourceInfo, compileOptions)
/** Does a reinterpret cast of the bits in this node into the format that provides.
* Returns a new Wire of that type. Does not modify existing nodes.
@@ -336,7 +336,7 @@ abstract class Data extends HasId {
*/
final def asUInt(): UInt = macro SourceInfoTransform.noArg
- def do_asUInt(implicit sourceInfo: SourceInfo): UInt
+ def do_asUInt(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): UInt
// firrtlDirection is the direction we report to firrtl.
// It maintains the user-specified value (as opposed to the "actual" or applied/propagated value).
@@ -411,7 +411,7 @@ sealed class Clock extends Element(Width(1)) {
/** Not really supported */
def toPrintable: Printable = PString("CLOCK")
- override def do_asUInt(implicit sourceInfo: SourceInfo): UInt = pushOp(DefPrim(sourceInfo, UInt(this.width), AsUIntOp, ref))
+ override def do_asUInt(implicit sourceInfo: SourceInfo, connectCompileOptions: CompileOptions): UInt = pushOp(DefPrim(sourceInfo, UInt(this.width), AsUIntOp, ref))
private[core] override def connectFromBits(that: Bits)(implicit sourceInfo: SourceInfo,
compileOptions: CompileOptions): Unit = {
this := that