olofk / fusesoc

Package manager and build abstraction tool for FPGA/ASIC development
BSD 2-Clause "Simplified" License
1.14k stars 235 forks source link

Setting vivado parameters using core file #681

Open morslai opened 3 months ago

morslai commented 3 months ago

Hi, I'm trying to find a way to set Vivado parameters using the core file (for example synthesis strategy). I can't seem to wrap my head around it - any solution will be good - scripts, hooks or any othe way.

thanks in advance!!!

olofk commented 3 months ago

Put the commands in a tcl file, and add it to a fileset with file_type : tclSource. E.g. in your case, the TCL commnd would be set_property strategy Flow_AreaOptimized_high [get_runs synth_1]