comment about using PriorityEncoder
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 24 Mar 2021 18:59:42 +0000 (18:59 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 24 Mar 2021 18:59:42 +0000 (18:59 +0000)
src/soc/simple/issuer.py

index aaed35085c3f407976ce3e1cb36d2e0c05173cd7..9ae29fb1a2f7e4bf45412f7cd74880c788787314 100644 (file)
@@ -590,6 +590,9 @@ class TestIssuerInternal(Elaboratable):
                         pred_dst_zero = pdecode2.rm_dec.pred_dz
 
                     """
+                    TODO: actually, can use
+                    PriorityEncoder(self.srcmask | (1<<cur_srcstep))
+
                     if not pred_src_zero:
                         if (((1<<cur_srcstep) & self.srcmask) == 0) and
                               (cur_srcstep != vl):