mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
core/refresher: reduce RefreshGenerator start delay by 1 cycle
This commit is contained in:
parent
b543286d06
commit
afb6d0a15e
2 changed files with 6 additions and 6 deletions
|
@ -31,17 +31,17 @@ class RefreshGenerator(Module):
|
||||||
# Wait start
|
# Wait start
|
||||||
timeline(self.start, [
|
timeline(self.start, [
|
||||||
# Precharge all
|
# Precharge all
|
||||||
(1, [
|
(0, [
|
||||||
cmd.ras.eq(1),
|
cmd.ras.eq(1),
|
||||||
cmd.we.eq(1)
|
cmd.we.eq(1)
|
||||||
]),
|
]),
|
||||||
# Wait tRP then Auto Refresh
|
# Wait tRP then Auto Refresh
|
||||||
(1 + trp, [
|
(trp, [
|
||||||
cmd.cas.eq(1),
|
cmd.cas.eq(1),
|
||||||
cmd.ras.eq(1)
|
cmd.ras.eq(1)
|
||||||
]),
|
]),
|
||||||
# Wait tRFC then done
|
# Wait tRFC then done
|
||||||
(1 + trp + trfc, [
|
(trp + trfc, [
|
||||||
self.done.eq(1)
|
self.done.eq(1)
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
|
@ -36,9 +36,9 @@ class TestRefresh(unittest.TestCase):
|
||||||
class Obj: pass
|
class Obj: pass
|
||||||
cmds = Obj()
|
cmds = Obj()
|
||||||
starts = "_-______________"
|
starts = "_-______________"
|
||||||
cmds.cas = "____-___________"
|
cmds.cas = "___-____________"
|
||||||
cmds.ras = "___--___________"
|
cmds.ras = "__--____________"
|
||||||
dones = "______-_________"
|
dones = "_____-__________"
|
||||||
self.refresh_generator_test(trp, trfc, starts, dones, cmds)
|
self.refresh_generator_test(trp, trfc, starts, dones, cmds)
|
||||||
|
|
||||||
def refresh_timer_test(self, trefi):
|
def refresh_timer_test(self, trefi):
|
||||||
|
|
Loading…
Reference in a new issue