To make register model from IP-XACT usually we do the implement XML as I know.
I came across the example as below, But I didn’t get the usage of value/name in field.
You can see the K0, K1, K2 and K3 Also 0,1,2 and 3 are implemented under a field.
Could you guide me please If a Field has value and name, how does it work? what is the purpose of them?
<spirit:field>
<spirit:name>frame_kind</spirit:name>
<spirit:bitOffset>14</spirit:bitOffset>
<spirit:bitWidth>2</spirit:bitWidth>
<spirit:values>
<spirit:value>0</spirit:value>
<spirit:name>k0</spirit:name>
<spirit:description>0</spirit:description>
</spirit:values>
<spirit:values>
<spirit:value>1</spirit:value>
<spirit:name>k1</spirit:name>
</spirit:values>
<spirit:values>
<spirit:value>2</spirit:value>
<spirit:name>k2</spirit:name>
</spirit:values>
<spirit:values>
<spirit:value>3</spirit:value>
<spirit:name>k3</spirit:name>
</spirit:values>
<spirit:vendorExtensions>
<vendorExtensions:type>framek</vendorExtensions:type>
<!--vendorExtensions:hdl_path>frame</vendorExtensions:hdl_path-->
</spirit:vendorExtensions>
</spirit:field>