core/refresher: remove load/load_count on RefreshTimer (not used)
This commit is contained in:
parent
1c69f49760
commit
fb28f791c8
|
@ -89,23 +89,14 @@ class RefreshTimer(Module):
|
||||||
self.done = Signal()
|
self.done = Signal()
|
||||||
self.count = Signal(bits_for(trefi))
|
self.count = Signal(bits_for(trefi))
|
||||||
|
|
||||||
self.load = Signal()
|
|
||||||
self.load_count = Signal(bits_for(trefi))
|
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
done = Signal()
|
done = Signal()
|
||||||
count = Signal(bits_for(trefi), reset=trefi-1)
|
count = Signal(bits_for(trefi), reset=trefi-1)
|
||||||
|
|
||||||
self.sync += [
|
self.sync += [
|
||||||
If(self.wait,
|
If(self.wait & ~self.done,
|
||||||
If(~self.done,
|
|
||||||
If(self.load & (self.load_count < count),
|
|
||||||
count.eq(self.load_count)
|
|
||||||
).Else(
|
|
||||||
count.eq(count - 1)
|
count.eq(count - 1)
|
||||||
)
|
|
||||||
)
|
|
||||||
).Else(
|
).Else(
|
||||||
count.eq(count.reset)
|
count.eq(count.reset)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue