diff --git a/src/finn/transformation/fpgadataflow/create_stitched_ip.py b/src/finn/transformation/fpgadataflow/create_stitched_ip.py index c2ded29d24eb1c75fcba8b4053c78920a31b1d3b..327c7867fe30485f6df51d5e98dcbbaceea04cd8 100644 --- a/src/finn/transformation/fpgadataflow/create_stitched_ip.py +++ b/src/finn/transformation/fpgadataflow/create_stitched_ip.py @@ -332,12 +332,13 @@ class CreateStitchedIP(Transformation): ) tcl.append("set_property core_revision 2 [ipx::find_open_core %s]" % block_vlnv) tcl.append("ipx::create_xgui_files [ipx::find_open_core %s]" % block_vlnv) + # mark bus interface params as user-resolvable to avoid FREQ_MHZ mismatches + tcl.append( + "set_property value_resolve_type user [ipx::get_bus_parameters " + "-of [ipx::get_bus_interfaces -of [ipx::current_core ]]]" + ) # if targeting Vitis, add some properties to the IP if self.vitis: - tcl.append( - "set_property value_resolve_type user [ipx::get_bus_parameters " - "-of [ipx::get_bus_interfaces -of [ipx::current_core ]]]" - ) # replace source code with dcp tcl.append( "set_property sdx_kernel true [ipx::find_open_core %s]" % block_vlnv diff --git a/src/finn/transformation/fpgadataflow/templates.py b/src/finn/transformation/fpgadataflow/templates.py index ae13f6e4e464fea8884f89e7f071e53e28a5c623..b881bf78880e819b48a80011be1ed6b7812188ac 100644 --- a/src/finn/transformation/fpgadataflow/templates.py +++ b/src/finn/transformation/fpgadataflow/templates.py @@ -134,6 +134,7 @@ if {$ZYNQ_TYPE == "zynq_us+"} { set_property -dict [list CONFIG.PSU__USE__S_AXI_GP2 {1}] [get_bd_cells zynq_ps] set_property -dict [list CONFIG.PSU__USE__M_AXI_GP1 {0}] [get_bd_cells zynq_ps] #set frequency of PS clock (this can't always be exactly met) + set_property -dict [list CONFIG.PSU__OVERRIDE__BASIC_CLOCK {0}] [get_bd_cells zynq_ps] set_property -dict [list CONFIG.PSU__CRL_APB__PL0_REF_CTRL__FREQMHZ [expr int($FREQ_MHZ)]] [get_bd_cells zynq_ps] } elseif {$ZYNQ_TYPE == "zynq_7000"} { create_bd_cell -type ip -vlnv xilinx.com:ip:processing_system7:5.5 zynq_ps