From f3ea8f1f7539d4afb50555df28dd16562c0ee256 Mon Sep 17 00:00:00 2001 From: Stephen Twigg Date: Wed, 27 Apr 2016 17:19:44 -0700 Subject: clock|reset to _clock|_reset, added explanatory comment @aswaterman closes #156 --- src/main/scala/Chisel/Module.scala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main/scala/Chisel/Module.scala') 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]() -- cgit v1.2.3