Merge pull request #727 from betrusted-io/master

fix a timing error in the S7 OPI block
This commit is contained in:
bunnie 2020-12-10 23:17:29 +08:00 committed by GitHub
commit ef6fd57613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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),