Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rkx7-litex-boards
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
rkx7-litex-boards
Commits
e280bff1
Commit
e280bff1
authored
4 years ago
by
Florent Kermarrec
Browse files
Options
Downloads
Patches
Plain Diff
targets/video: Simplify/Cleanup integration.
parent
ce669ac8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
litex_boards/targets/icebreaker.py
+1
-1
1 addition, 1 deletion
litex_boards/targets/icebreaker.py
litex_boards/targets/nexys4ddr.py
+10
-11
10 additions, 11 deletions
litex_boards/targets/nexys4ddr.py
litex_boards/targets/nexys_video.py
+9
-10
9 additions, 10 deletions
litex_boards/targets/nexys_video.py
with
20 additions
and
22 deletions
litex_boards/targets/icebreaker.py
+
1
−
1
View file @
e280bff1
...
...
@@ -104,7 +104,7 @@ class BaseSoC(SoCCore):
linker
=
True
)
)
# Video
Terminal
---------------------------------------------------------------------------
# Video
---------
---------------------------------------------------------------------------
if
with_video_terminal
:
platform
.
add_extension
(
icebreaker
.
dvi_pmod
)
self
.
submodules
.
videophy
=
VideoDVIPHY
(
platform
.
request
(
"
dvi
"
),
clock_domain
=
"
sys
"
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/targets/nexys4ddr.py
+
10
−
11
View file @
e280bff1
...
...
@@ -18,7 +18,7 @@ from litex.soc.integration.soc import SoCRegion
from
litex.soc.integration.soc_core
import
*
from
litex.soc.integration.soc_sdram
import
*
from
litex.soc.integration.builder
import
*
from
litex.soc.cores.video
import
VideoVGAPHY
,
VideoTimingGenerator
,
VideoFrameBuffer
from
litex.soc.cores.video
import
VideoVGAPHY
from
litex.soc.cores.led
import
LedChaser
from
litedram.modules
import
MT47H64M16
...
...
@@ -95,15 +95,13 @@ class BaseSoC(SoCCore):
if
with_etherbone
:
self
.
add_etherbone
(
phy
=
self
.
ethphy
)
# Video
Terminal
---------------------------------------------------------------------------
if
with_video_terminal
:
# Video
---------
---------------------------------------------------------------------------
if
with_video_terminal
or
with_video_framebuffer
:
self
.
submodules
.
videophy
=
VideoVGAPHY
(
platform
.
request
(
"
vga
"
),
clock_domain
=
"
vga
"
)
self
.
add_video_terminal
(
phy
=
self
.
videophy
,
timings
=
"
800x600@60Hz
"
,
clock_domain
=
"
vga
"
)
# Video Framebuffer ------------------------------------------------------------------------
if
with_video_framebuffer
:
self
.
submodules
.
videophy
=
VideoVGAPHY
(
platform
.
request
(
"
vga
"
),
clock_domain
=
"
vga
"
)
self
.
add_video_framebuffer
(
phy
=
self
.
videophy
,
timings
=
"
800x600@60Hz
"
,
clock_domain
=
"
vga
"
)
if
with_video_terminal
:
self
.
add_video_terminal
(
phy
=
self
.
videophy
,
timings
=
"
800x600@60Hz
"
,
clock_domain
=
"
vga
"
)
if
with_video_framebuffer
:
self
.
add_video_framebuffer
(
phy
=
self
.
videophy
,
timings
=
"
800x600@60Hz
"
,
clock_domain
=
"
vga
"
)
# Leds -------------------------------------------------------------------------------------
self
.
submodules
.
leds
=
LedChaser
(
...
...
@@ -124,8 +122,9 @@ def main():
sdopts
=
parser
.
add_mutually_exclusive_group
()
sdopts
.
add_argument
(
"
--with-spi-sdcard
"
,
action
=
"
store_true
"
,
help
=
"
Enable SPI-mode SDCard support
"
)
sdopts
.
add_argument
(
"
--with-sdcard
"
,
action
=
"
store_true
"
,
help
=
"
Enable SDCard support
"
)
parser
.
add_argument
(
"
--with-video-terminal
"
,
action
=
"
store_true
"
,
help
=
"
Enable Video Terminal (VGA)
"
)
parser
.
add_argument
(
"
--with-video-framebuffer
"
,
action
=
"
store_true
"
,
help
=
"
Enable Video Framebuffer (VGA)
"
)
viopts
=
parser
.
add_mutually_exclusive_group
()
viopts
.
add_argument
(
"
--with-video-terminal
"
,
action
=
"
store_true
"
,
help
=
"
Enable Video Terminal (VGA)
"
)
viopts
.
add_argument
(
"
--with-video-framebuffer
"
,
action
=
"
store_true
"
,
help
=
"
Enable Video Framebuffer (VGA)
"
)
builder_args
(
parser
)
soc_sdram_args
(
parser
)
args
=
parser
.
parse_args
()
...
...
This diff is collapsed.
Click to expand it.
litex_boards/targets/nexys_video.py
+
9
−
10
View file @
e280bff1
...
...
@@ -126,15 +126,13 @@ class BaseSoC(SoCCore):
# Core
self
.
add_sata
(
phy
=
self
.
sata_phy
,
mode
=
"
read+write
"
)
# Video
Terminal
---------------------------------------------------------------------------
if
with_video_terminal
:
# Video
---------
---------------------------------------------------------------------------
if
with_video_terminal
or
with_video_framebuffer
:
self
.
submodules
.
videophy
=
VideoS7HDMIPHY
(
platform
.
request
(
"
hdmi_out
"
),
clock_domain
=
"
hdmi
"
)
self
.
add_video_terminal
(
phy
=
self
.
videophy
,
timings
=
"
800x600@60Hz
"
,
clock_domain
=
"
hdmi
"
)
# Video Framebuffer ------------------------------------------------------------------------
if
with_video_framebuffer
:
self
.
submodules
.
videophy
=
VideoS7HDMIPHY
(
platform
.
request
(
"
hdmi_out
"
),
clock_domain
=
"
hdmi
"
)
self
.
add_video_framebuffer
(
phy
=
self
.
videophy
,
timings
=
"
800x600@60Hz
"
,
clock_domain
=
"
hdmi
"
)
if
with_video_terminal
:
self
.
add_video_terminal
(
phy
=
self
.
videophy
,
timings
=
"
800x600@60Hz
"
,
clock_domain
=
"
hdmi
"
)
if
with_video_framebuffer
:
self
.
add_video_framebuffer
(
phy
=
self
.
videophy
,
timings
=
"
800x600@60Hz
"
,
clock_domain
=
"
hdmi
"
)
# Leds -------------------------------------------------------------------------------------
self
.
submodules
.
leds
=
LedChaser
(
...
...
@@ -155,8 +153,9 @@ def main():
sdopts
.
add_argument
(
"
--with-spi-sdcard
"
,
action
=
"
store_true
"
,
help
=
"
Enable SPI-mode SDCard support
"
)
sdopts
.
add_argument
(
"
--with-sdcard
"
,
action
=
"
store_true
"
,
help
=
"
Enable SDCard support
"
)
parser
.
add_argument
(
"
--with-sata
"
,
action
=
"
store_true
"
,
help
=
"
Enable SATA support (over FMCRAID)
"
)
parser
.
add_argument
(
"
--with-video-terminal
"
,
action
=
"
store_true
"
,
help
=
"
Enable Video Terminal (HDMI)
"
)
parser
.
add_argument
(
"
--with-video-framebuffer
"
,
action
=
"
store_true
"
,
help
=
"
Enable Video Framebuffer (HDMI)
"
)
viopts
=
parser
.
add_mutually_exclusive_group
()
viopts
.
add_argument
(
"
--with-video-terminal
"
,
action
=
"
store_true
"
,
help
=
"
Enable Video Terminal (HDMI)
"
)
viopts
.
add_argument
(
"
--with-video-framebuffer
"
,
action
=
"
store_true
"
,
help
=
"
Enable Video Framebuffer (HDMI)
"
)
builder_args
(
parser
)
soc_sdram_args
(
parser
)
vivado_build_args
(
parser
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment