Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<spirit:master/> and <spirit:slave/> info for BusInterfaces cannot be extracted in useful way #27

Open
tpoikela opened this issue Jun 10, 2021 · 1 comment

Comments

@tpoikela
Copy link

Since master/slave is defined as an empty tag like this (see also http://www.accellera.org/XMLSchema/SPIRIT/1685-2009/busInterface.xsd) :

<spirit:busInterface>
  <spirit:slave/>
  <!-- OR -->
  <spirit:master/>
  ...
<spirit:busInterface/>

in the current implementation of ipyxact they are always empty strings, regardless of their presence or absence in the IP-XACT file. Thus, it is not possible to extract master/slave information from the parsed structure.

I don't know if ipyxact can currently handle a case like this, but one option would be to set the property as True if it's defined, and False otherwise. However, I don't think this fits into your current scheme of defining the grammar/types using yaml.

@tpoikela tpoikela changed the title <spirt: master/> and <spirit:slave /> info for BusInterfaces cannot be extracted in useful way <spirit:master/> and <spirit:slave/> info for BusInterfaces cannot be extracted in useful way Jun 10, 2021
@olofk
Copy link
Owner

olofk commented Dec 14, 2023

Hmm... that's pretty bad. Need to check if it's the same situation with the new API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants