Merge pull request #727 from betrusted-io/master
fix a timing error in the S7 OPI block
This commit is contained in:
commit
ef6fd57613
|
@ -1393,7 +1393,7 @@ class S7SPIOPI(Module, AutoCSR, AutoDoc):
|
||||||
])
|
])
|
||||||
|
|
||||||
self.comb += self.ecc_status.fields.ecc_error.eq(ecs_n)
|
self.comb += self.ecc_status.fields.ecc_error.eq(ecs_n)
|
||||||
self.comb += [
|
self.sync += [
|
||||||
ecs_pulse.eq(ecs_n_delay & ~ecs_n), # falling edge -> positive pulse
|
ecs_pulse.eq(ecs_n_delay & ~ecs_n), # falling edge -> positive pulse
|
||||||
If(ecs_pulse,
|
If(ecs_pulse,
|
||||||
self.ecc_address.fields.ecc_address.eq(rom_addr),
|
self.ecc_address.fields.ecc_address.eq(rom_addr),
|
||||||
|
|
Loading…
Reference in New Issue