From 39b612b7490090d4be5a324c810c54e79b8e0736 Mon Sep 17 00:00:00 2001 From: jackkoenig Date: Tue, 23 Feb 2016 18:29:32 -0800 Subject: Emit no width instead of for unknown width UInt and SInt literals and types --- src/main/scala/Chisel/Bits.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/scala/Chisel/Bits.scala') 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 -- cgit v1.2.3