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
ac1f1cd6
Commit
ac1f1cd6
authored
May 27, 2020
by
Jędrzej Boczar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zcu104: add I2C
parent
b9ee3a79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
litex_boards/platforms/zcu104.py
litex_boards/platforms/zcu104.py
+6
-0
litex_boards/targets/zcu104.py
litex_boards/targets/zcu104.py
+4
-0
No files found.
litex_boards/platforms/zcu104.py
View file @
ac1f1cd6
...
...
@@ -43,6 +43,12 @@ _io = [
IOStandard
(
"LVCMOS18"
)
),
(
"i2c"
,
1
,
Subsignal
(
"sda"
,
Pins
(
"P12"
)),
Subsignal
(
"scl"
,
Pins
(
"N12"
)),
IOStandard
(
"LVCMOS33"
)
),
(
"ddram"
,
0
,
Subsignal
(
"a"
,
Pins
(
"AH16 AG14 AG15 AF15 AF16 AJ14 AH14 AF17"
,
...
...
litex_boards/targets/zcu104.py
View file @
ac1f1cd6
...
...
@@ -16,6 +16,7 @@ from litex.soc.integration.soc_core import *
from
litex.soc.integration.soc_sdram
import
*
from
litex.soc.integration.builder
import
*
from
litex.soc.cores.led
import
LedChaser
from
litex.soc.cores.bitbang
import
I2CMaster
from
litedram.modules
import
MTA4ATF51264HZ
from
litedram.phy
import
usddrphy
...
...
@@ -77,6 +78,9 @@ class BaseSoC(SoCCore):
l2_cache_reverse
=
True
)
self
.
submodules
.
i2c
=
I2CMaster
(
platform
.
request
(
"i2c"
,
1
))
self
.
add_csr
(
"i2c"
)
# Leds -------------------------------------------------------------------------------------
self
.
submodules
.
leds
=
LedChaser
(
pads
=
Cat
(
*
[
platform
.
request
(
"user_led"
,
i
)
for
i
in
range
(
4
)]),
...
...
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