https://open-source-silicon.dev logo
#openlane
Title
# openlane
m

Mariam Zanaty

06/17/2021, 11:24 PM
Hi everyone, during hardening my design I got this error below, although I removed this:
MACRO_PLACEMENT_CFG
from the config.tcl. The design has no macros, if someone could help!
m

Matt Venn

06/18/2021, 8:14 AM
how are you implementing your design then? the normal thing is to harden your design as a macro and then incorporate it into user_project_wrapper. user_project_wrapper is setup so it does no synthesis, so you can't have any logic or design in there.
m

Mariam Zanaty

06/18/2021, 5:07 PM
@Matt Venn Yes, Thank you
🙌 1
I hardened my design successfully but now I'm a bit confused, how to instansiate the macro after that.
What I understood is that I've to copy the verilog codes under verilog/rtl directory then instansiate the top module inside the user_project_wrapper, by changing the user_proj_example to the top module name
m

Matt Venn

06/18/2021, 5:08 PM
you need to instantiate it inside ./verilog/rtl/user_project_wrapper.v and also reference it in ./openlane/user_project_wrapper/config.tcl and macro.cfg
👍 1
yeah
swap out the mprj example for your own
m

Mariam Zanaty

06/18/2021, 5:10 PM
And to delete the interface ports with the picorv?
m

Matt Venn

06/18/2021, 5:10 PM
depends if you want to use them or not
you can't change the interface port of user_project_wrapper, but you can do what you want with any modules instantiated inside
m

Mariam Zanaty

06/18/2021, 5:11 PM
Yes, I got it
Thank you
🙌 1
Same error:(
m

Matt Venn

06/18/2021, 6:54 PM
Post your repo
Sorry for being this late, but if you could help please.
m

Matt Venn

06/18/2021, 9:01 PM
your macro.cfg needs to have the correct name
of your macro
should be dlpp for you I think
and maybe update the co-ords so it fits
m

Mariam Zanaty

06/18/2021, 9:03 PM
I don't understand this
I'll change the name
But how to adjust the coordinates?
depending on what?
m

Matt Venn

06/18/2021, 9:06 PM
in that file
how big is your macro?
m

Mariam Zanaty

06/18/2021, 9:08 PM
900um * 600um
m

Matt Venn

06/18/2021, 9:09 PM
ok so it should fit with no adjustment
just change mprj to dlpp and see what happens
m

Mariam Zanaty

06/18/2021, 9:09 PM
Also I left the name of the instance of the top module as it is mprj
inside the user_project_wrapper
m

Matt Venn

06/18/2021, 9:10 PM
but the name of your macro is not mprj it's dlpp
m

Mariam Zanaty

06/18/2021, 9:10 PM
okay
wil adjust this and try again
same error:(
I may be wrong
Will adjust something and run again
m

Matt Venn

06/18/2021, 9:20 PM
why don't you have mpw-two-c tag in your tree?
m

Mariam Zanaty

06/18/2021, 9:22 PM
Is this a critical problem?
For the macro.cfg
I adjusted it and got the same error
m

Matt Venn

06/18/2021, 9:23 PM
you will probably fail the precheck if your repo doesn't match mpw-two-c closely enough
m

Mariam Zanaty

06/18/2021, 9:24 PM
Okay will fork it again
m

Matt Venn

06/18/2021, 9:24 PM
and maybe makefiles/config are different enough to make configuration changes
m

Mariam Zanaty

06/18/2021, 9:25 PM
Okay I'll adjust this
m

Matt Venn

06/18/2021, 9:25 PM
I don't think that's why the macro stuff is failing tho
👍 1
m

Mariam Zanaty

06/18/2021, 9:25 PM
Would you please take a look at my config.tcl and user_project_wrapper.v
They are the only files I edited
I think it would be in the config.tcl
m

Matt Venn

06/18/2021, 9:26 PM
yeah, I'm sure it's the macro.cfg
but you said you've tried it with mpll
just trying it here
I don't know why you have changed the settings in the config
you have commented out the line that reads the macro.cfg, that's why that doesn't work
ok, I've got to go. good luck getting it ready
m

Mariam Zanaty

06/18/2021, 9:35 PM
For this
Okay
@Matt Venn Thank you for help:)
@Amro Tork
2 Views