diff options
| author | Richard Lin | 2017-04-13 22:59:00 -0700 |
|---|---|---|
| committer | GitHub | 2017-04-13 22:59:00 -0700 |
| commit | e07248b8f6022fafdb84f5d1c0ebe3fc90a5475a (patch) | |
| tree | f2bb938fd35651b4fc7b88cbcd20e163cc75dd2e /chiselFrontend/src/main/scala/chisel3/core/Binder.scala | |
| parent | 97902cdc53eec52aa0cd806b8cb49a0e3f2fb769 (diff) | |
Module Hierarchy Refactor (#469)
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Binder.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Binder.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Binder.scala b/chiselFrontend/src/main/scala/chisel3/core/Binder.scala index c7346dce..d872d7c6 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Binder.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Binder.scala @@ -41,24 +41,24 @@ case object LitBinder extends Binder[LitBinding] { def apply(in: UnboundBinding) = LitBinding() } -case class MemoryPortBinder(enclosure: Module) extends Binder[MemoryPortBinding] { +case class MemoryPortBinder(enclosure: UserModule) extends Binder[MemoryPortBinding] { def apply(in: UnboundBinding) = MemoryPortBinding(enclosure) } -case class OpBinder(enclosure: Module) extends Binder[OpBinding] { +case class OpBinder(enclosure: UserModule) extends Binder[OpBinding] { def apply(in: UnboundBinding) = OpBinding(enclosure) } // Notice how PortBinder uses the direction of the UnboundNode -case class PortBinder(enclosure: Module) extends Binder[PortBinding] { +case class PortBinder(enclosure: BaseModule) extends Binder[PortBinding] { def apply(in: UnboundBinding) = PortBinding(enclosure, in.direction) } -case class RegBinder(enclosure: Module) extends Binder[RegBinding] { +case class RegBinder(enclosure: UserModule) extends Binder[RegBinding] { def apply(in: UnboundBinding) = RegBinding(enclosure) } -case class WireBinder(enclosure: Module) extends Binder[WireBinding] { +case class WireBinder(enclosure: UserModule) extends Binder[WireBinding] { def apply(in: UnboundBinding) = WireBinding(enclosure) } |
