[Libre-soc-bugs] [Bug 713] PartitionedSignal enhancement to add partition-context-aware lengths

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Oct 8 22:47:31 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=713

--- Comment #41 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #37)

> This works because, for each lane that is enabled, all parts are assigned
> due to all bits in the condition for that lane being identical due to being
> a sign-extended bool. padding being assigned along with their corresponding
> lanes isn't a problem.

as a general rule of software engineering, "elegant" tricks either
need to be explicitly documented, or simply avoided altogether.

the reason is real simple: they're unmaintainable by the average
engineer, who doesn't dare touch it for fear of breaking something.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list