diff options
Diffstat (limited to 'src/main/scala/firrtl/ir')
| -rw-r--r-- | src/main/scala/firrtl/ir/IR.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/ir/IR.scala b/src/main/scala/firrtl/ir/IR.scala index 8124e1e6..9268865b 100644 --- a/src/main/scala/firrtl/ir/IR.scala +++ b/src/main/scala/firrtl/ir/IR.scala @@ -591,6 +591,13 @@ case object ClockType extends GroundType { def mapWidth(f: Width => Width): Type = this def foreachWidth(f: Width => Unit): Unit = Unit } +/* Abstract reset, will be inferred to UInt<1> or AsyncReset */ +case object ResetType extends GroundType { + val width = IntWidth(1) + def serialize: String = "Reset" + def mapWidth(f: Width => Width): Type = this + def foreachWidth(f: Width => Unit): Unit = Unit +} case object AsyncResetType extends GroundType { val width = IntWidth(1) def serialize: String = "AsyncReset" |
