|
| 1 | +Configuring |
| 2 | +=========== |
| 3 | + |
| 4 | +.. role:: code-py(code) |
| 5 | + :language: Python |
| 6 | + |
| 7 | +.. note:: |
| 8 | + Unless specified otherwise, all relative file paths used in config options |
| 9 | + are interpreted as relative to the enclosing ``conf.py``. |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +PeakRDL compilation settings |
| 14 | +---------------------------- |
| 15 | + |
| 16 | +.. confval:: peakrdl_cfg_toml |
| 17 | + :type: :code-py:`str` |
| 18 | + |
| 19 | + Optional path to a PeakRDL configuration TOML file. |
| 20 | + This is equivalent to the ``peakrdl`` command-line tool's ``--peakrdl-cfg`` flag. |
| 21 | + |
| 22 | + If not specified, a PeakRDL TOML config file is discovered using the |
| 23 | + `same rules as the command-line tool <https://peakrdl.readthedocs.io/en/latest/configuring.html>`_. |
| 24 | + |
| 25 | + |
| 26 | +.. confval:: peakrdl_input_files |
| 27 | + :type: :code-py:`list[str]` |
| 28 | + |
| 29 | + List of input files to process. Files shall be listed in dependency-order to |
| 30 | + ensure child components declared before instantiated. |
| 31 | + |
| 32 | + |
| 33 | +.. confval:: peakrdl_incdirs |
| 34 | + :type: :code-py:`list[str]` |
| 35 | + |
| 36 | + List of additional include search paths. |
| 37 | + |
| 38 | + |
| 39 | +.. confval:: peakrdl_parameters |
| 40 | + :type: :code-py:`dict[str, Any]` |
| 41 | + |
| 42 | + Dictionary of parameters to pass to the top-level component when elaborating. |
| 43 | + |
| 44 | + Example: |
| 45 | + |
| 46 | + .. code-block:: python |
| 47 | +
|
| 48 | + peakrdl_parameters = { |
| 49 | + "N_CHANNELS": 16, |
| 50 | + "BLOCK_VERSION_STR": "v1.2.3", |
| 51 | + } |
| 52 | +
|
| 53 | +
|
| 54 | +.. confval:: peakrdl_defines |
| 55 | + :type: :code-py:`dict[str, str|None]` |
| 56 | + |
| 57 | + Dictionary of verilog-style define macros to inject into the SystemRDL |
| 58 | + preprocesor namespace. |
| 59 | + |
| 60 | + Assigning a macro :code-py:`None` is acceptable if novalue is needed. |
| 61 | + |
| 62 | + Example: |
| 63 | + |
| 64 | + .. code-block:: python |
| 65 | +
|
| 66 | + peakrdl_defines = { |
| 67 | + "FOO": "asdf", |
| 68 | + "BAR": None, |
| 69 | + } |
| 70 | +
|
| 71 | +
|
| 72 | +.. confval:: peakrdl_top_component |
| 73 | + :type: :code-py:`str` |
| 74 | + |
| 75 | + Explicitly choose which addrmap in the root namespace will be the top-level |
| 76 | + component. If unset, The last addrmap defined will be chosen. |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | +Cross-reference settings |
| 81 | +------------------------ |
| 82 | + |
| 83 | +.. confval:: peakrdl_default_link_to |
| 84 | + :type: :code-py:`str` |
| 85 | + :default: :code-py:`"html"` |
| 86 | + |
| 87 | + Configures what the default behavior is for register map cross-references. |
| 88 | + If not explicitly specified, behavior is determined by this setting. |
| 89 | + |
| 90 | + "html" |
| 91 | + Link to PeakRDL-HTML output |
| 92 | + "doc" |
| 93 | + Link to an inline documentation reference generated by either the |
| 94 | + :rst:dir:`rdl:docnode` or :rst:dir:`rdl:doctree` directives. |
| 95 | + |
| 96 | + .. note:: |
| 97 | + If "doc" is selected, but a corresponding target node was never inserted |
| 98 | + using :rst:dir:`rdl:docnode` or :rst:dir:`rdl:doctree`, the reference |
| 99 | + will attempt to link to the PeakRDL html output if available. |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | +PeakRDL-HTML output settings |
| 104 | +---------------------------- |
| 105 | +.. confval:: peakrdl_html_enable |
| 106 | + :type: :code-py:`str` |
| 107 | + :default: :code-py:`True` |
| 108 | + |
| 109 | +.. confval:: peakrdl_html_title |
| 110 | + :type: :code-py:`str` |
| 111 | + |
| 112 | + Override the title text for the PeakRDL-HTML output. |
| 113 | + |
| 114 | +.. confval:: peakrdl_html_extra_doc_properties |
| 115 | + :type: :code-py:`list[str]` |
| 116 | + |
| 117 | + List of additional properties to explicitly document. |
| 118 | + |
| 119 | + Nodes that have a property explicitly set will show its value in a table in |
| 120 | + the node's description. Use this to bring forward user-defined properties, |
| 121 | + or other built-in properties in your documentation. |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | +Inline docnode/doctree settings |
| 126 | +------------------------------- |
| 127 | + |
| 128 | +.. confval:: peakrdl_doc_wrap_section |
| 129 | + :type: :code-py:`bool` |
| 130 | + :default: :code-py:`True` |
| 131 | + |
| 132 | + Whether to wrap :rst:dir:`rdl:docnode` output in a section heading. |
| 133 | + |
| 134 | + Configures the default behavior for all :rst:dir:`rdl:docnode` directives. |
| 135 | + If not explicitly specified, behavior is determined by this setting. |
| 136 | + |
| 137 | + .. note:: |
| 138 | + Cross-references will not be able to link to a :rst:dir:`rdl:docnode` if |
| 139 | + it is not wrapped in a section heading. |
0 commit comments