fixed a bug in mapping pb_graph pins using rotation offset

This commit is contained in:
tangxifan 2020-01-30 22:00:53 -07:00
parent 02d6256e95
commit fdc304a0fb
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}