You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hah I had noted this too, but didn't comment on it. I think I didn't even write it down for myself, which was dumb. Anyway...... the current implementation is fine in hardware, and a quick implementation would probably need a primitive. Unless you use clashSimulation from Clash.Magic to use the quick implementation in simulation but use v2bv . reverse . bv2v when generating HDL. That will write your primitive for you (but like a usual primitive, it's still up to you to make sure simulation and HDL match in behaviour).
[edit]
The quick implementation should probably deconstruct the bitvector and construct it again at the end because logical operations on bitvector are needlessly expensive for this application, in this PR I achieved a roughly threefold speedup of logical operations that way.
[/edit]
[edit 2]
I read this wrong: I read this as that Rowan was going to do the implementation. Once the issue is raised, I'll copy-paste the essence of the above to that issue.
[/edit 2]
The text was updated successfully, but these errors were encountered:
Slow in simulation implementation:
Originally mentioned by @christiaanb in #2694 (comment)
Originally posted by @DigitalBrains1 in #2694 (comment)
The text was updated successfully, but these errors were encountered: