1
0

make sure UseAtomics is on when PTW is being used

This commit is contained in:
Howard Mao 2016-06-22 16:09:45 -07:00
parent d1c83ccda0
commit 4c31248917

View File

@ -58,6 +58,8 @@ class PTW(n: Int)(implicit p: Parameters) extends CoreModule()(p) {
val mem = new HellaCacheIO val mem = new HellaCacheIO
val dpath = new DatapathPTWIO val dpath = new DatapathPTWIO
} }
require(usingAtomics, "PTW requires atomic memory operations")
val s_ready :: s_req :: s_wait :: s_set_dirty :: s_wait_dirty :: s_done :: Nil = Enum(UInt(), 6) val s_ready :: s_req :: s_wait :: s_set_dirty :: s_wait_dirty :: s_done :: Nil = Enum(UInt(), 6)
val state = Reg(init=s_ready) val state = Reg(init=s_ready)