{% extends 'base.html' %} {% block title %}Edit Module - {{ module.name }}{% endblock %} {% block head %} {% endblock %} {% block content %}
Unsaved changes
{% if module.is_new %}
New
{% else %}

{{ module.name }}

{{ module.file }} {% endif %}
Address Conflicts
0x
{% if module.file %} {{ module.file.split('/')[-1] }} {% else %} No source file {% endif %}
Register Map
{% for reg in module.registers %} {% set width = 32 %} {% if reg.width %} {% set width = reg.width %} {% elif 'vector' in reg.signal_type %} {% set width = reg.signal_type.split('(')[1].split(' downto')[0] | int + 1 if '(' in reg.signal_type else 32 %} {% elif reg.signal_type == 'std_logic' %} {% set width = 1 %} {% endif %} {% endfor %}
Addr Name Width Access Default Strobes Description Actions
R W
{% if not module.registers %}
Empty Register Map

Start building your register interface via the button above.

{% endif %}
{% endblock %}