projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97e61dd
)
comment read ack in sram
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 26 Apr 2021 09:32:42 +0000
(10:32 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 26 Apr 2021 09:32:42 +0000
(10:32 +0100)
src/soc/bus/sram.py
patch
|
blob
|
history
diff --git
a/src/soc/bus/sram.py
b/src/soc/bus/sram.py
index 1575e6ae692f1fe198077a01487eb7710b5c0b64..7d63490901a041279fd16315e73a2ecd5f1353d1 100644
(file)
--- a/
src/soc/bus/sram.py
+++ b/
src/soc/bus/sram.py
@@
-71,7
+71,9
@@
class SRAM(Elaboratable):
if self.memory.width > len(self.bus.dat_r):
raise NotImplementedError
- # read
+ # read - this relies on the read port producing data
+ # with one clock delay. the "ack" goes out on a sync
+ # which matches that
m.submodules.rdport = rdport = self.memory.read_port()
m.d.comb += [
rdport.addr.eq(self.bus.adr[:len(rdport.addr)]),