From fdc304a0fbc17be1195039b3313ec92ff5d8d916 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Thu, 30 Jan 2020 22:00:53 -0700 Subject: [PATCH] fixed a bug in mapping pb_graph pins using rotation offset --- openfpga/src/annotation/vpr_pb_type_annotation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openfpga/src/annotation/vpr_pb_type_annotation.cpp b/openfpga/src/annotation/vpr_pb_type_annotation.cpp index 3204dd597..f75a91059 100644 --- a/openfpga/src/annotation/vpr_pb_type_annotation.cpp +++ b/openfpga/src/annotation/vpr_pb_type_annotation.cpp @@ -404,10 +404,10 @@ void VprPbTypeAnnotation::add_physical_pb_graph_pin(t_pb_graph_pin* operating_pb physical_pb_pin_offsets_[operating_pb_graph_pin->port] += physical_pb_pin_rotate_offset(operating_pb_graph_pin->port); - if (physical_pb_port_range(operating_pb_graph_pin->port).get_msb() + if ((size_t)physical_pb_port(operating_pb_graph_pin->port)->num_pins - 1 < operating_pb_graph_pin->pin_number + physical_pb_port_range(operating_pb_graph_pin->port).get_lsb() - + physical_pb_pin_offset(operating_pb_graph_pin->port)) { + + physical_pb_pin_offsets_[operating_pb_graph_pin->port]) { physical_pb_pin_offsets_[operating_pb_graph_pin->port] = 0; } }