diff options
| author | Donggyu Kim | 2016-09-08 22:53:40 -0700 |
|---|---|---|
| committer | Donggyu Kim | 2016-09-13 17:33:51 -0700 |
| commit | 41c78f9854124986e812fd7c7363d404fdb64b0b (patch) | |
| tree | 15b3983afce32430c2a333459286e77dc106cd56 /src/main/scala/firrtl/passes/RemoveCHIRRTL.scala | |
| parent | 1f90624762c419ab8e2ac51f9ddbca58fff07815 (diff) | |
use BoolType for UIntType(IntWidth(1))
Diffstat (limited to 'src/main/scala/firrtl/passes/RemoveCHIRRTL.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/RemoveCHIRRTL.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/passes/RemoveCHIRRTL.scala b/src/main/scala/firrtl/passes/RemoveCHIRRTL.scala index ca860ab6..b71c0dc3 100644 --- a/src/main/scala/firrtl/passes/RemoveCHIRRTL.scala +++ b/src/main/scala/firrtl/passes/RemoveCHIRRTL.scala @@ -174,7 +174,7 @@ object RemoveCHIRRTL extends Pass { case Some(p) => g match { case FEMALE => has_write_mport = true - if (p.rdwrite) has_readwrite_mport = Some(SubField(p.exp, "wmode", UIntType(IntWidth(1)))) + if (p.rdwrite) has_readwrite_mport = Some(SubField(p.exp, "wmode", BoolType)) SubField(p.exp, p.female, tpe) case MALE => SubField(p.exp, p.male, tpe) |
