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
431e563a
Commit
431e563a
authored
Nov 09, 2020
by
Florent Kermarrec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: move cmd/wdata/rdata descriptions and add minimal description of signals.
parent
c83e10da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
litedram/common.py
litedram/common.py
+15
-15
No files found.
litedram/common.py
View file @
431e563a
...
...
@@ -243,21 +243,6 @@ def data_layout(data_width):
(
"rdata"
,
data_width
,
DIR_S_TO_M
)
]
def
cmd_description
(
address_width
):
return
[
(
"we"
,
1
),
(
"addr"
,
address_width
)
]
def
wdata_description
(
data_width
):
return
[
(
"data"
,
data_width
),
(
"we"
,
data_width
//
8
)
]
def
rdata_description
(
data_width
):
return
[(
"data"
,
data_width
)]
def
cmd_request_layout
(
a
,
ba
):
return
[
(
"a"
,
a
),
...
...
@@ -291,6 +276,21 @@ class LiteDRAMInterface(Record):
# Ports --------------------------------------------------------------------------------------------
def
cmd_description
(
address_width
):
return
[
(
"we"
,
1
),
# Write (1) or Read (0).
(
"addr"
,
address_width
)
# Address (in Controller's words).
]
def
wdata_description
(
data_width
):
return
[
(
"data"
,
data_width
),
# Write Data.
(
"we"
,
data_width
//
8
),
# Write Data byte enable.
]
def
rdata_description
(
data_width
):
return
[(
"data"
,
data_width
)]
# Read Data.
class
LiteDRAMNativePort
(
Settings
):
def
__init__
(
self
,
mode
,
address_width
,
data_width
,
clock_domain
=
"sys"
,
id
=
0
):
self
.
set_attributes
(
locals
())
...
...
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