diff options
| author | Adam Izraelevitz | 2016-04-27 13:30:14 -0700 |
|---|---|---|
| committer | jackkoenig | 2016-05-10 14:44:52 -0700 |
| commit | 4e784786622496a4447513f1b17dd2ed13fa3e01 (patch) | |
| tree | 4427ce0dbadb79a763073347e3df39a85f7378ed /src/main/scala/firrtl/WIR.scala | |
| parent | 72e6e928d3596ce04cecfff22c17ce606730fc26 (diff) | |
Added pad widths to eliminate all implicit width extending
Diffstat (limited to 'src/main/scala/firrtl/WIR.scala')
| -rw-r--r-- | src/main/scala/firrtl/WIR.scala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/WIR.scala b/src/main/scala/firrtl/WIR.scala index cdac2ca5..bb555112 100644 --- a/src/main/scala/firrtl/WIR.scala +++ b/src/main/scala/firrtl/WIR.scala @@ -59,8 +59,15 @@ case class WInvalid() extends Expression { def tpe = UnknownType() } case object EmptyExpression extends Expression { def tpe = UnknownType() } case class WDefInstance(info:Info,name:String,module:String,tpe:Type) extends Stmt with IsDeclaration -case object ADDW_OP extends PrimOp +// Resultant width is the same as the maximum input width +case object ADDW_OP extends PrimOp +// Resultant width is the same as the maximum input width case object SUBW_OP extends PrimOp +// Resultant width is the same as input argument width +case object DSHLW_OP extends PrimOp +// Resultant width is the same as input argument width +case object SHLW_OP extends PrimOp + object WrappedExpression { def apply (e:Expression) = new WrappedExpression(e) |
