diff options
| author | jackkoenig | 2016-02-23 18:29:32 -0800 |
|---|---|---|
| committer | jackkoenig | 2016-02-23 18:29:32 -0800 |
| commit | 39b612b7490090d4be5a324c810c54e79b8e0736 (patch) | |
| tree | 91d6eeb4c488549656fb250fea86a9c7f033e2b0 /src/main/scala/Chisel/Bits.scala | |
| parent | 9bf707687777cc952287219c86e817e0f6a698ae (diff) | |
Emit no width instead of <?> for unknown width UInt and SInt literals and types
Diffstat (limited to 'src/main/scala/Chisel/Bits.scala')
| -rw-r--r-- | src/main/scala/Chisel/Bits.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Chisel/Bits.scala b/src/main/scala/Chisel/Bits.scala index b800644d..8f2e1b09 100644 --- a/src/main/scala/Chisel/Bits.scala +++ b/src/main/scala/Chisel/Bits.scala @@ -280,7 +280,7 @@ sealed class UInt private[Chisel] (dir: Direction, width: Width, lit: Option[ULi extends Bits(dir, width, lit) with Num[UInt] { private[Chisel] override def cloneTypeWidth(w: Width): this.type = new UInt(dir, w).asInstanceOf[this.type] - private[Chisel] def toType = s"UInt<$width>" + private[Chisel] def toType = s"UInt$width" override private[Chisel] def fromInt(value: BigInt): this.type = UInt(value).asInstanceOf[this.type] @@ -412,7 +412,7 @@ sealed class SInt private (dir: Direction, width: Width, lit: Option[SLit] = Non extends Bits(dir, width, lit) with Num[SInt] { private[Chisel] override def cloneTypeWidth(w: Width): this.type = new SInt(dir, w).asInstanceOf[this.type] - private[Chisel] def toType = s"SInt<$width>" + private[Chisel] def toType = s"SInt$width" override def := (that: Data): Unit = that match { case _: SInt => this connect that |
