Origen-SDK / o2

MIT License
4 stars 0 forks source link

Address block attributes #45

Open info-rchitect opened 4 years ago

info-rchitect commented 4 years ago

I am working on the remote file translator, specifically on IP-XACT currently. I don't see a way to model some of the address block attributes such as range and width.

  <spirit:memoryMaps>
    <spirit:memoryMap>
      <spirit:name>RegisterMap</spirit:name>
      <spirit:addressBlock>
        <spirit:name></spirit:name>
        <spirit:baseAddress>0x0</spirit:baseAddress>
        <spirit:range>20</spirit:range>
        <spirit:width>32</spirit:width>

Is this on the TODO list?

ginty commented 4 years ago

Yes, I think the API will be:

with AddressBlock("bank0", range=20, width=32):