From c7c637043817eae6f48c33b707b40c9c1b20f199 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 3 Oct 2019 05:54:12 +0000 Subject: Reorganize resource taxonomy. The current hierarchy isn't particularly well suited to resources like SDRAM or NOR flash, so make it much less fine-grained but easier to use and less nitpicky. --- nmigen_boards/dev/sram.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 nmigen_boards/dev/sram.py (limited to 'nmigen_boards/dev/sram.py') diff --git a/nmigen_boards/dev/sram.py b/nmigen_boards/dev/sram.py deleted file mode 100644 index 14e31ce..0000000 --- a/nmigen_boards/dev/sram.py +++ /dev/null @@ -1,20 +0,0 @@ -from nmigen.build import * - - -__all__ = ["SRAMResource"] - - -def SRAMResource(*args, cs, oe=None, we, a, d, dm=None, attrs=None): - io = [] - io.append(Subsignal("cs", PinsN(cs, dir="o", assert_width=1))) - if oe is not None: - # Asserted WE# deactivates the D output buffers, so WE# can be used to replace OE#. - io.append(Subsignal("oe", PinsN(oe, dir="o", assert_width=1))) - io.append(Subsignal("we", PinsN(we, dir="o", assert_width=1))) - io.append(Subsignal("a", Pins(a, dir="o"))) - io.append(Subsignal("d", Pins(d, dir="io"))) - if dm is not None: - io.append(Subsignal("dm", PinsN(dm, dir="o"))) # dm="LB# UB#" - if attrs is not None: - io.append(attrs) - return Resource.family(*args, default_name="sram", ios=io) -- cgit v1.2.3