Skip to content

Commit 5c18569

Browse files
committed
Merge branch 'master' of https://github.com/verilog-to-routing/vtr-verilog-to-routing into add_tileable_rr_graph
2 parents adec8f6 + 29cc58d commit 5c18569

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
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);

vpr/src/pack/pack.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,6 @@ static e_packer_state get_next_packer_state(e_packer_state current_packer_state,
105105
return e_packer_state::SUCCESS;
106106
}
107107

108-
// Check if the utilizaion of any block types is over 100%
109-
if (!fits_on_device) {
110-
// The utilization of some block types are too high. Need to increase the
111-
// density of the block types available.
112-
113-
// Check if we can turn on unrelated cluster and/or balanced block type
114-
// utilization.
115-
if (packer_opts.allow_unrelated_clustering == e_unrelated_clustering::AUTO && packer_opts.balance_block_type_utilization == e_balance_block_type_util::AUTO) {
116-
117-
// Check if they are not already on. If not, set the next state to turn them on.
118-
if (!using_unrelated_clustering || !using_balanced_block_type_util) {
119-
return e_packer_state::SET_UNRELATED_AND_BALANCED;
120-
}
121-
}
122-
}
123-
124108
// Check if there are overfilled floorplan regions.
125109
if (floorplan_regions_overfull) {
126110
// If there are overfilled region constraints, try to use attraction
@@ -152,6 +136,22 @@ static e_packer_state get_next_packer_state(e_packer_state current_packer_state,
152136
}
153137
}
154138

139+
// Check if the utilizaion of any block types is over 100%
140+
if (!fits_on_device) {
141+
// The utilization of some block types are too high. Need to increase the
142+
// density of the block types available.
143+
144+
// Check if we can turn on unrelated cluster and/or balanced block type
145+
// utilization.
146+
if (packer_opts.allow_unrelated_clustering == e_unrelated_clustering::AUTO && packer_opts.balance_block_type_utilization == e_balance_block_type_util::AUTO) {
147+
148+
// Check if they are not already on. If not, set the next state to turn them on.
149+
if (!using_unrelated_clustering || !using_balanced_block_type_util) {
150+
return e_packer_state::SET_UNRELATED_AND_BALANCED;
151+
}
152+
}
153+
}
154+
155155
// Check if we can increase the target density of the overused block types.
156156
// This is a last resort since increasing the target pin density can have
157157
// bad affects on quality and routability.

0 commit comments

Comments
 (0)