Menu

#13 Wrong computation of bitfield length from lsb/msb fields in SVD files

v1.0_(example)
closed
0.2.6 (3)
1
2015-09-13
2015-07-14
No

When parsing SVD files the computation of the bitfield length from <lsb> and <msb> tags seems to have a bug.

in RegisterXMLParser.java:412

fbitlength = (byte) (Byte.valueOf(element_msb.getValue()) - Byte.valueOf(element_lsb.getValue()));

The computation should be msb-lsb+1, so an SVD entry of

<lsb>0</lsb>
<msb>0</msb>

gets a bitfield length of 1 assigned.

Discussion

  • Raven Claw

    Raven Claw - 2015-09-13
    • labels: --> 0.2.6
    • status: open --> closed
    • assigned_to: Raven Claw
     
  • Raven Claw

    Raven Claw - 2015-09-13

    Thank you for sending in this bug, I checked it in as r188.

    It will be included in v0.2.6.

     

Log in to post a comment.