Skip to content

Commit

Permalink
pipistrello: drop ttls on pmod, add leds back in
Browse files Browse the repository at this point in the history
jordens committed Mar 8, 2016
1 parent f39208c commit f33baf3
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions artiq/gateware/targets/pipistrello.py
Original file line number Diff line number Diff line change
@@ -196,19 +196,13 @@ def __init__(self, cpu_type="or1k", **kwargs):
self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy, ofifo_depth=4))

for led_number in range(2):
for led_number in range(4):
phy = ttl_simple.Output(platform.request("user_led", led_number))
self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy, ofifo_depth=4))

spi_pins = self.platform.request("pmod_extended_spi", 0)

for i, p in enumerate((spi_pins.int, spi_pins.rst)):
phy = ttl_simple.Inout(p)
self.submodules += phy
rtio_channels.append(rtio.Channel.from_phy(phy, ififo_depth=4,
ofifo_depth=4))

self.config["RTIO_REGULAR_TTL_COUNT"] = len(rtio_channels)

phy = ttl_simple.ClockGen(platform.request("ttl", 15))
4 changes: 2 additions & 2 deletions doc/manual/core_device.rst
Original file line number Diff line number Diff line change
@@ -128,9 +128,9 @@ When plugged to an adapter, the NIST QC1 hardware can be used. The TTL lines are
+--------------+------------+--------------+
| 19 | USER_LED_2 | Output |
+--------------+------------+--------------+
| 20 | PMOD_4 | Input+Output |
| 20 | USER_LED_3 | Output |
+--------------+------------+--------------+
| 21 | PMOD_5 | Input+Output |
| 21 | USER_LED_4 | Output |
+--------------+------------+--------------+
| 22 | TTL15 | Clock |
+--------------+------------+--------------+

0 comments on commit f33baf3

Please sign in to comment.