-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix ILA short name #456
Fix ILA short name #456
Conversation
048f9bb
to
c549d87
Compare
bittide-instances/src/Bittide/Instances/Hitl/Post/BoardTestExtended.hs
Outdated
Show resolved
Hide resolved
c549d87
to
00ad372
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done my drive-by review :-). I'll let @hiddemoll be the judge.
Unfortunately, the resulting ILA cell names are still a bit unpredictable. I still think the given update is the correct the way it is, just naming probably has to be fixed/improved within Clash (cf. #2649). |
Why would you still let Clash generate ILA names, instead of doing it with ILA cell name in The cell_name for the ILA named |
00ad372
to
850676e
Compare
@hiddemoll Is there still any reason to keep this open or can we merge this PR? |
Fixes the short name extraction of the ILA cell name to line up with the name, as it is set with Clash's `setName`.
850676e
to
b962efc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should give all ILAs a specific name in Clash with setName
. If we don't, we get ILA cell names with the suffix ___VOID_TDECL_NOOP__
.
These are the extracted $short_name
in each instance (both fullMesh
tests are pretty much identical). The old
name is staging, the new
name is your branch, the sug
is my suggestion. All are after I added the setName
for the ILA in fullMeshHwCcTest
.
boardTestExtended
:
cell: boardTestExtended21_boardTestIla/boardTestExtended21_boardTestIla
old : boardTestIla
new : boardTestExtended21_boardTestIla
sug : boardTestIla
fullMeshHwCcTest
:
cell: Bittide_Instances_Hitl_FullMeshHwCc_fullMeshHwCcTest_callistoClockControlWithIla_callistoResult/ilaPlot/ilaPlot
old : Instances_Hitl_FullMeshHwCc_fullMeshHwCcTest_callistoClockControlWithIla_callistoResult
new : ilaPlot
sug : ilaPlot
cell: fullMeshHwCcTest69_fincFdecIla/fullMeshHwCcTest69_fincFdecIla
old : fincFdecIla
new : fullMeshHwCcTest69_fincFdecIla
sug : fincFdecIla
I can't suggest changes to files which you haven't altered, so I've created a new branch: shorter-ila-name
. Do you agree on the new short_name
which I suggest there?
Alright. Then this all just originates from a wrong assumption on the behavior of cell names turning the whole PR obsolete. The only thing that probably should be updated is adding I'm still thinking about whether we should enforce the user to provide names for |
A bug which will be fixed by clash-lang/clash-compiler#2662 once I get around to finishing it. |
That's not all I changed on shorter-ila-name. I also changed how the TCL gets a |
Fixes the short name extraction of the ILA cell name to line up with the name, as it is set with Clash's
setName
.