forked from M-Labs/humpback-dds
migen: add io_update
This commit is contained in:
parent
6ef122c9a1
commit
a62c204b78
@ -16,10 +16,12 @@ class UrukulConnector(Module):
|
||||
platform.request("eem0_n", 2),
|
||||
platform.request("eem0", 3),
|
||||
platform.request("eem0", 4),
|
||||
platform.request("eem0", 5)
|
||||
platform.request("eem0", 5),
|
||||
platform.request("eem0", 6)
|
||||
]
|
||||
spi = platform.request("spi")
|
||||
led = platform.request("user_led")
|
||||
io_update = platform.request("io_update")
|
||||
|
||||
# Assert SPI resource length
|
||||
assert len(spi.sclk) == 1
|
||||
@ -61,6 +63,9 @@ class UrukulConnector(Module):
|
||||
eem0[5].p.eq(spi.cs[2]),
|
||||
eem0[5].n.eq(~spi.cs[2]),
|
||||
|
||||
eem0[6].p.eq(io_update),
|
||||
eem0[6].n.eq(~io_update),
|
||||
|
||||
led.eq(1)
|
||||
]
|
||||
|
||||
|
@ -31,15 +31,13 @@ _io.append(
|
||||
)
|
||||
)
|
||||
|
||||
# Insert LVDS input
|
||||
# Resource: DDS I/O_Update
|
||||
'''
|
||||
io_update -> PB13 : B12
|
||||
'''
|
||||
_io.append(
|
||||
("eem_in", 2,
|
||||
Subsignal("p", Pins("C1")),
|
||||
Subsignal("n", Pins("C2")),
|
||||
IOStandard("LVDS25"),
|
||||
("io_update", 0, Pins("B12"), IOStandard("LVCMOS33"))
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
# Inherit Platform to gain the programmed clock attribute
|
||||
class HumpbackPlatform(Platform):
|
||||
|
Loading…
Reference in New Issue
Block a user