Skip to content

Spec is missing detail on interpretation of scaledNonNegativeInteger #23

@smaillet

Description

@smaillet

Formal spec says virtually nothing about the Xml Schema pattern for scaledNonNegativeInteger. The schema has this pattern: [+]?(0x|0X|#)?[0-9a-fA-F]+[kmgtKMGT]? but says nothing about the format.

  1. Are there any limitations on the length of the [0-9a-fA-F]+
    1. As expressed in the schema it is infinite, which seems a tad on the absurd side of things, but the spec doesn't define ANY limits.
  2. What are the meanings of the suffix values?
    1. One can generally assume they are a "scale" factor but what is the scale value? (1000 or 1024?)
    2. Are they case insensitive?
      1. That is, are the upper and lower case forms aliases or do they indicate a distinct scale value?
  3. Is there any tool that VALIDATES an SVD file against the provided schema?
    1. It seems that's not currently available as SVDConv doesn't contain any reference to the schema I can see.
    2. This means that SDVConv is the defacto standard, and the XML schem is merely a reference that doesn't reflect reality and cannot be used to
      1. Validate an SVD file
      2. Generate code to parse/interpret an SVD file

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