mirror of
https://github.com/enjoy-digital/usb3_pipe.git
synced 2025-01-04 10:18:41 +08:00
kc705/pcie_screamer: integrate USB3 Core (untested but able P&R successful)
This commit is contained in:
parent
480490a48e
commit
aa1b01ca22
15
kc705.py
15
kc705.py
@ -24,6 +24,7 @@ from liteeth.frontend.etherbone import LiteEthEtherbone
|
||||
from litescope import LiteScopeAnalyzer
|
||||
|
||||
from usb3_pipe import K7USB3SerDes, USB3PIPE
|
||||
from usb3_core.core import USB3Core
|
||||
|
||||
# USB3 IOs -----------------------------------------------------------------------------------------
|
||||
|
||||
@ -116,10 +117,18 @@ class USB3SoC(SoCMini):
|
||||
|
||||
# USB3 PIPE --------------------------------------------------------------------------------
|
||||
usb3_pipe = USB3PIPE(serdes=usb3_serdes, sys_clk_freq=sys_clk_freq)
|
||||
self.submodules += usb3_pipe
|
||||
self.submodules.usb3_pipe = usb3_pipe
|
||||
self.comb += usb3_pipe.reset.eq(platform.request("cpu_reset"))
|
||||
self.comb += usb3_pipe.sink.valid.eq(1)
|
||||
self.comb += usb3_pipe.source.ready.eq(1)
|
||||
|
||||
# USB3 Core --------------------------------------------------------------------------------
|
||||
usb3_core = USB3Core(platform)
|
||||
self.submodules.usb3_core = usb3_core
|
||||
self.comb += [
|
||||
usb3_pipe.source.connect(usb3_core.sink),
|
||||
usb3_core.source.connect(usb3_pipe.sink),
|
||||
usb3_core.reset.eq(~usb3_pipe.ready),
|
||||
]
|
||||
self.add_csr("usb3_core")
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
self.comb += platform.request("user_led", 0).eq(usb3_serdes.ready)
|
||||
|
@ -21,6 +21,7 @@ from litex.soc.cores.uart import UARTWishboneBridge
|
||||
from litescope import LiteScopeAnalyzer
|
||||
|
||||
from usb3_pipe import A7USB3SerDes, USB3PIPE
|
||||
from usb3_core.core import USB3Core
|
||||
|
||||
# IOs ----------------------------------------------------------------------------------------------
|
||||
|
||||
@ -107,12 +108,20 @@ class USB3SoC(SoCMini):
|
||||
self.submodules += usb3_serdes
|
||||
platform.add_platform_command("set_property SEVERITY {{Warning}} [get_drc_checks REQP-49]")
|
||||
|
||||
# USB3 PHY ---------------------------------------------------------------------------------
|
||||
# USB3 PIPE --------------------------------------------------------------------------------
|
||||
usb3_pipe = USB3PIPE(serdes=usb3_serdes, sys_clk_freq=sys_clk_freq)
|
||||
self.submodules += usb3_pipe
|
||||
self.submodules.usb3_pipe = usb3_pipe
|
||||
self.comb += usb3_pipe.reset.eq(~platform.request("user_btn", 0))
|
||||
self.comb += usb3_pipe.sink.valid.eq(1)
|
||||
self.comb += usb3_pipe.source.ready.eq(1)
|
||||
|
||||
# USB3 Core --------------------------------------------------------------------------------
|
||||
usb3_core = USB3Core(platform)
|
||||
self.submodules.usb3_core = usb3_core
|
||||
self.comb += [
|
||||
usb3_pipe.source.connect(usb3_core.sink),
|
||||
usb3_core.source.connect(usb3_pipe.sink),
|
||||
usb3_core.reset.eq(~usb3_pipe.ready),
|
||||
]
|
||||
self.add_csr("usb3_core")
|
||||
|
||||
# Leds -------------------------------------------------------------------------------------
|
||||
self.comb += platform.request("user_led", 0).eq(usb3_serdes.ready)
|
||||
|
Loading…
x
Reference in New Issue
Block a user