From 4b7e12de87f37f490b93efa436f0333416231684 Mon Sep 17 00:00:00 2001 From: Benjamin Ramhorst <59868635+bo3z@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:31:42 +0100 Subject: [PATCH] Fix Vivado Accelerator missing partition factor variable (#1160) Co-authored-by: Jan-Frederik Schulte --- hls4ml/writer/vivado_accelerator_writer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hls4ml/writer/vivado_accelerator_writer.py b/hls4ml/writer/vivado_accelerator_writer.py index cefa158e11..817847887d 100644 --- a/hls4ml/writer/vivado_accelerator_writer.py +++ b/hls4ml/writer/vivado_accelerator_writer.py @@ -394,6 +394,8 @@ def write_board_script(self, model): f.write('set clock_uncertainty {}\n'.format(model.config.get_config_value('ClockUncertainty', '12.5%'))) f.write('variable version\n') f.write('set version "{}"\n'.format(model.config.get_config_value('Version', '1.0.0'))) + f.write('variable maximum_size\n') + f.write('set maximum_size {}\n'.format(model.config.get_config_value('MaximumSize', '4096'))) if self.vivado_accelerator_config.get_interface() == 'axi_stream': in_bit, out_bit = self.vivado_accelerator_config.get_io_bitwidth() f.write(f'set bit_width_hls_output {in_bit}\n')