summaryrefslogtreecommitdiff
path: root/core/src/main/scala/chisel3/Module.scala
diff options
context:
space:
mode:
authorAditya Naik2024-08-06 07:51:25 -0700
committerAditya Naik2024-08-06 07:51:25 -0700
commit315923aa09101f6c6ffc58a445bd7411b3b23fca (patch)
treeb8533ceaf9b291a718a4b7f505cf5d4b1f0e7803 /core/src/main/scala/chisel3/Module.scala
parent276d7261208d640ea57a48cb592775c677726fb0 (diff)
Fix more misc fileschisel6-scala3-0.1
Diffstat (limited to 'core/src/main/scala/chisel3/Module.scala')
-rw-r--r--core/src/main/scala/chisel3/Module.scala14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/main/scala/chisel3/Module.scala b/core/src/main/scala/chisel3/Module.scala
index 212215ab..4db632bf 100644
--- a/core/src/main/scala/chisel3/Module.scala
+++ b/core/src/main/scala/chisel3/Module.scala
@@ -31,16 +31,16 @@ object Module {
if (Builder.currentModule.isDefined && module._component.isDefined) {
// Class only uses the Definition API, and is not allowed here.
module match {
- case _: Class[_] => throwException("Module() cannot be called on a Class. Please use Definition().")
+ // case _: Class[_] => throwException("Module() cannot be called on a Class. Please use Definition().")
case _ => ()
}
val component = module._component.get
component match {
- case DefClass(_, name, _, _) =>
- Builder.referenceUserContainer match {
- case rm: RawModule => rm.addCommand(DefObject(module, name))
- }
+ // case DefClass(_, name, _, _) =>
+ // Builder.referenceUserContainer match {
+ // case rm: RawModule => rm.addCommand(DefObject(module, name))
+ // }
case _ => pushCommand(DefInstance(module, component.ports))
}
module.initializeInParent()
@@ -169,8 +169,8 @@ abstract class Module extends RawModule {
final val clock: Clock = IO(Input(Clock())).suggestName("clock")
final val reset: Reset = IO(Input(mkReset)).suggestName("reset")
- override protected def implicitClock: Clock = clock
- override protected def implicitReset: Reset = reset
+ protected def implicitClock: Clock = clock
+ protected def implicitReset: Reset = reset
// TODO Delete these
private var _override_clock: Option[Clock] = None