Skip to content

Creat bits2init.py#45

Open
jonath8 wants to merge 5 commits intomasterfrom
bits2init
Open

Creat bits2init.py#45
jonath8 wants to merge 5 commits intomasterfrom
bits2init

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 jonathan.brent.nelson@gmail.com

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

Signed-off-by: jonath8 <jonathan.brent.nelson@gmail.com>
Signed-off-by: jonath8 <jonathan.brent.nelson@gmail.com>
@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.

jonath8 added 3 commits July 7, 2020 12:55
Signed-off-by: jonath8 <jonathan.brent.nelson@gmail.com>
Signed-off-by: jonath8 <jonathan.brent.nelson@gmail.com>
Signed-off-by: jonath8 <jonathan.brent.nelson@gmail.com>
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