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
|
||||
timeline(self.start, [
|
||||
# Precharge all
|
||||
(1, [
|
||||
(0, [
|
||||
cmd.ras.eq(1),
|
||||
cmd.we.eq(1)
|
||||
]),
|
||||
# Wait tRP then Auto Refresh
|
||||
(1 + trp, [
|
||||
(trp, [
|
||||
cmd.cas.eq(1),
|
||||
cmd.ras.eq(1)
|
||||
]),
|
||||
# Wait tRFC then done
|
||||
(1 + trp + trfc, [
|
||||
(trp + trfc, [
|
||||
self.done.eq(1)
|
||||
])
|
||||
])
|
||||
|
|
|
@ -36,9 +36,9 @@ class TestRefresh(unittest.TestCase):
|
|||
class Obj: pass
|
||||
cmds = Obj()
|
||||
starts = "_-______________"
|
||||
cmds.cas = "____-___________"
|
||||
cmds.ras = "___--___________"
|
||||
dones = "______-_________"
|
||||
cmds.cas = "___-____________"
|
||||
cmds.ras = "__--____________"
|
||||
dones = "_____-__________"
|
||||
self.refresh_generator_test(trp, trfc, starts, dones, cmds)
|
||||
|
||||
def refresh_timer_test(self, trefi):
|
||||
|
|
Loading…
Reference in a new issue