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

icemulti: Re-use images #103

Merged
merged 12 commits into from
Sep 14, 2017
Merged

icemulti: Re-use images #103

merged 12 commits into from
Sep 14, 2017

Conversation

rlutz
Copy link
Contributor

@rlutz rlutz commented Sep 13, 2017

This is the fourth part of the changes suggested in pull request #90. It causes icemulti to include input files listed on the command line only once in the output file, regardless of whether they have been specified explicitly by file name or implicitly using -p / as default.

Up to now, icemulti included the input files listed on the command line exactly in that order in the output file. The power-on/reset header and, if less than four input files have been specified, the remaining headers point to the input file to be used on power-on/reset (usually the first one).

Normally, the input files are different from each other, so this is not an issue. However, once specifying a default and a power-on/reset input file by its file name rather than index will be implemented, this will cause an inconsistency. It would be counter-intuitive to the user if different ways of specifying the input files would result in different outputs. Also, there is no reason why listing an input file multiple times on the command line should produce a different output than omitting it and having it used as default.

This pull request contains a series of commits which refactor icemulti in a way which makes this change possible. In addition, it prints the now stored image filenames along with the offsets if offset printing has been requested on the command line.

@cliffordwolf cliffordwolf merged commit d1bfc45 into YosysHQ:master Sep 14, 2017
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

Successfully merging this pull request may close these issues.

2 participants