diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/firrtl/ir/IR.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/ir/IR.scala b/src/main/scala/firrtl/ir/IR.scala index 8f1cabf6..cdbf2fd7 100644 --- a/src/main/scala/firrtl/ir/IR.scala +++ b/src/main/scala/firrtl/ir/IR.scala @@ -329,6 +329,9 @@ abstract class GroundType extends Type { val width: Width def mapType(f: Type => Type): Type = this } +object GroundType { + def unapply(ground: GroundType): Option[Width] = Some(ground.width) +} abstract class AggregateType extends Type { def mapWidth(f: Width => Width): Type = this } |
