update to tilelink2
This commit is contained in:
@@ -5,24 +5,26 @@ import diplomacy.LazyModule
|
||||
import rocketchip._
|
||||
import testchipip._
|
||||
import chisel3._
|
||||
import cde.Parameters
|
||||
import config.Parameters
|
||||
|
||||
class TestHarness(implicit val p: Parameters) extends Module {
|
||||
val io = IO(new Bundle {
|
||||
val success = Output(Bool())
|
||||
})
|
||||
|
||||
def buildTop(p: Parameters): ExampleTop = LazyModule(new ExampleTop(p))
|
||||
def buildTop(p: Parameters): ExampleTop = LazyModule(new ExampleTop()(p))
|
||||
|
||||
val dut = buildTop(p).module
|
||||
val dut = Module(buildTop(p).module)
|
||||
val ser = Module(new SimSerialWrapper(p(SerialInterfaceWidth)))
|
||||
|
||||
val nMemChannels = dut.io.mem_axi.size
|
||||
for (axi <- dut.io.mem_axi) {
|
||||
val mem = Module(new SimAXIMem(BigInt(p(ExtMemSize) / nMemChannels)))
|
||||
mem.io.axi <> axi
|
||||
dut.io.debug.map { dbg =>
|
||||
dbg.req.valid := false.B
|
||||
dbg.resp.ready := false.B
|
||||
}
|
||||
|
||||
val nMemChannels = p(coreplex.BankedL2Config).nMemoryChannels
|
||||
val mem = Module(LazyModule(new SimAXIMem(nMemChannels)).module)
|
||||
mem.io.axi4 <> dut.io.mem_axi4
|
||||
ser.io.serial <> dut.io.serial
|
||||
io.success := ser.io.exit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user