[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
Thu Oct 14 22:45:17 BST 2021


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

--- Comment #118 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Jacob Lifshay from comment #117)
> Other cases where XLEN should probably be something separate than a
> SimdShape:
> XLEN - pop_count(...)
> 
> log2(XLEN)
> 
> ceil-div:
> (temporarily has negative values, i expect layout to not work with negative
> inputs)
> a = -(-b // 5)

exponent_bias = (1 << (fp_exponent_sizes[XLEN] - 1)) - 1
unbiased_exponent = Signal(signed(fp_exponent_sizes[XLEN] + 1))
biased_exponent.eq(exponent_bias + unbiased_exponent)

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


More information about the libre-soc-bugs mailing list