From 2ac3fd5306783dde30360b881c74ca5ff9d090bf Mon Sep 17 00:00:00 2001 From: Huy Vo Date: Sat, 20 Apr 2013 01:36:32 -0700 Subject: [PATCH] get rid of init_node --- src/main/scala/RocketChip.scala | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/scala/RocketChip.scala b/src/main/scala/RocketChip.scala index b75c5192..f391d049 100644 --- a/src/main/scala/RocketChip.scala +++ b/src/main/scala/RocketChip.scala @@ -276,16 +276,12 @@ class ReferenceChipBackend extends VerilogBackend def addMemPin(c: Component) = { for (node <- Component.nodes) { if (node.isInstanceOf[Mem[ _ ]] && node.component != null && node.asInstanceOf[Mem[_]].seqRead) { - val init = Bool() - init.setName("init_node") - node.inputs += init - init.component = node.component - connectMemPin(c, node.component, init) + connectMemPin(c, node.component, node) } } } - def connectMemPin(topC: Component, c: Component, p: Bool): Unit = { + def connectMemPin(topC: Component, c: Component, p: Node): Unit = { var isNewPin = false val compInitPin = if (initMap.contains(c)) {