hdl_registers.generator.html package
Submodules
hdl_registers.generator.html.constant_table module
- class hdl_registers.generator.html.constant_table.HtmlConstantTableGenerator(register_list: RegisterList, output_folder: Path)
Bases:
HtmlGeneratorCommon
Generate HTML code with register constant information in a table. See the HTML code generator article for usage details.
- SHORT_DESCRIPTION = 'HTML constant table'
- __init__(register_list: RegisterList, output_folder: Path)
- Parameters:
register_list – Registers and constants from this register list will be included in the generated artifacts.
output_folder – Result file will be placed in this folder.
hdl_registers.generator.html.html_generator_common module
- class hdl_registers.generator.html.html_generator_common.HtmlGeneratorCommon(register_list: RegisterList, output_folder: Path)
Bases:
RegisterCodeGenerator
Common for HTML code generators.
hdl_registers.generator.html.html_translator module
hdl_registers.generator.html.page module
- class hdl_registers.generator.html.page.HtmlPageGenerator(register_list: RegisterList, output_folder: Path)
Bases:
HtmlGeneratorCommon
Generate a HTML page with register and constant information. See the HTML code generator article for usage details.
- SHORT_DESCRIPTION = 'HTML page'
hdl_registers.generator.html.register_table module
- class hdl_registers.generator.html.register_table.HtmlRegisterTableGenerator(register_list: RegisterList, output_folder: Path)
Bases:
HtmlGeneratorCommon
Generate HTML code with register information in a table. See the HTML code generator article for usage details.
- SHORT_DESCRIPTION = 'HTML register table'
- __init__(register_list: RegisterList, output_folder: Path)
- Parameters:
register_list – Registers and constants from this register list will be included in the generated artifacts.
output_folder – Result file will be placed in this folder.
- get_code(**kwargs: Any) str
Get the generated code as a string.
Overload in a subclass where the code generation is implemented.
- Parameters:
kwargs – Further optional parameters that can be used. Can send any number of named arguments, per the requirements of
get_code()
of any custom generators that inherit this class.