{%- import "macros.html" as macros with context %}
<!-- Generated by PeakRDL-html <https://github.com/SystemRDL/PeakRDL-html> -->
<div>
<h1 id="_Content.name">{{(node.get_html_name() or node.get_property("name"))|safe}}</h1>


<dl class="node-info">
    {%- block node_info %}
    <dt>Absolute Address:</dt><dd id="_AbsAddr" class="address"></dd>
    <dt>Base Offset:</dt><dd class="address">{{"0x%x" % node.raw_address_offset}}</dd>
    <dt>Size:</dt><dd class="address">{{"0x%x" % node.size}}</dd>
    {%- if node.inst.is_array %}
    <dt>Array Dimensions:</dt><dd>{{node.inst.array_dimensions}}</dd>
    <dt>Array Stride:</dt><dd>+{{"0x%x" % node.inst.array_stride}}</dd>
    <dt>Total Size:</dt><dd class="address">{{"0x%x" % node.total_size}}</dd>
    {%- endif %}
    {% if view_source_url is not none %}
    <dt>Source:</dt><dd><a href="{{view_source_url}}" target="_blank">{{view_source_filename}}</a></dd>
    {% endif %}
    {%- endblock node_info%}
</dl>

{%- if has_description(node) %}
<h2>Description</h2>
<div id="_Content.desc">
{{get_node_desc(node,2)|safe}}
</div>
{%- endif %}

{%- if has_extra_property_doc(node) %}
<h2>Properties</h2>
{{ macros.extra_prop_table(node) }}
{%- endif %}

{%- if show_signals %}
{%- for signal in node.signals(skip_not_present=skip_not_present) %}
{%- if loop.first %}
<h2>Signals</h2>
<table border="1">
    <tr>
        <th>Name</th>
        <th>Width</th>
        <th>Description</th>
    </tr>
{%- endif %}
    <tr>
        <td>{{(signal.get_html_name() or signal.get_property("name"))|safe}}</td>
        <td>{{signal.width}}</td>
        <td>{{(get_node_desc(signal) or "-")|safe}}</td>
    </tr>
{%- if loop.last %}
</table>
{%- endif %}
{%- endfor %}
{%- endif %}

<h2>Contents</h2>
{% block content %}{% endblock %}
</div>
