From b40c3d6cb20081ff8941fc4addef92170ffb01a9 Mon Sep 17 00:00:00 2001 From: GuzTech Date: Thu, 26 Nov 2020 15:50:00 +0100 Subject: [breaking-change] Add `_n` suffix to argument names of pins with fixed inverters. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note: this change does NOT affect pin functionality or naming, and does not require modifying your design. It does however affect some board files, where keywords corresponding to active low pins will have to be adjusted: SPIResource(0, cs="C1", ...) → SPIResource(0, cs_n="C1", ...) The new naming scheme will make it easier to write and audit board files by clearly marking inverted pins in resource factories, similarly to how `PinsN` indicates the same in bare resources. Fixes #129. --- nmigen_boards/de10_lite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nmigen_boards/de10_lite.py') diff --git a/nmigen_boards/de10_lite.py b/nmigen_boards/de10_lite.py index 21fd8a5..9f260ce 100644 --- a/nmigen_boards/de10_lite.py +++ b/nmigen_boards/de10_lite.py @@ -56,7 +56,7 @@ class DE10LitePlatform(IntelPlatform): attrs=Attrs(io_standard="3.3-V LVTTL")), SDRAMResource(0, - clk="L14", cs="U20", we="V20", ras="U22", cas="U21", + clk="L14", cs_n="U20", we_n="V20", ras_n="U22", cas_n="U21", ba="T21 T22", a="U17 W19 V18 U18 U19 T18 T19 R18 P18 P19 T20 P20 R20", dq="Y21 Y20 AA22 AA21 Y22 W22 W20 V21 P21 J22 H21 H22 G22 G20 G19 F22", dqm="V22 J21", attrs=Attrs(io_standard="3.3-V LVCMOS")), -- cgit v1.2.3