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
17db7573
Unverified
Commit
17db7573
authored
Jan 30, 2021
by
enjoy-digital
Committed by
GitHub
Jan 30, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #229 from craigjb/port_width
Add customizable standalone user port data widths
parents
2f578443
5c32dc71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
litedram/gen.py
litedram/gen.py
+6
-3
No files found.
litedram/gen.py
View file @
17db7573
...
...
@@ -545,7 +545,8 @@ class LiteDRAMCore(SoCCore):
for
name
,
port
in
core_config
[
"user_ports"
].
items
():
# Native -------------------------------------------------------------------------------
if
port
[
"type"
]
==
"native"
:
user_port
=
self
.
sdram
.
crossbar
.
get_port
()
user_port
=
self
.
sdram
.
crossbar
.
get_port
(
data_width
=
port
.
get
(
"data_width"
,
None
))
platform
.
add_extension
(
get_native_user_port_ios
(
name
,
user_port
.
address_width
,
user_port
.
data_width
))
...
...
@@ -570,7 +571,8 @@ class LiteDRAMCore(SoCCore):
]
# Wishbone -----------------------------------------------------------------------------
elif
port
[
"type"
]
==
"wishbone"
:
user_port
=
self
.
sdram
.
crossbar
.
get_port
()
user_port
=
self
.
sdram
.
crossbar
.
get_port
(
data_width
=
port
.
get
(
"data_width"
,
None
))
wb_port
=
wishbone
.
Interface
(
user_port
.
data_width
,
user_port
.
address_width
)
...
...
@@ -593,7 +595,8 @@ class LiteDRAMCore(SoCCore):
]
# AXI ----------------------------------------------------------------------------------
elif
port
[
"type"
]
==
"axi"
:
user_port
=
self
.
sdram
.
crossbar
.
get_port
()
user_port
=
self
.
sdram
.
crossbar
.
get_port
(
data_width
=
port
.
get
(
"data_width"
,
None
))
axi_port
=
LiteDRAMAXIPort
(
user_port
.
data_width
,
user_port
.
address_width
+
log2_int
(
user_port
.
data_width
//
8
),
...
...
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