Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Timothy Pearson
litex-boards
Commits
028d4a78
Commit
028d4a78
authored
4 years ago
by
Florent Kermarrec
Browse files
Options
Download
Email Patches
Plain Diff
targets: use default integrated rom/ram size passed with **kwargs from default soc_core_args
parent
beccf670
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
36 additions
and
86 deletions
+36
-86
litex_boards/community/targets/ac701.py
litex_boards/community/targets/ac701.py
+1
-4
litex_boards/community/targets/de10lite.py
litex_boards/community/targets/de10lite.py
+1
-3
litex_boards/community/targets/de1soc.py
litex_boards/community/targets/de1soc.py
+1
-3
litex_boards/community/targets/de2_115.py
litex_boards/community/targets/de2_115.py
+1
-4
litex_boards/community/targets/ecp5_evn.py
litex_boards/community/targets/ecp5_evn.py
+1
-3
litex_boards/community/targets/pipistrello.py
litex_boards/community/targets/pipistrello.py
+2
-5
litex_boards/official/targets/arty.py
litex_boards/official/targets/arty.py
+3
-6
litex_boards/official/targets/de0nano.py
litex_boards/official/targets/de0nano.py
+1
-3
litex_boards/official/targets/genesys2.py
litex_boards/official/targets/genesys2.py
+3
-6
litex_boards/official/targets/kc705.py
litex_boards/official/targets/kc705.py
+3
-6
litex_boards/official/targets/kcu105.py
litex_boards/official/targets/kcu105.py
+3
-6
litex_boards/official/targets/minispartan6.py
litex_boards/official/targets/minispartan6.py
+1
-3
litex_boards/official/targets/nexys4ddr.py
litex_boards/official/targets/nexys4ddr.py
+3
-6
litex_boards/official/targets/nexys_video.py
litex_boards/official/targets/nexys_video.py
+3
-6
litex_boards/official/targets/simple.py
litex_boards/official/targets/simple.py
+3
-6
litex_boards/official/targets/versa_ecp5.py
litex_boards/official/targets/versa_ecp5.py
+3
-5
litex_boards/partner/targets/aller.py
litex_boards/partner/targets/aller.py
+0
-2
litex_boards/partner/targets/c10lprefkit.py
litex_boards/partner/targets/c10lprefkit.py
+1
-3
litex_boards/partner/targets/camlink_4k.py
litex_boards/partner/targets/camlink_4k.py
+1
-3
litex_boards/partner/targets/hadbadge.py
litex_boards/partner/targets/hadbadge.py
+1
-3
No files found.
litex_boards/community/targets/ac701.py
View file @
028d4a78
...
@@ -51,10 +51,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -51,10 +51,7 @@ class BaseSoC(SoCSDRAM):
platform
=
ac701
.
Platform
()
platform
=
ac701
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
integrated_sram_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/community/targets/de10lite.py
View file @
028d4a78
...
@@ -85,9 +85,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -85,9 +85,7 @@ class BaseSoC(SoCSDRAM):
platform
=
de10lite
.
Platform
()
platform
=
de10lite
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
)
self
.
submodules
.
crg
=
_CRG
(
platform
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/community/targets/de1soc.py
View file @
028d4a78
...
@@ -76,9 +76,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -76,9 +76,7 @@ class BaseSoC(SoCSDRAM):
platform
=
de1soc
.
Platform
()
platform
=
de1soc
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
)
self
.
submodules
.
crg
=
_CRG
(
platform
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/community/targets/de2_115.py
View file @
028d4a78
...
@@ -76,9 +76,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -76,9 +76,7 @@ class BaseSoC(SoCSDRAM):
platform
=
de2_115
.
Platform
()
platform
=
de2_115
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
)
self
.
submodules
.
crg
=
_CRG
(
platform
)
...
@@ -86,7 +84,6 @@ class BaseSoC(SoCSDRAM):
...
@@ -86,7 +84,6 @@ class BaseSoC(SoCSDRAM):
# SDR SDRAM --------------------------------------------------------------------------------
# SDR SDRAM --------------------------------------------------------------------------------
if
not
self
.
integrated_main_ram_size
:
if
not
self
.
integrated_main_ram_size
:
self
.
submodules
.
sdrphy
=
GENSDRPHY
(
platform
.
request
(
"sdram"
))
self
.
submodules
.
sdrphy
=
GENSDRPHY
(
platform
.
request
(
"sdram"
))
# ISSI IS42S16320D-7TL
sdram_module
=
IS42S16320
(
self
.
clk_freq
,
"1:1"
)
sdram_module
=
IS42S16320
(
self
.
clk_freq
,
"1:1"
)
self
.
register_sdram
(
self
.
sdrphy
,
self
.
register_sdram
(
self
.
sdrphy
,
geom_settings
=
sdram_module
.
geom_settings
,
geom_settings
=
sdram_module
.
geom_settings
,
...
...
This diff is collapsed.
Click to expand it.
litex_boards/community/targets/ecp5_evn.py
View file @
028d4a78
...
@@ -45,9 +45,7 @@ class BaseSoC(SoCCore):
...
@@ -45,9 +45,7 @@ class BaseSoC(SoCCore):
platform
=
ecp5_evn
.
Platform
(
toolchain
=
toolchain
)
platform
=
ecp5_evn
.
Platform
(
toolchain
=
toolchain
)
# SoCCore ----------------------------------------------------------------------------------
# SoCCore ----------------------------------------------------------------------------------
SoCCore
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCCore
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
crg
=
_CRG
(
platform
,
sys_clk_freq
,
x5_clk_freq
)
crg
=
_CRG
(
platform
,
sys_clk_freq
,
x5_clk_freq
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/community/targets/pipistrello.py
View file @
028d4a78
...
@@ -147,15 +147,12 @@ class _CRG(Module):
...
@@ -147,15 +147,12 @@ class _CRG(Module):
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCSDRAM
):
class
BaseSoC
(
SoCSDRAM
):
def
__init__
(
self
,
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
sys_clk_freq
=
(
83
+
Fraction
(
1
,
3
))
*
1000
*
1000
sys_clk_freq
=
(
83
+
Fraction
(
1
,
3
))
*
1000
*
1000
platform
=
pipistrello
.
Platform
()
platform
=
pipistrello
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
integrated_sram_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/arty.py
View file @
028d4a78
...
@@ -48,14 +48,11 @@ class _CRG(Module):
...
@@ -48,14 +48,11 @@ class _CRG(Module):
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCSDRAM
):
class
BaseSoC
(
SoCSDRAM
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
100e6
),
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
100e6
),
**
kwargs
):
platform
=
arty
.
Platform
()
platform
=
arty
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
integrated_sram_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
@@ -81,7 +78,7 @@ class EthernetSoC(BaseSoC):
...
@@ -81,7 +78,7 @@ class EthernetSoC(BaseSoC):
mem_map
.
update
(
BaseSoC
.
mem_map
)
mem_map
.
update
(
BaseSoC
.
mem_map
)
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
BaseSoC
.
__init__
(
self
,
integrated_rom_size
=
0x10000
,
**
kwargs
)
BaseSoC
.
__init__
(
self
,
**
kwargs
)
self
.
submodules
.
ethphy
=
LiteEthPHYMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
submodules
.
ethphy
=
LiteEthPHYMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
platform
.
request
(
"eth"
))
self
.
platform
.
request
(
"eth"
))
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/de0nano.py
View file @
028d4a78
...
@@ -76,9 +76,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -76,9 +76,7 @@ class BaseSoC(SoCSDRAM):
platform
=
de0nano
.
Platform
()
platform
=
de0nano
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
)
self
.
submodules
.
crg
=
_CRG
(
platform
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/genesys2.py
View file @
028d4a78
...
@@ -41,14 +41,11 @@ class _CRG(Module):
...
@@ -41,14 +41,11 @@ class _CRG(Module):
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCSDRAM
):
class
BaseSoC
(
SoCSDRAM
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
125e6
),
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
125e6
),
**
kwargs
):
platform
=
genesys2
.
Platform
()
platform
=
genesys2
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
integrated_sram_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
@@ -72,7 +69,7 @@ class EthernetSoC(BaseSoC):
...
@@ -72,7 +69,7 @@ class EthernetSoC(BaseSoC):
mem_map
.
update
(
BaseSoC
.
mem_map
)
mem_map
.
update
(
BaseSoC
.
mem_map
)
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
BaseSoC
.
__init__
(
self
,
integrated_rom_size
=
0x10000
,
**
kwargs
)
BaseSoC
.
__init__
(
self
,
**
kwargs
)
self
.
submodules
.
ethphy
=
LiteEthPHYRGMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
submodules
.
ethphy
=
LiteEthPHYRGMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
platform
.
request
(
"eth"
))
self
.
platform
.
request
(
"eth"
))
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/kc705.py
View file @
028d4a78
...
@@ -43,14 +43,11 @@ class _CRG(Module):
...
@@ -43,14 +43,11 @@ class _CRG(Module):
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCSDRAM
):
class
BaseSoC
(
SoCSDRAM
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
125e6
),
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
125e6
),
**
kwargs
):
platform
=
kc705
.
Platform
()
platform
=
kc705
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
integrated_sram_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
@@ -76,7 +73,7 @@ class EthernetSoC(BaseSoC):
...
@@ -76,7 +73,7 @@ class EthernetSoC(BaseSoC):
mem_map
.
update
(
BaseSoC
.
mem_map
)
mem_map
.
update
(
BaseSoC
.
mem_map
)
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
BaseSoC
.
__init__
(
self
,
integrated_rom_size
=
0x10000
,
**
kwargs
)
BaseSoC
.
__init__
(
self
,
**
kwargs
)
self
.
submodules
.
ethphy
=
LiteEthPHY
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
submodules
.
ethphy
=
LiteEthPHY
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
platform
.
request
(
"eth"
),
clk_freq
=
self
.
clk_freq
)
self
.
platform
.
request
(
"eth"
),
clk_freq
=
self
.
clk_freq
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/kcu105.py
View file @
028d4a78
...
@@ -77,14 +77,11 @@ class _CRG(Module):
...
@@ -77,14 +77,11 @@ class _CRG(Module):
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCSDRAM
):
class
BaseSoC
(
SoCSDRAM
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
125e6
),
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
125e6
),
**
kwargs
):
platform
=
kcu105
.
Platform
()
platform
=
kcu105
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
integrated_sram_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
@@ -111,7 +108,7 @@ class EthernetSoC(BaseSoC):
...
@@ -111,7 +108,7 @@ class EthernetSoC(BaseSoC):
mem_map
.
update
(
BaseSoC
.
mem_map
)
mem_map
.
update
(
BaseSoC
.
mem_map
)
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
BaseSoC
.
__init__
(
self
,
integrated_rom_size
=
0x10000
,
**
kwargs
)
BaseSoC
.
__init__
(
self
,
**
kwargs
)
self
.
comb
+=
self
.
platform
.
request
(
"sfp_tx_disable_n"
,
0
).
eq
(
1
)
self
.
comb
+=
self
.
platform
.
request
(
"sfp_tx_disable_n"
,
0
).
eq
(
1
)
self
.
submodules
.
ethphy
=
KU_1000BASEX
(
self
.
crg
.
cd_clk200
.
clk
,
self
.
submodules
.
ethphy
=
KU_1000BASEX
(
self
.
crg
.
cd_clk200
.
clk
,
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/minispartan6.py
View file @
028d4a78
...
@@ -49,9 +49,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -49,9 +49,7 @@ class BaseSoC(SoCSDRAM):
platform
=
minispartan6
.
Platform
()
platform
=
minispartan6
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/nexys4ddr.py
View file @
028d4a78
...
@@ -45,14 +45,11 @@ class _CRG(Module):
...
@@ -45,14 +45,11 @@ class _CRG(Module):
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCSDRAM
):
class
BaseSoC
(
SoCSDRAM
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
100e6
),
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
100e6
),
**
kwargs
):
platform
=
nexys4ddr
.
Platform
()
platform
=
nexys4ddr
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
integrated_sram_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
@@ -78,7 +75,7 @@ class EthernetSoC(BaseSoC):
...
@@ -78,7 +75,7 @@ class EthernetSoC(BaseSoC):
mem_map
.
update
(
BaseSoC
.
mem_map
)
mem_map
.
update
(
BaseSoC
.
mem_map
)
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
BaseSoC
.
__init__
(
self
,
integrated_rom_size
=
0x10000
,
**
kwargs
)
BaseSoC
.
__init__
(
self
,
**
kwargs
)
self
.
submodules
.
ethphy
=
LiteEthPHYRMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
submodules
.
ethphy
=
LiteEthPHYRMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
platform
.
request
(
"eth"
))
self
.
platform
.
request
(
"eth"
))
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/nexys_video.py
View file @
028d4a78
...
@@ -45,14 +45,11 @@ class _CRG(Module):
...
@@ -45,14 +45,11 @@ class _CRG(Module):
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCSDRAM
):
class
BaseSoC
(
SoCSDRAM
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
100e6
),
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
100e6
),
**
kwargs
):
platform
=
nexys_video
.
Platform
()
platform
=
nexys_video
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
integrated_sram_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
@@ -78,7 +75,7 @@ class EthernetSoC(BaseSoC):
...
@@ -78,7 +75,7 @@ class EthernetSoC(BaseSoC):
mem_map
.
update
(
BaseSoC
.
mem_map
)
mem_map
.
update
(
BaseSoC
.
mem_map
)
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
**
kwargs
):
BaseSoC
.
__init__
(
self
,
integrated_rom_size
=
0x10000
,
**
kwargs
)
BaseSoC
.
__init__
(
self
,
**
kwargs
)
self
.
submodules
.
ethphy
=
LiteEthPHYRGMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
submodules
.
ethphy
=
LiteEthPHYRGMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
platform
.
request
(
"eth"
))
self
.
platform
.
request
(
"eth"
))
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/simple.py
View file @
028d4a78
...
@@ -19,14 +19,11 @@ from liteeth.mac import LiteEthMAC
...
@@ -19,14 +19,11 @@ from liteeth.mac import LiteEthMAC
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCCore
):
class
BaseSoC
(
SoCCore
):
def
__init__
(
self
,
platform
,
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
platform
,
**
kwargs
):
sys_clk_freq
=
int
(
1e9
/
platform
.
default_clk_period
)
sys_clk_freq
=
int
(
1e9
/
platform
.
default_clk_period
)
# SoCCore ----------------------------------------------------------------------------------
# SoCCore ----------------------------------------------------------------------------------
SoCCore
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCCore
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
integrated_main_ram_size
=
16
*
1024
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
CRG
(
platform
.
request
(
platform
.
default_clk_name
))
self
.
submodules
.
crg
=
CRG
(
platform
.
request
(
platform
.
default_clk_name
))
...
@@ -38,7 +35,7 @@ class EthernetSoC(BaseSoC):
...
@@ -38,7 +35,7 @@ class EthernetSoC(BaseSoC):
}
}
mem_map
.
update
(
BaseSoC
.
mem_map
)
mem_map
.
update
(
BaseSoC
.
mem_map
)
def
__init__
(
self
,
platform
,
integrated_rom_size
=
0x10000
,
**
kwargs
):
def
__init__
(
self
,
platform
,
**
kwargs
):
BaseSoC
.
__init__
(
self
,
platform
,
**
kwargs
)
BaseSoC
.
__init__
(
self
,
platform
,
**
kwargs
)
self
.
submodules
.
ethphy
=
LiteEthPHY
(
platform
.
request
(
"eth_clocks"
),
self
.
submodules
.
ethphy
=
LiteEthPHY
(
platform
.
request
(
"eth_clocks"
),
...
...
This diff is collapsed.
Click to expand it.
litex_boards/official/targets/versa_ecp5.py
View file @
028d4a78
...
@@ -72,13 +72,11 @@ class _CRG(Module):
...
@@ -72,13 +72,11 @@ class _CRG(Module):
# BaseSoC ------------------------------------------------------------------------------------------
# BaseSoC ------------------------------------------------------------------------------------------
class
BaseSoC
(
SoCSDRAM
):
class
BaseSoC
(
SoCSDRAM
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
75e6
),
toolchain
=
"diamond"
,
integrated_rom_size
=
0x8000
,
**
kwargs
):
def
__init__
(
self
,
sys_clk_freq
=
int
(
75e6
),
toolchain
=
"diamond"
,
**
kwargs
):
platform
=
versa_ecp5
.
Platform
(
toolchain
=
toolchain
)
platform
=
versa_ecp5
.
Platform
(
toolchain
=
toolchain
)
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
integrated_rom_size
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
@@ -105,7 +103,7 @@ class EthernetSoC(BaseSoC):
...
@@ -105,7 +103,7 @@ class EthernetSoC(BaseSoC):
mem_map
.
update
(
BaseSoC
.
mem_map
)
mem_map
.
update
(
BaseSoC
.
mem_map
)
def
__init__
(
self
,
toolchain
=
"diamond"
,
**
kwargs
):
def
__init__
(
self
,
toolchain
=
"diamond"
,
**
kwargs
):
BaseSoC
.
__init__
(
self
,
toolchain
=
toolchain
,
integrated_rom_size
=
0x10000
,
**
kwargs
)
BaseSoC
.
__init__
(
self
,
toolchain
=
toolchain
,
**
kwargs
)
self
.
submodules
.
ethphy
=
LiteEthPHYRGMII
(
self
.
submodules
.
ethphy
=
LiteEthPHYRGMII
(
self
.
platform
.
request
(
"eth_clocks"
),
self
.
platform
.
request
(
"eth_clocks"
),
...
...
This diff is collapsed.
Click to expand it.
litex_boards/partner/targets/aller.py
View file @
028d4a78
...
@@ -59,8 +59,6 @@ class AllerSoC(SoCSDRAM):
...
@@ -59,8 +59,6 @@ class AllerSoC(SoCSDRAM):
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
sys_clk_freq
,
csr_data_width
=
32
,
csr_data_width
=
32
,
integrated_rom_size
=
0x10000
,
integrated_sram_size
=
0x10000
,
integrated_main_ram_size
=
0x10000
,
# FIXME: keep this for initial PCIe tests
integrated_main_ram_size
=
0x10000
,
# FIXME: keep this for initial PCIe tests
ident
=
"Aller LiteX Test SoC"
,
ident_version
=
True
,
ident
=
"Aller LiteX Test SoC"
,
ident_version
=
True
,
with_uart
=
not
with_pcie_uart
)
with_uart
=
not
with_pcie_uart
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/partner/targets/c10lprefkit.py
View file @
028d4a78
...
@@ -94,9 +94,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -94,9 +94,7 @@ class BaseSoC(SoCSDRAM):
platform
=
c10lprefkit
.
Platform
()
platform
=
c10lprefkit
.
Platform
()
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
)
self
.
submodules
.
crg
=
_CRG
(
platform
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/partner/targets/camlink_4k.py
View file @
028d4a78
...
@@ -71,9 +71,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -71,9 +71,7 @@ class BaseSoC(SoCSDRAM):
sys_clk_freq
=
int
(
81e6
)
sys_clk_freq
=
int
(
81e6
)
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
...
This diff is collapsed.
Click to expand it.
litex_boards/partner/targets/hadbadge.py
View file @
028d4a78
...
@@ -52,9 +52,7 @@ class BaseSoC(SoCSDRAM):
...
@@ -52,9 +52,7 @@ class BaseSoC(SoCSDRAM):
platform
=
hadbadge
.
Platform
(
toolchain
=
toolchain
)
platform
=
hadbadge
.
Platform
(
toolchain
=
toolchain
)
# SoCSDRAM ---------------------------------------------------------------------------------
# SoCSDRAM ---------------------------------------------------------------------------------
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
SoCSDRAM
.
__init__
(
self
,
platform
,
clk_freq
=
sys_clk_freq
,
**
kwargs
)
integrated_rom_size
=
0x8000
,
**
kwargs
)
# CRG --------------------------------------------------------------------------------------
# CRG --------------------------------------------------------------------------------------
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
self
.
submodules
.
crg
=
_CRG
(
platform
,
sys_clk_freq
)
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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