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
1
Merge Requests
1
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
Kestrel Collaboration
Kestrel LiteX
litex-boards
Commits
51c5d695
Commit
51c5d695
authored
Feb 01, 2021
by
Florent Kermarrec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
targets/tec0117: use custom CPU/ROM/SRAM config to minimize resources.
parent
538878ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
litex_boards/targets/tec0117.py
litex_boards/targets/tec0117.py
+6
-4
No files found.
litex_boards/targets/tec0117.py
View file @
51c5d695
...
...
@@ -33,9 +33,11 @@ class BaseSoC(SoCCore):
def
__init__
(
self
,
bios_flash_offset
,
sys_clk_freq
=
int
(
12e6
),
with_sdram
=
False
,
sdram_rate
=
"1:1"
,
**
kwargs
):
platform
=
tec0117
.
Platform
()
# SoC can have littel a bram, as a treat
kwargs
[
"integrated_sram_size"
]
=
2048
*
2
kwargs
[
"integrated_rom_size"
]
=
0
# Use custom default configuration to fit in LittleBee.
kwargs
[
"integrated_sram_size"
]
=
0x1000
kwargs
[
"integrated_rom_size"
]
=
0x6000
kwargs
[
"cpu_type"
]
=
"vexriscv"
kwargs
[
"cpu_variant"
]
=
"lite"
# Set CPU variant / reset address
kwargs
[
"cpu_reset_address"
]
=
self
.
mem_map
[
"spiflash"
]
+
bios_flash_offset
...
...
@@ -173,7 +175,7 @@ def main():
sys_clk_freq
=
int
(
float
(
args
.
sys_clk_freq
)),
**
soc_core_argdict
(
args
)
)
builder
=
Builder
(
soc
,
**
builder_argdict
(
args
))
builder
=
Builder
(
soc
,
**
builder_argdict
(
args
)
,
bios_options
=
[
"TERM_MINI"
]
)
builder
.
build
(
run
=
args
.
build
)
if
args
.
load
:
...
...
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