esl-epfl / x-heep

eXtendable Heterogeneous Energy-Efficient Platform based on RISC-V
Other
141 stars 75 forks source link

Unable to synthesize for Xilinx Pynq-z2 #501

Closed H1alus closed 4 months ago

H1alus commented 5 months ago

I want to use X-HEEP on a pynq-z2 board so I installed on a Ubuntu 20.04 system all the dependencies required by the wiki (verilator, risc-v gnu toolchain, verible); then I tried to synthesize the base mcu: I made the virtual env with "make venv", then sourced into it, after that I made the mcu-gen with "make mcu-gen" but the "make vivado-fpga FPGA_BOARD=pynq-z2" doesn't work and I get the error (full log in the file make_pynq-z2.txt):

ERROR: [Common 17-170] Unknown option '-freq_hz', please type 'create_bd_port -help' for usage info.

    while executing
"source {../../../hw/fpga/scripts/pynq-z2/xilinx_generate_clk_wizard.tcl}"
    (file "openhwgroup.org_systems_core-v-mini-mcu_0.tcl" line 218)
INFO: [Common 17-206] Exiting Vivado at Sat May  4 09:23:17 2024...
make[1]: *** [Makefile:8: openhwgroup.org_systems_core-v-mini-mcu_0.xpr] Error 1
make[1]: Leaving directory '/home/user/Documents/x-heep/build/openhwgroup.org_systems_core-v-mini-mcu_0/pynq-z2-vivado'
ERROR: Failed to build openhwgroup.org:systems:core-v-mini-mcu:0 : '['make']' exited with an error: 2
davideschiavone commented 5 months ago

Hello @H1alus , it seems to be a vivado error, we use version 2021, which version do you have ?

H1alus commented 5 months ago

I have installed the 2018.3 version, which pack version of Vivado 2021 are you using?

H1alus commented 4 months ago

I confirm that downloading Vivado 2021.2 solved the issue.