[libre-riscv-dev] [Bug 216] LOAD STORE buffer needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu May 28 13:38:44 BST 2020


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

--- Comment #48 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
----------

hmmm...

            l = []
            for j in range(self.array_size):
                select = self.addr_match_i[idx][j] & valid
                l.append(Mux(select, self.data_i[j], 0))
            self.data_o.eq(ortreereduce(l))

this would be better / clearer:

            with m.If(valid):
                l = []
                for j in range(self.array_size):
                    select = self.addr_match_i[idx][j]
                    l.append(Mux(select, self.data_i[j], 0))
                self.data_o.eq(ortreereduce(l))


-----

return m is missing.

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


More information about the libre-riscv-dev mailing list