From cf31062758d4d9722ac30f89fdfe7cc7c1d8cc74 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Fri, 2 Aug 2024 15:39:51 -0700 Subject: Update RawModule.scala RawModule will require major reworking in the future --- core/src/main/scala/chisel3/RawModule.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/scala/chisel3/RawModule.scala b/core/src/main/scala/chisel3/RawModule.scala index bab1a5b1..cef0fa13 100644 --- a/core/src/main/scala/chisel3/RawModule.scala +++ b/core/src/main/scala/chisel3/RawModule.scala @@ -113,7 +113,7 @@ abstract class RawModule extends BaseModule { // // Other Internal Functions // - private var _firrtlPorts: Option[Seq[firrtl.Port]] = None + private var _firrtlPorts: Option[Seq[Port]] = None @deprecated("Use DataMirror.modulePorts instead. this API will be removed in Chisel 3.6", "Chisel 3.5") lazy val getPorts: Seq[Port] = _firrtlPorts.get @@ -167,7 +167,6 @@ abstract class RawModule extends BaseModule { // All suggestions are in, force names to every node. for (id <- getIds) { id match { - case id: ModuleClone[_] => id.setRefAndPortsRef(_namespace) // special handling case id: BaseModule => id.forceName(default = id.desiredName, _namespace) case id: MemBase[_] => id.forceName(default = "MEM", _namespace) // removed till macros are fixed @@ -192,11 +191,8 @@ abstract class RawModule extends BaseModule { } } // else, don't name unbound types } - id._onModuleClose } - closeUnboundIds(names) - val firrtlPorts = getModulePorts.map { port => // Special case Vec to make FIRRTL emit the direction of its // element. -- cgit v1.2.3