Skip to content

Commit 0e919c1

Browse files
[NetlistWriter] Fixed Failing Nightly Test
The nightly test for the netlist writer was failing due to changes in the clock to Q delays. After some digging, I found that there was an oversight in the netlist writer code when it generates ram black boxes. Someone hard-coded the name of the clock port to "clock", when in reality the port's name is "clk". This was a very simple fix.
1 parent 06beac6 commit 0e919c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/base/netlist_writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ class NetlistWriterVisitor : public NetlistVisitor {
15511551

15521552
if (port_class == "clock") {
15531553
VTR_ASSERT(pb_graph_node->num_clock_pins[iport] == 1); //Expect a single clock pin
1554-
input_port_conns["clock"].push_back(net);
1554+
input_port_conns[port->name].push_back(net);
15551555
} else {
15561556
VPR_FATAL_ERROR(VPR_ERROR_IMPL_NETLIST_WRITER,
15571557
"Unrecognized input port class '%s' for primitive '%s' (%s)\n", port_class.c_str(), atom->name, pb_type->name);

0 commit comments

Comments
 (0)