-
Notifications
You must be signed in to change notification settings - Fork 607
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
loadMemoryFromFile doesn't work with memories of aggregate types #968
Comments
Okay, so I'm going to try to fix this by adding a firrtl pass which replaces a The fix should definitely happen at the firrtl level since chisel doesn't know that memories are split; and both chisel2verilog and treadle depend on the firrtl annos (meaning that there's a common place to insert the modification). Writing a compiler pass is motivated by annotations generally not having type information. To add this would also require chisel annotations to know too much about the firrtl IR (i.e. |
Turns out the real issue was that |
Thanks for finding and fixing the bug :) |
Type of issue: bug report
Impact: API addition (no impact on existing code)
What is the current behavior?
Mem
of typeBundle
is split into single-type memories with names liketheMem_field1
andtheMem_field2
. Unfortunately, theloadMemoryFromFile
annotation only contains the top-level name, so when processed by treadle, one receives the errorWhat is the expected behavior?
loadMemoryFromFile
should work on memories of aggregate types.Please tell us about your environment:
master
branch of all relevant reposThe text was updated successfully, but these errors were encountered: