Skip to content

attr is not correct generated? #59

@vermaete

Description

@vermaete

A register of 32 bits with one field with a reset value of 0x0001 is generated okay.

[
    { "name": "field0", "bits": 16, "attr": 1 },
    {                   "bits": 16, "attr": 0 }
]

But the reset value is not generated correct for a register also 32 bits but having only one field of 32 bits and the same reset value.

[
    { "name": "field0", "bits": 32, "attr": 1 }
]

The reset value here is for all bits '0'. The first bit should be '1'.

Generated with npx bit-field -i ok.json > ok.svg with version 1.9.0

Thanks for all advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions