core/refresher: reduce RefreshGenerator start delay by 1 cycle

This commit is contained in:
Florent Kermarrec 2019-07-24 08:01:54 +02:00
parent b543286d06
commit afb6d0a15e
2 changed files with 6 additions and 6 deletions

View file

@ -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)
])
])

View file

@ -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):