In ECC.scala, in my opinion, there is a simple mechanism to select the type of ECC coding for the ICache and DCache that the generator finally will decide the ECC type by the string we assign to the “tagCode” and “dataCode”.
In the rocket src, the “tagCode” and “dataCode” of both ICache and DCache are “None”. So I think there is no ECC coding in the final verilog files. But I saw there are many ECC related codes in the final verilog files, such as “eccmask”.
Then I don’t know whether the ECC support effective in the default configs of Rocket.