Hi I'm trying to harden a macro in the user projec...
# openlane
h
Hi I'm trying to harden a macro in the user project wrapper and an error shows up saying that the placement of the macros has failed,
Copy code
Placing the following macros:
{'drac': ['1175000', '1690000', 'N']}
Design name: user_project_wrapper
Traceback (most recent call last):
  File "/openlane/scripts/manual_macro_place.py", line 139, in <module>
    assert not macros, ("Macros not found:", macros)
AssertionError: ('Macros not found:', {'drac': ['1175000', '1690000', 'N']})
I will answer this comment with the error log. It could be some missing file, does anyone has faced the same issue?
Copy code
OpenROAD 8d53e9b018dec98fa63e907ddeb6c5406f035361 
This program is licensed under the BSD-3 license. See the LICENSE file for details.
Components of this program may be licensed under more restrictive licenses which must be honored.
[INFO ODB-0222] Reading LEF file: /home/askartos/sandbox/caravel_tutorial/caravel_user_project/openlane/user_project_wrapper/runs/user_project_wrapper/tmp/merged.lef
[INFO ODB-0223]     Created 13 technology layers
[INFO ODB-0224]     Created 25 technology vias
[INFO ODB-0225]     Created 442 library cells
[INFO ODB-0226] Finished LEF file:  /home/askartos/sandbox/caravel_tutorial/caravel_user_project/openlane/user_project_wrapper/runs/user_project_wrapper/tmp/merged.lef
[INFO ODB-0127] Reading DEF file: /home/askartos/sandbox/caravel_tutorial/caravel_user_project/openlane/user_project_wrapper/runs/user_project_wrapper/tmp/floorplan/4-io.def
[INFO ODB-0128] Design: user_project_wrapper
[INFO ODB-0130]     Created 637 pins.
[INFO ODB-0131]     Created 1 components and 32 component-terminals.
[INFO ODB-0133]     Created 637 nets and 26 connections.
[INFO ODB-0134] Finished DEF file: /home/askartos/sandbox/caravel_tutorial/caravel_user_project/openlane/user_project_wrapper/runs/user_project_wrapper/tmp/floorplan/4-io.def
Placing the following macros:
{'drac': ['1175000', '1690000', 'N']}
Design name: user_project_wrapper
Traceback (most recent call last):
  File "/openlane/scripts/manual_macro_place.py", line 139, in <module>
    assert not macros, ("Macros not found:", macros)
AssertionError: ('Macros not found:', {'drac': ['1175000', '1690000', 'N']})
m
Idk but I note that the script is manual_macro_place.py - are you expecting automatic placement?
👍 1
h
It looks like for user_project_wrapper is not expected to have automatic placement (idk the reason), instead the given example sets
Copy code
set ::env(MACRO_PLACEMENT_CFG) $script_dir/macro.cfg
and file content is the following :
Copy code
drac 1175 1690 N
I will check if commenting that enables the automatic placement
Automatic placement works : I will check the manual placement script, to get more details about the assertion
ok looking at the python script looks like the macro placement config file should have the instance name and not the module name xD It is a bit obvious but would be good to have that documented