hlsfactory.opt_dsl_frontend

Module Contents

Classes

Functions

API

class hlsfactory.opt_dsl_frontend.ArrayPartition(array_settings: str)[source]

Initialization

get_flattened()[source]
get_num_of_directives()[source]
append_directives(line)[source]
get_directives()[source]
class hlsfactory.opt_dsl_frontend.LoopOpt(loop_settings: str)[source]

Initialization

get_flattened()[source]
append_parameters(line)[source]
append_directives(line)[source]
get_directives()[source]
get_num_of_parameters()[source]
get_num_of_directives()[source]
hlsfactory.opt_dsl_frontend.parse_template(src_template: pathlib.Path) tuple[list[hlsfactory.opt_dsl_frontend.ArrayPartition], list[hlsfactory.opt_dsl_frontend.LoopOpt], str][source]
hlsfactory.opt_dsl_frontend.gen_opt(array_partition_object_lists, loop_opt_object_lists)[source]
hlsfactory.opt_dsl_frontend.generate_opt_sources(array_partition_lines, loop_opt_lines, static_lines, random_sample: bool = False, random_sample_num: int = 10, random_sample_seed: int = 42) list[str][source]
class hlsfactory.opt_dsl_frontend.OptDSLFrontend(work_dir: pathlib.Path, random_sample: bool = False, random_sample_num: int = 10, random_sample_seed: int = 42, log_execution_time: bool = True)[source]

Bases: hlsfactory.framework.Frontend

name = 'OptDSLFrontend'
execute(design: hlsfactory.framework.Design, timeout: float | None = None) list[hlsfactory.framework.Design][source]
class hlsfactory.opt_dsl_frontend.OptDSLPassthroughFrontend(work_dir: pathlib.Path)[source]

Bases: hlsfactory.framework.Frontend

name = 'OptDSLPassthroughFrontend'
execute(design: hlsfactory.framework.Design, timeout: float | None = None) list[hlsfactory.framework.Design][source]