diff options
Diffstat (limited to 'src/main/scala/Chisel/Module.scala')
| -rw-r--r-- | src/main/scala/Chisel/Module.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/scala/Chisel/Module.scala b/src/main/scala/Chisel/Module.scala index 738863e3..3e839cac 100644 --- a/src/main/scala/Chisel/Module.scala +++ b/src/main/scala/Chisel/Module.scala @@ -38,9 +38,11 @@ object Module { abstract class Module( override_clock: Option[Clock]=None, override_reset: Option[Bool]=None) extends HasId { - def this(clock: Clock) = this(Some(clock), None) - def this(reset: Bool) = this(None, Some(reset)) - def this(clock: Clock, reset: Bool) = this(Some(clock), Some(reset)) + // _clock and _reset can be clock and reset in these 2ary constructors + // once chisel2 compatibility issues are resolved + def this(_clock: Clock) = this(Some(_clock), None) + def this(_reset: Bool) = this(None, Some(_reset)) + def this(_clock: Clock, _reset: Bool) = this(Some(_clock), Some(_reset)) private[Chisel] val _namespace = Builder.globalNamespace.child private[Chisel] val _commands = ArrayBuffer[Command]() |
