projects
/
nmigen-soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbc9141
)
must not delay ack to wb request in SRAM
master
24jan2021_ls180
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 1 Oct 2020 17:15:54 +0000
(18:15 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 1 Oct 2020 17:15:54 +0000
(18:15 +0100)
nmigen_soc/wishbone/sram.py
patch
|
blob
|
history
diff --git
a/nmigen_soc/wishbone/sram.py
b/nmigen_soc/wishbone/sram.py
index 22b0efdd330f2af99dc25bcdc0133f95b0e59957..1575e6ae692f1fe198077a01487eb7710b5c0b64 100644
(file)
--- a/
nmigen_soc/wishbone/sram.py
+++ b/
nmigen_soc/wishbone/sram.py
@@
-95,16
+95,9
@@
class SRAM(Elaboratable):
with m.If(wen):
m.d.comb += wrport.en.eq(self.bus.sel)
with m.If(wen):
m.d.comb += wrport.en.eq(self.bus.sel)
- # generate ack
+ # generate ack
(no "pipeline" mode here)
m.d.sync += self.bus.ack.eq(0)
m.d.sync += self.bus.ack.eq(0)
- with m.If(self.bus.cyc & self.bus.stb & ~self.bus.ack):
- if False: # test which deliberately delays response
- counter = Signal(3)
- m.d.sync += counter.eq(counter + 1)
- with m.If(counter == 7):
- m.d.sync += self.bus.ack.eq(1)
- m.d.sync += counter.eq(0)
- else:
- m.d.sync += self.bus.ack.eq(1)
+ with m.If(self.bus.cyc & self.bus.stb):
+ m.d.sync += self.bus.ack.eq(1)
return m
return m