</domain>
<domain name="CP_SET_DRAW_STATE" width="32" varset="chip" variants="A4XX-">
- <array offset="0" name="" stride="3" length="100">
+ <array offset="0" stride="3" length="100">
<reg32 offset="0" name="0">
<bitfield name="COUNT" low="0" high="15" type="uint"/>
<bitfield name="DIRTY" pos="16" type="boolean"/>
<value value="3" name="NON_PRIV_SAVE_ADDR"/>
<value value="4" name="COUNTER"/>
</enum>
- <array offset="0" name="" stride="3" length="100">
+ <array offset="0" stride="3" length="100">
<reg32 offset="0" name="0">
<bitfield name="PSEUDO_REG" low="0" high="2" type="pseudo_reg"/>
</reg32>
class Array(object):
def __init__(self, attrs, domain):
- self.name = attrs["name"]
+ if "name" in attrs:
+ self.name = attrs["name"]
+ else:
+ self.name = ""
self.domain = domain
self.offset = int(attrs["offset"], 0)
self.stride = int(attrs["stride"], 0)
<group ref="rng:topGroup" />\r
<group ref="rng:regarrayGroup" />\r
</choice>\r
- <attribute name="name" type="NMTOKEN" use="required" />\r
+ <attribute name="name" type="NMTOKEN" use="optional" />\r
<attribute name="offset" type="rng:HexOrNumber" use="required" />\r
<attribute name="stride" type="rng:HexOrNumber" use="required" />\r
<attribute name="length" type="rng:HexOrNumber" use="required" />\r
return res;
} else if (!strcmp(node->name, "stripe") || !strcmp(node->name, "array")) {
struct rnndelem *res = calloc(sizeof *res, 1);
+ if (!strcmp(node->name, "array"))
+ res->name = "";
res->type = (strcmp(node->name, "stripe")?RNN_ETYPE_ARRAY:RNN_ETYPE_STRIPE);
res->length = 1;
res->file = file;