Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
litedram
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
0
Merge Requests
0
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
litedram
Commits
aa3ed0bb
Unverified
Commit
aa3ed0bb
authored
Mar 01, 2021
by
enjoy-digital
Committed by
GitHub
Mar 01, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #234 from craigjb/build_name
Add module name CLI option
parents
2d021c84
a1c5a10f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
litedram/gen.py
litedram/gen.py
+2
-1
No files found.
litedram/gen.py
View file @
aa3ed0bb
...
...
@@ -682,6 +682,7 @@ def main():
parser
.
set_defaults
(
output_dir
=
"build"
)
parser
.
add_argument
(
"config"
,
help
=
"YAML config file"
)
parser
.
add_argument
(
"--sim"
,
action
=
'store_true'
,
help
=
"Integrate SDRAMPHYModel in core for simulation"
)
parser
.
add_argument
(
"--module-name"
,
default
=
"litedram_core"
,
help
=
"Set Verilog module name"
)
args
=
parser
.
parse_args
()
core_config
=
yaml
.
load
(
open
(
args
.
config
).
read
(),
Loader
=
yaml
.
Loader
)
...
...
@@ -715,7 +716,7 @@ def main():
soc
=
LiteDRAMCore
(
platform
,
core_config
,
integrated_rom_size
=
0x8000
)
builder
=
Builder
(
soc
,
**
builder_arguments
)
builder
.
build
(
build_name
=
"litedram_core"
,
regular_comb
=
False
)
builder
.
build
(
build_name
=
args
.
module_name
,
regular_comb
=
False
)
if
soc
.
cpu_type
is
not
None
:
init_filename
=
"mem.init"
...
...
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