diff options
| author | Stephen Twigg | 2016-04-27 17:19:44 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2016-05-04 01:38:33 -0700 |
| commit | f3ea8f1f7539d4afb50555df28dd16562c0ee256 (patch) | |
| tree | 30d640acfee45ecb34d31018242b5c1615314a5e /src/main/scala/Chisel/Module.scala | |
| parent | 2b5045b3665446430e0d522087ce2af5773dc426 (diff) | |
clock|reset to _clock|_reset, added explanatory comment
@aswaterman closes #156
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]() |
