Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/nmigen-boards
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e701859a2744
Choose a base ref
...
head repository: m-labs/nmigen-boards
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9b532bef9340
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 4, 2019

  1. Make oe in SRAMResource optional.

    cr1901 authored and whitequark committed Aug 4, 2019
    Copy the full SHA
    9b532be View commit details
Showing with 4 additions and 2 deletions.
  1. +4 −2 nmigen_boards/dev/sram.py
6 changes: 4 additions & 2 deletions nmigen_boards/dev/sram.py
Original file line number Diff line number Diff line change
@@ -4,10 +4,12 @@
__all__ = ["SRAMResource"]


def SRAMResource(*args, cs, oe, we, a, d, dm=None, attrs=None):
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)))
io.append(Subsignal("oe", PinsN(oe, 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")))