VexRiscv icon indicating copy to clipboard operation
VexRiscv copied to clipboard

data cache stuck

Open hchoi-lattice opened this issue 1 year ago • 3 comments

Hi Dolu1990, Found a weird D-cache stuck issue. Attached the waveform. It's related to refilling. D-cache goes into line fill phase and expect loader_counter_values to go up. On the other hand, dBus_cmd_valid is not asserted and it prevents main_cpu_dbus_cyc from being asserted. So, external memory controller does not know that it needs to send data to D-cache, while D-cache is waiting for the data. This makes a deadlock. Interestingly, the old version of VexRiscv (Generator : SpinalHDL v1.3.6 git head : 9bf01e7f360e003fac1dd5ca8b8f4bffec0e52b8) does not have this issue and works well. Thanks, Hoon

waveform

hchoi-lattice avatar Sep 01 '22 01:09 hchoi-lattice

Hi ^^ Weird, would there be a way for me to get the wave file of the case ? That would realy help :D

Dolu1990 avatar Sep 02 '22 09:09 Dolu1990

Confirmed that the same issue was reported and already solved in Linefill Question #170. Thanks!

hchoi-lattice avatar Sep 07 '22 18:09 hchoi-lattice

Hoo so with upstream version of VexRiscv, everything is good on your side ?

Dolu1990 avatar Sep 07 '22 18:09 Dolu1990