Skip to content

Commit 1077383

Browse files
committed
Also handle fasm_mux on clock connections.
Signed-off-by: Keith Rothman <[email protected]>
1 parent f26e23c commit 1077383

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

utils/fasm/src/fasm.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ void FasmWriterVisitor::check_features(t_metadata_dict *meta) const {
211211
void FasmWriterVisitor::visit_all_impl(const t_pb_routes &pb_route, const t_pb* pb,
212212
const t_pb_graph_node* pb_graph_node) {
213213
clb_prefix_ = build_clb_prefix(pb, pb_graph_node);
214-
std::cerr << "CLB prefix: " << clb_prefix_ << std::endl;
215214

216215
if(pb_graph_node && pb) {
217216
t_pb_type *pb_type = pb_graph_node->pb_type;
@@ -245,6 +244,19 @@ void FasmWriterVisitor::visit_all_impl(const t_pb_routes &pb_route, const t_pb*
245244
}
246245
port_index += 1;
247246
}
247+
248+
port_index = 0;
249+
for (int i = 0; i < pb_type->num_ports; i++) {
250+
if (!pb_type->ports[i].is_clock || pb_type->ports[i].type != IN_PORT) {
251+
continue;
252+
}
253+
for (int j = 0; j < pb_type->ports[i].num_pins; j++) {
254+
int inode = pb->pb_graph_node->clock_pins[port_index][j].pin_count_in_cluster;
255+
check_interconnect(pb_route, inode);
256+
}
257+
port_index += 1;
258+
}
259+
248260
port_index = 0;
249261
for (int i = 0; i < pb_type->num_ports; i++) {
250262
if (pb_type->ports[i].type != OUT_PORT) {

0 commit comments

Comments
 (0)