Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
litex
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
Jonathan Currier
litex
Commits
408d3f1f
Unverified
Commit
408d3f1f
authored
Jun 19, 2019
by
enjoy-digital
Committed by
GitHub
Jun 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #201 from gsomlo/gls-fix-initmem
tools/litex_sim: fix default endianness for mem_init
parents
f47b4902
ab827d21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
litex/tools/litex_sim.py
litex/tools/litex_sim.py
+3
-3
No files found.
litex/tools/litex_sim.py
View file @
408d3f1f
...
...
@@ -214,10 +214,10 @@ def main():
sim_config
=
SimConfig
(
default_clk
=
"sys_clk"
)
sim_config
.
add_module
(
"serial2console"
,
"serial"
)
cpu_endianness
=
"
big
"
cpu_endianness
=
"
little
"
if
"cpu_type"
in
soc_kwargs
:
if
soc_kwargs
[
"cpu_type"
]
in
[
"
picorv32"
,
"vexriscv
"
]:
cpu_endianness
=
"
little
"
if
soc_kwargs
[
"cpu_type"
]
in
[
"
mor1kx"
,
"lm32
"
]:
cpu_endianness
=
"
big
"
if
args
.
rom_init
:
soc_kwargs
[
"integrated_rom_init"
]
=
get_mem_data
(
args
.
rom_init
,
cpu_endianness
)
...
...
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