From: Michael Nolan Date: Sun, 17 May 2020 16:50:02 +0000 (-0400) Subject: Move perm inside Bpermd as it's not an input or output X-Git-Tag: div_pipeline~1108 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=715198d681c393b61e1a1e8d6da6c20a80ef9bf7;p=soc.git Move perm inside Bpermd as it's not an input or output --- diff --git a/src/soc/logical/bperm.py b/src/soc/logical/bperm.py index 054cce00..23042a22 100644 --- a/src/soc/logical/bperm.py +++ b/src/soc/logical/bperm.py @@ -28,13 +28,14 @@ class Bpermd(Elaboratable): """ def __init__(self, width): - self.perm = Signal(width, reset_less=True) + self.width = width self.rs = Signal(width, reset_less=True) self.ra = Signal(width, reset_less=True) self.rb = Signal(width, reset_less=True) def elaborate(self, platform): m = Module() + perm = Signal(self.width, reset_less=True) rb64 = Array([Signal(1, reset_less=True, name=f"rb64_{i}") for i in range(64)]) for i in range(64): m.d.comb += rb64[i].eq(self.rb[i]) @@ -43,8 +44,8 @@ class Bpermd(Elaboratable): idx = Signal(8, name=f"idx_{i}", reset_less=True) m.d.comb += idx.eq(index) with m.If(idx < 64): - m.d.comb += self.perm[i].eq(rb64[idx]) - m.d.comb += self.ra[0:8].eq(self.perm) + m.d.comb += perm[i].eq(rb64[idx]) + m.d.comb += self.ra[0:8].eq(perm) return m