From: Cesar Strauss Date: Sat, 3 Apr 2021 20:12:30 +0000 (-0300) Subject: Reminder for a possible hardware optimization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a9ebd800c9ce42cf6135f773eb072be00f33ee0;p=soc.git Reminder for a possible hardware optimization --- diff --git a/src/soc/simple/issuer.py b/src/soc/simple/issuer.py index 5101ecb2..0bfbcd3c 100644 --- a/src/soc/simple/issuer.py +++ b/src/soc/simple/issuer.py @@ -607,6 +607,8 @@ class TestIssuerInternal(Elaboratable): comb += skip_srcstep.eq(cur_srcstep + src_delta) # shift-out all leading zeros from the mask # plus the leading "one" bit + # TODO count leading zeros and shift-out the zero + # bits, in the same step, in hardware sync += self.srcmask.eq(self.srcmask >> (src_delta+1)) # same as above, but for dststep