diff options
| author | Donggyu Kim | 2016-05-10 17:06:10 -0700 |
|---|---|---|
| committer | Donggyu Kim | 2016-05-10 17:06:10 -0700 |
| commit | 3ae577bc710b3767f47403a3d055e84815a30043 (patch) | |
| tree | 8f973cad5b658dd6333f975f2632f3f668c9a348 /chiselFrontend/src | |
| parent | 84de04606bc972bd6a83f67913a0e30c4c46ee5e (diff) | |
Some -> Option
Option(null) returns None, but Some(null) returns Some(null)
Diffstat (limited to 'chiselFrontend/src')
| -rw-r--r-- | chiselFrontend/src/main/scala/Chisel/Module.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chiselFrontend/src/main/scala/Chisel/Module.scala b/chiselFrontend/src/main/scala/Chisel/Module.scala index 3e839cac..62e907b6 100644 --- a/chiselFrontend/src/main/scala/Chisel/Module.scala +++ b/chiselFrontend/src/main/scala/Chisel/Module.scala @@ -40,9 +40,9 @@ abstract class Module( extends HasId { // _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)) + def this(_clock: Clock) = this(Option(_clock), None) + def this(_reset: Bool) = this(None, Option(_reset)) + def this(_clock: Clock, _reset: Bool) = this(Option(_clock), Option(_reset)) private[Chisel] val _namespace = Builder.globalNamespace.child private[Chisel] val _commands = ArrayBuffer[Command]() |
