Join Slack
Powered by
is there a way to provide values for ``define`'s u...
# openlane
e
Erik van Zijst
06/07/2021, 12:03 AM
is there a way to provide values for ``define`'s used in the verilog files from config.tcl? I have a project that uses different values for some defines based on the target (Openlane vs FPGA vs simulation)
k
Kevin Dai
06/07/2021, 12:42 AM
I'm not sure how to pass arguments to yosys during synthesis however you can just include a .v file containing all the defines. Seems like that's what caravel does:
https://github.com/efabless/caravel/blob/master/openlane/mgmt_core/config.tcl#L55
e
Erik van Zijst
06/07/2021, 12:43 AM
Oh yeah interesting. Is the order in which the files get loaded deterministic and fixed then?
k
Kevin Dai
06/07/2021, 12:59 AM
Yes, it seems so
https://github.com/The-OpenROAD-Project/OpenLane/blob/master/scripts/synth_top.tcl#L52
e
Erik van Zijst
06/07/2021, 1:01 AM
Oh that's awesome. Either of those should work fine. Thanks a bunch!
k
Kevin Dai
06/07/2021, 1:01 AM
No problem!
2
Views
Open in Slack
Previous
Next