Skip to content

Commit 4a52179

Browse files
committed
fixed bug where a design that had no hard blocks would fail with the new primitive hard block support feature
1 parent 7df2c56 commit 4a52179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/vqm2blif/src/base/hard_block_recog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ void verify_hard_blocks(t_hard_block_recog* module_hard_block_node_refs_and_info
908908
909909
If we find that the the hard block instance has a port or more that is unassigned, we go through all the ports and throw an error on the first unassgined port.
910910
*/
911-
if (((list_of_hard_block_instances->begin())->hard_block_ports_not_assigned) != 0)
911+
if (!(list_of_hard_block_instances->empty()) && (((list_of_hard_block_instances->begin())->hard_block_ports_not_assigned) != 0))
912912
{
913913
incomplete_hard_block_instance = (list_of_hard_block_instances->begin())->hard_block_instance_node_reference;
914914

0 commit comments

Comments
 (0)