Class Template_manager

Template

Hierarchy

  • Template_manager

Constructors

Properties

comment_symbol: string = "//"
language: HDL_LANG = HDL_LANG.VHDL

Methods

  • Adapt the ports/generics from VHDL/Verilog to Verilog/VHDL. It useful for mix templates

    Parameters

    • port_list: Port_hdl[]

      List of ports

    • template_type: string

      Type of template

    • is_generic: boolean

      Genercis enable

    Returns Port_hdl[]

  • Parameters

    • port_list: Port_hdl[]
    • is_generic: boolean

    Returns Port_hdl[]

  • Parameters

    • port_list: Port_hdl[]
    • is_generic: boolean

    Returns Port_hdl[]

  • Generate a template from HDL code

    Parameters

    • code: string

      HDL code

    • template_type: string

      Template type

    • options: t_template_options

      Template options

    Returns Promise<string>

  • Get the text header from a file path

    Parameters

    • header_file_path: string

      File path with the header

    Returns string

  • Gen indent

    Parameters

    • indent_char: string

      Indent character

    Returns string[]

  • Parse the code

    Parameters

    • code: string

      Text code

    Returns Promise<undefined | Hdl_element>

Generated using TypeDoc