Skip to content

Commit

Permalink
Fix Vivado Accelerator missing partition factor variable (#1160)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan-Frederik Schulte <[email protected]>
  • Loading branch information
bo3z and JanFSchulte authored Jan 7, 2025
1 parent e1aeaa5 commit 4b7e12d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hls4ml/writer/vivado_accelerator_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4b7e12d

Please sign in to comment.