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
45bd50b0
Commit
45bd50b0
authored
Jun 10, 2020
by
Florent Kermarrec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
targets: rename colorlight_5a_75b to colorlight_5a_75x (since we are now also supporting the 75e).
parent
ad1693a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
litex_boards/targets/colorlight_5a_75x.py
litex_boards/targets/colorlight_5a_75x.py
+13
-12
No files found.
litex_boards/targets/colorlight_5a_75
b
.py
→
litex_boards/targets/colorlight_5a_75
x
.py
View file @
45bd50b0
...
...
@@ -7,14 +7,14 @@
#
# 1) SoC with regular UART and optional Ethernet connected to the CPU:
# Connect a USB/UART to J19: TX of the FPGA is DATA_LED-, RX of the FPGA is KEY+.
# ./colorlight_5a_75
b
.py --revision=7.0 (or 6.1) (--with-ethernet to add Ethernet capability)
# ./colorlight_5a_75
x
.py --revision=7.0 (or 6.1) (--with-ethernet to add Ethernet capability)
# Note: on revision 6.1, add --uart-baudrate=9600 to lower the baudrate.
# ./colorlight_5a_75
b
.py --load
# ./colorlight_5a_75
x
.py --load
# You should see the LiteX BIOS and be able to interact with it.
#
# 2) SoC with UART in crossover mode over Etherbone:
# ./colorlight_5a_75
b
.py --revision=7.0 (or 6.1) --uart-name=crossover --with-etherbone --csr-csv=csr.csv
# ./colorlight_5a_75
b
.py --load
# ./colorlight_5a_75
x
.py --revision=7.0 (or 6.1) --uart-name=crossover --with-etherbone --csr-csv=csr.csv
# ./colorlight_5a_75
x
.py --load
# ping 192.168.1.50
# Get and install wishbone tool from: https://github.com/litex-hub/wishbone-utils/releases
# wishbone-tool --ethernet-host 192.168.1.50 --server terminal --csr-csv csr.csv
...
...
@@ -26,12 +26,12 @@
# - Place a 15K resistor between J4 pin 3 and J4 pin 4.
# - Place a 1.5K resistor between J4 pin 1 and J4 pin 3.
# - Connect USB DP (Green) to J4 pin 3, USB DN (White) to J4 pin 2.
# ./colorlight_5a_75
b
.py --revision=7.0 --uart-name=usb_acm
# ./colorlight_5a_75
b
.py --load
# ./colorlight_5a_75
x
.py --revision=7.0 --uart-name=usb_acm
# ./colorlight_5a_75
x
.py --load
# You should see the LiteX BIOS and be able to interact with it.
#
# Note that you can also use a 5A-75E board:
# ./colorlight_5a_75
b.py --board=5A-75E
--revision=7.1
# ./colorlight_5a_75
x.py --board=5a-75e
--revision=7.1
#
# Disclaimer: SoC 2) is still a Proof of Concept with large timings violations on the IP/UDP and
# Etherbone stack that need to be optimized. It was initially just used to validate the reversed
...
...
@@ -96,10 +96,11 @@ class _CRG(Module):
class
BaseSoC
(
SoCCore
):
def
__init__
(
self
,
board
,
revision
,
with_ethernet
=
False
,
with_etherbone
=
False
,
sys_clk_freq
=
60e6
,
**
kwargs
):
assert
board
in
[
"5A-75B"
,
"5A-75E"
]
if
board
==
"5A-75B"
:
board
=
board
.
lower
()
assert
board
in
[
"5a-75b"
,
"5a-75e"
]
if
board
==
"5a-75b"
:
platform
=
colorlight_5a_75b
.
Platform
(
revision
=
revision
)
elif
board
==
"5
A-75E
"
:
elif
board
==
"5
a-75e
"
:
platform
=
colorlight_5a_75e
.
Platform
(
revision
=
revision
)
if
with_etherbone
:
...
...
@@ -146,7 +147,7 @@ def main():
trellis_args
(
parser
)
parser
.
add_argument
(
"--build"
,
action
=
"store_true"
,
help
=
"Build bitstream"
)
parser
.
add_argument
(
"--load"
,
action
=
"store_true"
,
help
=
"Load bitstream"
)
parser
.
add_argument
(
"--board"
,
default
=
"5
A-75B"
,
help
=
"Board type: 5A-75B (default) or 5A-75E
"
)
parser
.
add_argument
(
"--board"
,
default
=
"5
a-75b"
,
help
=
"Board type: 5a-75b (default) or 5a-75e
"
)
parser
.
add_argument
(
"--revision"
,
default
=
"7.0"
,
type
=
str
,
help
=
"Board revision 7.0 (default) or 6.1"
)
parser
.
add_argument
(
"--with-ethernet"
,
action
=
"store_true"
,
help
=
"Enable Ethernet support"
)
parser
.
add_argument
(
"--with-etherbone"
,
action
=
"store_true"
,
help
=
"Enable Etherbone support"
)
...
...
@@ -158,7 +159,7 @@ def main():
soc
=
BaseSoC
(
board
=
args
.
board
,
revision
=
args
.
revision
,
with_ethernet
=
args
.
with_ethernet
,
with_etherbone
=
args
.
with_etherbone
,
sys_clk_freq
=
args
.
sys_clk_freq
,
sys_clk_freq
=
args
.
sys_clk_freq
,
**
soc_core_argdict
(
args
))
builder
=
Builder
(
soc
,
**
builder_argdict
(
args
))
builder
.
build
(
**
trellis_argdict
(
args
),
run
=
args
.
build
)
...
...
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