-
Notifications
You must be signed in to change notification settings - Fork 156
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
clash-testsuite
... Ram/RMultiTop
includes top entity in test bench
#2192
Comments
I'm not sure I entirely understand. clash-compiler/tests/shouldwork/Signal/Ram/RMultiTop.hs Lines 16 to 19 in 7843abe
It only uses clash-compiler/tests/shouldwork/Signal/Ram/RMulti.hs Lines 35 to 47 in 7843abe
Am I missing something? :) |
But |
Instead of `testBench` testing `topEntity`, the former included a functionally indentical copy of the latter. Fixes #2192
Here, lemme show you what I mean. That PR should fix the issue. But I'm going to let it wait for a while until my brain is in a high enough gear to pick all the glaring mistakes from it (all might be zero). Note that it seems that you need a trail of |
I've just created an issue about the |
Instead of `testBench` testing `topEntity`, the former included a functionally indentical copy of the latter. Fixes #2192
Instead of `testBench` testing `topEntity`, the former included a functionally indentical copy of the latter. Fixes #2192 (cherry picked from commit 4174d58) Co-authored-by: Peter Lebbing <[email protected]>
Instead of creating a test bench named e.g.
vhdl/RMultiTop.testBench/testBench.vhdl
that tests avhdl/RMultiTop.topEntity/topEntity.vhdl
, the former includes a copy of the latter.It is rather odd that this faulty version of the code ended up in the commit and I know what to do to fix it.
I don't know the repercussions of the fault. I only know that for instance an
Enable
input on a top entity that is driven byenableGen
in the test bench might get the enable elided from the final HDL. This will never happen with a properly declared top entity / test bench relation. But since it is generally expected that test benches do not include a copy of the top entities they test, there might be other repercussions? Alternatively it's just about sharing of work and it has no functional differences (other than theEnable
).The text was updated successfully, but these errors were encountered: