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
e9479cca
Commit
e9479cca
authored
Jan 04, 2021
by
Florent Kermarrec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
phy/gensdrphy: remove unused cmd_latency parameter.
parent
87f95f84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
litedram/phy/gensdrphy.py
litedram/phy/gensdrphy.py
+6
-6
No files found.
litedram/phy/gensdrphy.py
View file @
e9479cca
...
...
@@ -17,7 +17,7 @@ from litedram.phy.dfi import *
# Generic SDR PHY ----------------------------------------------------------------------------------
class
GENSDRPHY
(
Module
):
def
__init__
(
self
,
pads
,
cl
=
2
,
cmd_latency
=
1
):
def
__init__
(
self
,
pads
,
cl
=
2
):
pads
=
PHYPadsCombiner
(
pads
)
addressbits
=
len
(
pads
.
a
)
bankbits
=
len
(
pads
.
ba
)
...
...
@@ -37,7 +37,7 @@ class GENSDRPHY(Module):
rdphase
=
0
,
wrphase
=
0
,
cl
=
cl
,
read_latency
=
cl
+
cmd_latency
,
read_latency
=
cl
+
1
,
write_latency
=
0
)
...
...
@@ -78,14 +78,14 @@ class GENSDRPHY(Module):
self
.
specials
+=
SDROutput
(
i
=
dfi
.
p0
.
wrdata_en
&
dfi
.
p0
.
wrdata_mask
[
i
],
o
=
pads
.
dm
[
i
])
# DQ/DM Control Path -----------------------------------------------------------------------
rddata_en
=
Signal
(
cl
+
cm
d_latency
)
rddata_en
=
Signal
(
self
.
settings
.
rea
d_latency
)
self
.
sync
+=
rddata_en
.
eq
(
Cat
(
dfi
.
p0
.
rddata_en
,
rddata_en
))
self
.
sync
+=
dfi
.
p0
.
rddata_valid
.
eq
(
rddata_en
[
-
1
])
# Half-rate Generic SDR PHY ------------------------------------------------------------------------
class
HalfRateGENSDRPHY
(
Module
):
def
__init__
(
self
,
pads
,
cl
=
2
,
cmd_latency
=
1
):
def
__init__
(
self
,
pads
,
cl
=
2
):
pads
=
PHYPadsCombiner
(
pads
)
addressbits
=
len
(
pads
.
a
)
bankbits
=
len
(
pads
.
ba
)
...
...
@@ -94,7 +94,7 @@ class HalfRateGENSDRPHY(Module):
nphases
=
2
# FullRate PHY -----------------------------------------------------------------------------
full_rate_phy
=
GENSDRPHY
(
pads
,
cl
,
cmd_latency
)
full_rate_phy
=
GENSDRPHY
(
pads
,
cl
)
self
.
submodules
+=
ClockDomainsRenamer
(
"sys2x"
)(
full_rate_phy
)
# Clocking ---------------------------------------------------------------------------------
...
...
@@ -120,7 +120,7 @@ class HalfRateGENSDRPHY(Module):
rdphase
=
0
,
wrphase
=
0
,
cl
=
cl
,
read_latency
=
(
cl
+
cmd_latency
)
//
2
+
1
,
read_latency
=
full_rate_phy
.
settings
.
read_latency
//
2
+
1
,
write_latency
=
0
)
...
...
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