提交 603e72f2 编写于 作者: L Lingrui98

test: remove ifu test

上级 b8023dd5
package xiangshan.frontend
// package xiangshan.frontend
import chisel3._
import chiseltest._
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.must.Matchers
// import chisel3._
// import chiseltest._
// import org.scalatest.flatspec.AnyFlatSpec
// import org.scalatest.matchers.must.Matchers
class IFUTest extends AnyFlatSpec with ChiselScalatestTester with Matchers {
behavior of "IFU Test"
// class IFUTest extends AnyFlatSpec with ChiselScalatestTester with Matchers {
// behavior of "IFU Test"
it should "test IFU pipeline" in {
test(new IFU) { c =>
//-----------------
//Cycle 0
//-----------------
//c.io.icacheReq.ready.poke(true.B)
c.io.icacheReq.ready.poke(false.B)
c.io.fetchPacket.ready.poke(true.B)
c.clock.step()
//-----------------
//Cycle 1
//-----------------
c.clock.step()
c.clock.step()
c.clock.step()
//-----------------
// Cycle 2
//-----------------
c.io.icacheReq.ready.poke(true.B)
c.clock.step()
//-----------------
// Cycle 3
//-----------------
c.clock.step()
//-----------------
// Cycle 4
//-----------------
c.io.icacheResp.valid.poke(true.B)
c.clock.step()
//-----------------
// Cycle 5
//-----------------
c.io.redirect.valid.poke(true.B)
c.io.redirect.bits.poke("h80002800".U)
c.clock.step()
//-----------------
// Cycle 6
//-----------------
c.io.redirect.valid.poke(false.B)
c.clock.step()
//-----------------
// Cycle 7
//-----------------
c.clock.step()
}
}
}
// it should "test IFU pipeline" in {
// test(new IFU) { c =>
// //-----------------
// //Cycle 0
// //-----------------
// //c.io.icacheReq.ready.poke(true.B)
// c.io.icacheReq.ready.poke(false.B)
// c.io.fetchPacket.ready.poke(true.B)
// c.clock.step()
// //-----------------
// //Cycle 1
// //-----------------
// c.clock.step()
// c.clock.step()
// c.clock.step()
// //-----------------
// // Cycle 2
// //-----------------
// c.io.icacheReq.ready.poke(true.B)
// c.clock.step()
// //-----------------
// // Cycle 3
// //-----------------
// c.clock.step()
// //-----------------
// // Cycle 4
// //-----------------
// c.io.icacheResp.valid.poke(true.B)
// c.clock.step()
// //-----------------
// // Cycle 5
// //-----------------
// c.io.redirect.valid.poke(true.B)
// c.io.redirect.bits.poke("h80002800".U)
// c.clock.step()
// //-----------------
// // Cycle 6
// //-----------------
// c.io.redirect.valid.poke(false.B)
// c.clock.step()
// //-----------------
// // Cycle 7
// //-----------------
// c.clock.step()
// }
// }
// }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册