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

Creat bits2init.py #45

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Creat bits2init.py #45

wants to merge 5 commits into from

Conversation

jonath8
Copy link
Collaborator

@jonath8 jonath8 commented Jul 7, 2020

Created bits2init.py, which takes a bitstream, and writes the init strings used to make that bitstream to a file

Signed-off-by: jonath8 [email protected]

jonath8 added 2 commits July 6, 2020 16:43
…rings used to make that bitstream to a file

Signed-off-by: jonath8 <[email protected]>
Signed-off-by: jonath8 <[email protected]>
@nelsobe
Copy link
Collaborator

nelsobe commented Jul 7, 2020

Nicely done!

Comments:

  • Some of lines 59-61 seems redundant - you concat a bunch of leading 0's and then rip them back off again?
  • Line 97 - why w+ if you only write?

Finally, there is a fasm2init_all.py program that will run fasm2init for all directories in baseDir. How about cannibalize it for a bits2init_all.py program and then run it with checking turned on for a wide range of designs (1-72 bits wide - not all widths but maybe 1, 2, 4, 8, 9, 16, 18, 32, 36, 64, 72, 1k-64k deep)? Might require you to create some new designs but would be a good stress test.

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