From: whitequark Date: Sun, 13 Oct 2019 13:04:15 +0000 (+0000) Subject: resources.memory: fix typo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=835c175d7cf9d143aea2c7dbc0c870ede655cfc2;p=nmigen-boards.git resources.memory: fix typo. --- diff --git a/nmigen_boards/resources/memory.py b/nmigen_boards/resources/memory.py index 752c3e5..b2be757 100644 --- a/nmigen_boards/resources/memory.py +++ b/nmigen_boards/resources/memory.py @@ -106,18 +106,18 @@ def SRAMResource(*args, cs, oe=None, we, a, d, dm=None, def SDRAMResource(*args, clk, cke=None, cs, we, ras, cas, ba, a, dq, dqm=None, conn=None, attrs=None): io = [] - io.append(Subsignal("clk", Pins(clk, dir="o", conn=conn, conn=None, assert_width=1))) + io.append(Subsignal("clk", Pins(clk, dir="o", conn=conn, assert_width=1))) if cke is not None: - io.append(Subsignal("clk_en", Pins(cke, dir="o", conn=conn, conn=None, assert_width=1))) - io.append(Subsignal("cs", PinsN(cs, dir="o", conn=conn, conn=None, assert_width=1))) - io.append(Subsignal("we", PinsN(we, dir="o", conn=conn, conn=None, assert_width=1))) - io.append(Subsignal("ras", PinsN(ras, dir="o", conn=conn, conn=None, assert_width=1))) - io.append(Subsignal("cas", PinsN(cas, dir="o", conn=conn, conn=None, assert_width=1))) - io.append(Subsignal("ba", Pins(ba, dir="o", conn=conn, conn=None))) - io.append(Subsignal("a", Pins(a, dir="o", conn=conn, conn=None))) - io.append(Subsignal("dq", Pins(dq, dir="io", conn=conn, conn=None))) + io.append(Subsignal("clk_en", Pins(cke, dir="o", conn=conn, assert_width=1))) + io.append(Subsignal("cs", PinsN(cs, dir="o", conn=conn, assert_width=1))) + io.append(Subsignal("we", PinsN(we, dir="o", conn=conn, assert_width=1))) + io.append(Subsignal("ras", PinsN(ras, dir="o", conn=conn, assert_width=1))) + io.append(Subsignal("cas", PinsN(cas, dir="o", conn=conn, assert_width=1))) + io.append(Subsignal("ba", Pins(ba, dir="o", conn=conn))) + io.append(Subsignal("a", Pins(a, dir="o", conn=conn))) + io.append(Subsignal("dq", Pins(dq, dir="io", conn=conn))) if dqm is not None: - io.append(Subsignal("dqm", Pins(dqm, dir="o", conn=conn, conn=None))) # dqm="LDQM# UDQM#" + io.append(Subsignal("dqm", Pins(dqm, dir="o", conn=conn))) # dqm="LDQM# UDQM#" if attrs is not None: io.append(attrs) return Resource.family(*args, default_name="sdram", ios=io)