{% extends "base.html" %} {%- macro reserved_field(high, low, low_to_high) -%} {%- if high == low %} [{{high}}] {%- elif low_to_high %} [{{low}}:{{high}}] {%- else %} [{{high}}:{{low}}] {%- endif %} - - - - {%- endmacro %} {%- block content -%} {%- for field in reversed(list(node.fields(skip_not_present=skip_not_present))) %} {%- if loop.first %} {%- if highest_fields_first %} {%- if field.high < (node.get_property('regwidth') - 1) %} {{ reserved_field(node.get_property('regwidth') - 1, field.high + 1, reg_fields_are_low_to_high(node))}} {%- endif %} {%- else %} {%- if field.low > 0 %} {{ reserved_field(0, field.low - 1, reg_fields_are_low_to_high(node))}} {%- endif %} {%- endif %} {%- elif (not loop.first) and field.high < loop.previtem.low - 1 %} {{reserved_field(loop.previtem.low - 1, field.high + 1, reg_fields_are_low_to_high(node))}} {%- endif %} {%- if field.msb == field.lsb %} {%- else %} {%- endif %} {%- if loop.last %} {%- if highest_fields_first %} {%- if field.low != 0 %} {{ reserved_field(field.low - 1, 0, reg_fields_are_low_to_high(node))}} {%- endif %} {%- else %} {%- if field.high != node.get_property('regwidth') - 1 %} {{ reserved_field(node.get_property('regwidth') - 1, field.high + 1, reg_fields_are_low_to_high(node))}} {%- endif %} {%- endif %} {%- endif %} {%- endfor %}
Bits Identifier Access Reset Decoded Name
[{{field.lsb}}][{{field.msb}}:{{field.lsb}}] {%- if (has_description(field) or has_enum_encoding(field)) -%} {{field.inst_name}} {%- else -%} {{- field.inst_name -}} {%- endif -%} {{field.get_property("sw").name}} {%- if field.get_property("onread") -%} , {{ field.get_property("onread").name -}} {%- endif -%} {%- if field.get_property("onwrite") -%} , {{ field.get_property("onwrite").name -}} {%- endif -%} {%- if field.get_property("reset") != None -%} {%- if field.get_property("reset") is integer -%} {{"0x%x" % field.get_property("reset")}} {%- else -%} {{macros.reference_link(field.get_property("reset"))}} {%- endif -%} {%- else -%} - {%- endif %} {%- if field.get_property("encode") != None %} {%- endif %} {{(field.get_html_name() or "-")|safe}}

{%- block reg_value_edit %} {%- endblock reg_value_edit %}

{%- for field in reversed(list(node.fields(skip_not_present=skip_not_present))) if (has_description(field) or has_enum_encoding(field) or has_extra_property_doc(field)) %} {%- if loop.first %}

Field Descriptions

{%- endif %} {% include "field_description.html" %} {%- endfor %} {%- endblock content %}