diff options
| author | GuzTech <GuzTech@users.noreply.github.com> | 2020-11-26 15:50:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-26 14:50:00 +0000 |
| commit | b40c3d6cb20081ff8941fc4addef92170ffb01a9 (patch) | |
| tree | 77ec275eeedadcce9a0b621cb4ae5c8db32211a3 /nmigen_boards/mister.py | |
| parent | b90a89da7c3878ee10db3cb2d10f13aa2bbb85c3 (diff) | |
[breaking-change] Add `_n` suffix to argument names of pins with fixed inverters.
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.
Diffstat (limited to 'nmigen_boards/mister.py')
| -rw-r--r-- | nmigen_boards/mister.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nmigen_boards/mister.py b/nmigen_boards/mister.py index 2eacedf..d961a3d 100644 --- a/nmigen_boards/mister.py +++ b/nmigen_boards/mister.py @@ -40,7 +40,7 @@ class MisterPlatform(IntelPlatform): # LTC2308 analogue-to-digital converter SPIResource(0, - cs="U9", clk="V10", copi="AC4", cipo="AD4", + cs_n="U9", clk="V10", copi="AC4", cipo="AD4", attrs=Attrs(io_standard="3.3-V LVTTL")), # ADV7513 HDMI transmitter @@ -65,7 +65,7 @@ class MisterPlatform(IntelPlatform): # MiSTer SDRAM Board (required) # https://github.com/MiSTer-devel/Hardware_MiSTer/blob/master/releases/sdram_xs_2.2.pdf SDRAMResource(0, - clk="20", cs="33", we="27", ras="32", cas="31", + clk="20", cs_n="33", we_n="27", ras_n="32", cas_n="31", ba="34 35", a="37 38 39 40 28 25 26 23 24 21 36 22 19", dq="1 2 3 4 5 6 7 8 18 17 16 15 14 13 9 10", dqm="", conn=("gpio", 0), attrs=Attrs(io_standard="3.3-V LVCMOS")), |
