[Libre-soc-bugs] [Bug 671] convert spec pseudocode to use XLEN width
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Mon Aug 30 20:40:39 BST 2021
https://bugs.libre-soc.org/show_bug.cgi?id=671
--- Comment #49 from dmitry.selyutin at 3mdeb.com ---
(In reply to Luke Kenneth Casson Leighton from comment #40)
> but, actually, i think even that would work.
This seems to do the trick:
do i = 0 to 1
n <- 0
do j = 0 to ((XLEN/2)-1)
if (RS)[(i*(XLEN/2))+j] = 1 then
n <- n+1
RA[(i*(XLEN/2)):(i*(XLEN/2))+((XLEN/2)-1)] <- n
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list