From 315923aa09101f6c6ffc58a445bd7411b3b23fca Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Tue, 6 Aug 2024 07:51:25 -0700 Subject: Fix more misc files --- core/src/main/scala/chisel3/Module.scala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'core/src/main/scala/chisel3/Module.scala') 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 -- cgit v1.2.3