From 3807a940f4d7ec953db576f6117f9f38c791ebe5 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 28 Feb 2020 16:45:50 -0700 Subject: [PATCH] fixed critical bugs in bitstream generation and now we pass microbenchmarks --- openfpga/src/fpga_bitstream/build_grid_bitstream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openfpga/src/fpga_bitstream/build_grid_bitstream.cpp b/openfpga/src/fpga_bitstream/build_grid_bitstream.cpp index 253798c86..f69b57ae6 100644 --- a/openfpga/src/fpga_bitstream/build_grid_bitstream.cpp +++ b/openfpga/src/fpga_bitstream/build_grid_bitstream.cpp @@ -168,7 +168,8 @@ void build_physical_block_pin_interc_bitstream(BitstreamManager& bitstream_manag for (t_pb_graph_pin* src_pb_graph_pin : pb_graph_pin_inputs(des_pb_graph_pin, cur_interc)) { const PhysicalPbId& src_pb_id = physical_pb.find_pb(src_pb_graph_pin->parent_node); /* If the src pb id is not valid, we bypass it */ - if ( (true != physical_pb.valid_pb_id(src_pb_id)) + if ( (true == physical_pb.valid_pb_id(src_pb_id)) + && (AtomNetId::INVALID() != physical_pb.pb_graph_pin_atom_net(des_pb_id, des_pb_graph_pin)) && (physical_pb.pb_graph_pin_atom_net(src_pb_id, src_pb_graph_pin) == physical_pb.pb_graph_pin_atom_net(des_pb_id, des_pb_graph_pin))) { break; }