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
69460868
Commit
69460868
authored
3 years ago
by
Hans Baier
Browse files
Options
Downloads
Patches
Plain Diff
terasic_sockit: fix: make video clock also optional as video terminal is optional
parent
5bfeb999
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
litex_boards/targets/terasic_sockit.py
+8
-4
8 additions, 4 deletions
litex_boards/targets/terasic_sockit.py
with
8 additions
and
4 deletions
litex_boards/targets/terasic_sockit.py
+
8
−
4
View file @
69460868
...
...
@@ -67,11 +67,12 @@ class W9825G6KH6(SDRModule):
# CRG ----------------------------------------------------------------------------------------------
class
_CRG
(
Module
):
def
__init__
(
self
,
platform
,
sys_clk_freq
,
with_sdram
=
False
,
sdram_rate
=
"
1:2
"
):
def
__init__
(
self
,
platform
,
sys_clk_freq
,
with_sdram
=
False
,
sdram_rate
=
"
1:2
"
,
with_video_terminal
=
False
):
self
.
sdram_rate
=
sdram_rate
self
.
rst
=
Signal
()
self
.
clock_domains
.
cd_sys
=
ClockDomain
()
self
.
clock_domains
.
cd_vga
=
ClockDomain
(
reset_less
=
True
)
if
with_video_terminal
:
self
.
clock_domains
.
cd_vga
=
ClockDomain
(
reset_less
=
True
)
if
with_sdram
:
if
sdram_rate
==
"
1:2
"
:
self
.
clock_domains
.
cd_sys2x
=
ClockDomain
()
...
...
@@ -87,7 +88,10 @@ class _CRG(Module):
self
.
comb
+=
pll
.
reset
.
eq
(
self
.
rst
)
pll
.
register_clkin
(
clk50
,
50e6
)
pll
.
create_clkout
(
self
.
cd_sys
,
sys_clk_freq
)
pll
.
create_clkout
(
self
.
cd_vga
,
65e6
)
if
with_video_terminal
:
pll
.
create_clkout
(
self
.
cd_vga
,
65e6
)
if
with_sdram
:
if
sdram_rate
==
"
1:2
"
:
pll
.
create_clkout
(
self
.
cd_sys2x
,
2
*
sys_clk_freq
)
...
...
@@ -117,7 +121,7 @@ class BaseSoC(SoCCore):
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
,
with_sdram
=
mister_sdram
!=
None
,
sdram_rate
=
sdram_rate
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
,
with_sdram
=
mister_sdram
!=
None
,
sdram_rate
=
sdram_rate
,
with_video_terminal
=
with_video_terminal
)
# SDR SDRAM --------------------------------------------------------------------------------
if
mister_sdram
is
not
None
:
...
...
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