提交 9b6529a7 编写于 作者: B BigWhiteDog

fix bug in amo test,

 but it can't run with store test
上级 d4da0b91
......@@ -156,7 +156,7 @@ class CoreAgent(ID: Int, name: String, addrStateMap: mutable.Map[BigInt, AddrSta
val aid = allocId.get
//alloc & issue
amoPortReqMessage = Some(nextAMO.get.issueReq(BigInt(aid)))
amoIdMap(BigInt(aid))
amoIdMap(BigInt(aid)) = nextAMO.get
}
}
}
......
......@@ -131,7 +131,7 @@ class DCacheAMOCallerTrans extends DCacheAMOTrans with TLCCallerTrans {
mask = mask,
)
)
reqIssued = Some(true)
reqIssued = Some(false)
}
def issueReq(allodId: BigInt = 0): LitDCacheWordReq = {
......
......@@ -64,7 +64,7 @@ class L1DCacheTest extends AnyFlatSpec with ChiselScalatestTester with Matchers
val rand = new Random(0xbeef)
val addr_pool = {
for (_ <- 0 until 64) yield BigInt(rand.nextInt(0xfffff) << 6) | 0x80000000L.U.litValue()
for (_ <- 0 until 256) yield BigInt(rand.nextInt(0xfffff) << 6) | 0x80000000L.U.litValue()
}.distinct.toList // align to block size
val addr_list_len = addr_pool.length
println(f"addr pool length: $addr_list_len")
......@@ -114,7 +114,7 @@ class L1DCacheTest extends AnyFlatSpec with ChiselScalatestTester with Matchers
c.io.slaveIO.DChannel.valid.poke(false.B)
val total_clock = 500
val total_clock = 50000
c.reset.poke(true.B)
c.clock.step(100)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册