diff options
| author | whitequark <whitequark@whitequark.org> | 2019-06-28 03:33:41 +0000 |
|---|---|---|
| committer | whitequark <whitequark@whitequark.org> | 2019-06-28 03:37:11 +0000 |
| commit | b2af7361c1863c4b6699b21c4b06935edd3671b8 (patch) | |
| tree | 88fd035bdb18a057a0fb21539280a67781450d39 /nmigen_boards/versa_ecp5.py | |
| parent | c2a8e9adbce74078f0a147e4cce87ff1b7c2fb8e (diff) | |
[breaking-change] Factor out "serial" resource and rename to "uart".
Also, add missing pullups where appropriate.
Diffstat (limited to 'nmigen_boards/versa_ecp5.py')
| -rw-r--r-- | nmigen_boards/versa_ecp5.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nmigen_boards/versa_ecp5.py b/nmigen_boards/versa_ecp5.py index 9216849..6d1c41a 100644 --- a/nmigen_boards/versa_ecp5.py +++ b/nmigen_boards/versa_ecp5.py @@ -57,15 +57,14 @@ class VersaECP5Platform(LatticeECP5Platform): Resource("user_sw", 6, PinsN("K19", dir="i"), Attrs(IO_TYPE="LVCMOS25")), Resource("user_sw", 7, PinsN("K20", dir="i"), Attrs(IO_TYPE="LVCMOS25")), - Resource("serial", 0, - Subsignal("rx", Pins("C11", dir="i")), - Subsignal("tx", Pins("A11", dir="o")), - Attrs(IO_TYPE="LVCMOS33", PULLMODE="UP") + UARTResource(0, + rx="C11", tx="A11", + attrs=Attrs(IO_TYPE="LVCMOS33", PULLMODE="UP") ), *SPIFlashResources(0, cs="R2", clk="U3", miso="W2", mosi="V2", wp="Y2", hold="W1", - attrs=Attrs(IO_STANDARD="SB_LVCMOS33") + attrs=Attrs(IO_STANDARD="LVCMOS33") ), Resource("eth_clk125", 0, Pins("L19"), |
