piel.tools.amaranth.export

piel.tools.amaranth.export#

Functions#

generate_verilog_from_amaranth(→ None)

This function exports an amaranth module to either a defined path, or a project structure in the form of an

Module Contents#

generate_verilog_from_amaranth(amaranth_module: amaranth.Elaboratable, ports_list: list[str], target_file_name: str, target_directory: piel.types.PathTypes, backend=verilog) None[source]#

This function exports an amaranth module to either a defined path, or a project structure in the form of an imported multi-design module.

Iterate over ports list and construct a list of references for the strings provided in ports_list

Parameters:
  • amaranth_module (amaranth.Elaboratable) – Amaranth elaboratable class.

  • ports_list (list[str]) – List of input names.

  • target_file_name (str) – Target file name.

  • target_directory (PathTypes) – Target directory PATH.

  • backend (amaranth.back.verilog) – Backend to use. Defaults to verilog.

Returns:

None