interconnect/wishbone: remove CSRBank (probably not used by anyone).
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 May 2020 16:04:08 +0000 (18:04 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 May 2020 16:04:08 +0000 (18:04 +0200)
litex/soc/interconnect/wishbone.py

index b1c1dd219c6a89f46bcbdc56f72f299093df43bf..187f2c3138326cf1779ff1fe7fc6767022519ba9 100644 (file)
@@ -517,28 +517,3 @@ class Cache(Module):
                 )
             )
         )
-
-# Wishbone CSRBank ---------------------------------------------------------------------------------
-
-class CSRBank(csr.GenericBank):
-    def __init__(self, description, bus=None):
-        if bus is None:
-            bus = Interface()
-        self.bus = bus
-
-        ###
-
-        csr.GenericBank.__init__(self, description, len(self.bus.dat_w))
-
-        for i, c in enumerate(self.simple_csrs):
-            self.comb += [
-                c.r.eq(self.bus.dat_w[:c.size]),
-                c.re.eq(self.bus.cyc & self.bus.stb & ~self.bus.ack & self.bus.we & \
-                    (self.bus.adr[:self.decode_bits] == i))
-            ]
-
-        brcases = dict((i, self.bus.dat_r.eq(c.w)) for i, c in enumerate(self.simple_csrs))
-        self.sync += [
-            Case(self.bus.adr[:self.decode_bits], brcases),
-            If(bus.ack, bus.ack.eq(0)).Elif(bus.cyc & bus.stb, bus.ack.eq(1))
-        ]