modify TestDesign to be able to simulate phy with host <--> device loopback
This commit is contained in:
parent
7e14c4fc51
commit
1d053bd7ee
|
@ -67,7 +67,16 @@ _io = [
|
|||
IOStandard("LVCMOS25")
|
||||
),
|
||||
|
||||
("sata", 0,
|
||||
("sata_host", 0,
|
||||
Subsignal("refclk_p", Pins("YYY")),
|
||||
Subsignal("refclk_n", Pins("YYY")),
|
||||
Subsignal("txp", Pins("YYY")),
|
||||
Subsignal("txn", Pins("YYY")),
|
||||
Subsignal("rxp", Pins("YYY")),
|
||||
Subsignal("rxn", Pins("YYY")),
|
||||
),
|
||||
|
||||
("sata_device", 0,
|
||||
Subsignal("refclk_p", Pins("YYY")),
|
||||
Subsignal("refclk_n", Pins("YYY")),
|
||||
Subsignal("txp", Pins("YYY")),
|
||||
|
|
|
@ -94,6 +94,7 @@ class TestDesign(UART2WB):
|
|||
UART2WB.__init__(self, platform, clk_freq)
|
||||
self.submodules.crg = _CRG(platform)
|
||||
|
||||
self.submodules.sataphy = K7SATAPHY(platform.request("sata"))
|
||||
self.submodules.sataphy_host = K7SATAPHY(platform.request("sata_host"), host=True)
|
||||
self.submodules.sataphy_device = K7SATAPHY(platform.request("sata_device"), host=False)
|
||||
|
||||
default_subtarget = TestDesign
|
||||
|
|
Loading…
Reference in New Issue