Skip to content

Register decoding does not work correctly when fields are represented in msb0 mode #48

@maltaisn

Description

@maltaisn

When entering a value in the "Encoded Register Value", the decoding doesn't work correctly. For this RDL source:

addrmap registers {
  default regwidth = 32;
  default memwidth = 32;
  default accesswidth = 32;

  reg {
    name = "Version";
    field {} VERSION_REVISION[0:7];
    field {} VERSION_BUILD[8:15];
    field {} VERSION_MINOR[16:23];
    field {} VERSION_MAJOR[24:31];
  } version;
};

Example result:
image

I'm also not sure what behavior is expected when entering a field value. The field text field always goes red it seems.

I'm using peakrdl-html v2.10.1 and Firefox. Also fails in Edge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions