Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
litex-boards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Timothy Pearson
litex-boards
Commits
2e1a816d
Commit
2e1a816d
authored
May 29, 2020
by
Florent Kermarrec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pano_logic_g2: switch to LiteEthPHY and simplify Ethernet/Etherbone.
parent
33fe308e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
litex_boards/targets/pano_logic_g2.py
litex_boards/targets/pano_logic_g2.py
+9
-16
No files found.
litex_boards/targets/pano_logic_g2.py
View file @
2e1a816d
...
...
@@ -16,7 +16,7 @@ from litex.soc.integration.soc_core import *
from
litex.soc.integration.builder
import
*
from
litex.soc.cores.led
import
LedChaser
from
liteeth.phy
import
LiteEthPHY
GMII
from
liteeth.phy
import
LiteEthPHY
# CRG ----------------------------------------------------------------------------------------------
...
...
@@ -50,25 +50,18 @@ class BaseSoC(SoCCore):
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
,
with_ethernet
=
with_ethernet
or
with_etherbone
)
# Ethernet
------------
---------------------------------------------------------------------
if
with_ethernet
:
self
.
submodules
.
ethphy
=
LiteEthPHY
GMII
(
# Ethernet
/ Etherbone
---------------------------------------------------------------------
if
with_ethernet
or
with_etherbone
:
self
.
submodules
.
ethphy
=
LiteEthPHY
(
clock_pads
=
self
.
platform
.
request
(
"eth_clocks"
),
pads
=
self
.
platform
.
request
(
"eth"
),
clk_freq
=
sys_clk_freq
,
with_hw_init_reset
=
False
)
platform
.
add_platform_command
(
"""NET "eth_clocks_rx" CLOCK_DEDICATED_ROUTE = FALSE;"""
)
self
.
add_csr
(
"ethphy"
)
self
.
add_ethernet
(
phy
=
self
.
ethphy
)
# Etherbone --------------------------------------------------------------------------------
if
with_etherbone
:
self
.
submodules
.
ethphy
=
LiteEthPHYGMII
(
clock_pads
=
self
.
platform
.
request
(
"eth_clocks"
),
pads
=
self
.
platform
.
request
(
"eth"
),
with_hw_init_reset
=
False
)
platform
.
add_platform_command
(
"""NET "eth_clocks_rx" CLOCK_DEDICATED_ROUTE = FALSE;"""
)
self
.
add_csr
(
"ethphy"
)
self
.
add_etherbone
(
phy
=
self
.
ethphy
)
if
with_ethernet
:
self
.
add_ethernet
(
phy
=
self
.
ethphy
)
if
with_etherbone
:
self
.
add_etherbone
(
phy
=
self
.
ethphy
)
# Leds -------------------------------------------------------------------------------------
self
.
submodules
.
leds
=
LedChaser
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment