fix a timing error in the S7 OPI block

should have no impact on normal operation, the path is
only for registering addresses that are correlated with
ECC errors as reported by the OPI device.
This commit is contained in:
bunnie 2020-12-10 22:48:09 +08:00
parent a1bfa79092
commit 8ee0fdbf8e
1 changed files with 1 additions and 1 deletions

View File

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