Skip to content

Commit

Permalink
Add more consistancy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Apr 21, 2020
1 parent b389878 commit 056bf63
Show file tree
Hide file tree
Showing 5 changed files with 442 additions and 302 deletions.
4 changes: 3 additions & 1 deletion src/main/scala/vexriscv/demo/smp/VexRiscvSmpCluster.scala
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ object VexRiscvSmpClusterTest extends App{
}
}


// echo "echo 10000 | dhrystone >> log" > test
// time sh test &
// top -b -n 1
object VexRiscvSmpClusterOpenSbi extends App{
import spinal.core.sim._

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/vexriscv/plugin/DBusCachedPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class DBusCachedPlugin(val config : DataCacheConfig,
if(withLrSc) insert(MEMORY_FENCE_BACK) setWhen(input(MEMORY_LRSC))
if(withAmo) insert(MEMORY_FENCE_BACK) setWhen(input(MEMORY_AMO))
}
when(input(INSTRUCTION)(25)) { //RL but a bit pessimistic as could be MEMORY_FENCE_BACK when the memory op isn't a read
when(input(INSTRUCTION)(25)) { //RL but a bit pessimistic as it could be MEMORY_FENCE_BACK when the memory op isn't a read
if(withLrSc) insert(MEMORY_FENCE_FRONT) setWhen(input(MEMORY_LRSC))
if(withAmo) insert(MEMORY_FENCE_FRONT) setWhen(input(MEMORY_AMO))
}
Expand Down
Loading

0 comments on commit 056bf63

Please sign in to comment.