t-crest / patmos

Patmos is a time-predictable VLIW processor, and the processor for the T-CREST project
http://patmos.compute.dtu.dk
BSD 2-Clause "Simplified" License
135 stars 72 forks source link

Add a direct-mapped write back data cache with write-allocation. #8

Closed clauniel closed 9 years ago

clauniel commented 9 years ago

In order for the cache to work, the writemaster in DataCache.scala must be set to OcpCmd.IDLE when using the data cache by changing

wc.io.writeMaster.M.Cmd := Mux(!selSC, io.master.M.Cmd, OcpCmd.IDLE)

to

wc.io.writeMaster.M.Cmd := Mux(!selSC && !selDC, io.master.M.Cmd, OcpCmd.IDLE)

In DataCache.scala.