Origen-SDK / cross_origen

Provides import and export methods from Origen to common formats e.g. IP-XACT
http://origen-sdk.org/cross_origen
MIT License
5 stars 2 forks source link

Updates for top-level register export to IP-XACT + coverage improvement #12

Closed chrishume closed 5 years ago

chrishume commented 5 years ago

Updated to_ipxact to allow for proper export of top-level registers (ex: models with no sub-blocks). Added :addr_block_name to options hash to allow setting an addressBlock name in the XML output for this scenario. Also added a multi-bit :div to MCLKDIV register in dut.rb to improve testing coverage.

The :addr_block_name addition was necessary to preserve existing behavior; if domain_name was used, it could potentially break existing model export & import, which was immediately visible in spec testing.