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

Improved handling of blackboxes #22

Open
wzab opened this issue Sep 10, 2019 · 0 comments
Open

Improved handling of blackboxes #22

wzab opened this issue Sep 10, 2019 · 0 comments

Comments

@wzab
Copy link
Owner

wzab commented Sep 10, 2019

Current implementation incorrectly handles the situation when the same blackbox is instantiated a few times with different addrbits. In fact the first instance defines the addrbits for the generated C header and probably for other files.
The better solution could be requiring a single declaration of the blackbox with addrbits (and optionally also the path to the XML address map?) and then using so defined blackbox:

<blackbox name="BB1" addrbits=12 xmlpath="../BB1.xml" />
<block name="AnyBlock">
     ...
     <subblock name="BB1_Instance1" type="BB1" />
     <subblock name=Instance_2" type="BB2" />
     ...
</block>
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

1 participant