From 0a9ebd800c9ce42cf6135f773eb072be00f33ee0 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Sat, 3 Apr 2021 17:12:30 -0300 Subject: [PATCH] Reminder for a possible hardware optimization --- src/soc/simple/issuer.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2