hls4ml.backends.quartus package

Subpackages

Submodules

hls4ml.backends.quartus.quartus_backend module

class hls4ml.backends.quartus.quartus_backend.QuartusBackend

Bases: FPGABackend

build(model, synth=True, fpgasynth=False, log_level=1, cont_if_large_area=False)

Builds the project using Intel HLS compiler.

Parameters:
  • model (ModelGraph) – The model to build

  • synth – Whether to run HLS synthesis

  • optional – Whether to run HLS synthesis

  • fpgasynth – Whether to run FPGA synthesis (Quartus Compile)

  • optional – Whether to run FPGA synthesis (Quartus Compile)

  • log_level – Logging level to be displayed during HLS synthesis (0, 1, 2)

  • optional – Logging level to be displayed during HLS synthesis (0, 1, 2)

  • cont_if_large_area – Instruct the HLS compiler to continue synthesis if the estimated resource usage exceeds device resources

Errors raise exceptions

create_initial_config(part='Arria10', clock_period=5, io_type='io_parallel')

Create the minimal conversion config for the backend.

Subclasses should implement this method to provide the initial configuration for the conversion.

get_default_flow()

The name of the default flow of the backend.

Default flow is used as the conversion target if the target flow has not been specified.

get_writer_flow()
init_activation(layer)
init_base_layer(layer)
init_conv1d(layer)
init_conv2d(layer)
init_dense(layer)
init_embed(layer)
init_gru(layer)
init_lstm(layer)
init_simple_rnn(layer)
init_softmax(layer)
hls4ml.backends.quartus.quartus_backend.chdir(newdir)

Module contents