1
0

use Atos serdes/desser in Atos unit test

This commit is contained in:
Howard Mao 2016-02-24 21:34:50 -08:00
parent ee66da603a
commit 075fdfb847

View File

@ -391,24 +391,16 @@ class AtosConverterTest(implicit p: Parameters) extends UnitTest {
val frontend = Module(new AtosConverterTestFrontend) val frontend = Module(new AtosConverterTestFrontend)
val backend = Module(new AtosConverterTestBackend) val backend = Module(new AtosConverterTestBackend)
val fe_ser = Module(new Serializer(new AtosRequest)) val serdes = Module(new AtosSerdes(8))
val fe_des = Module(new Deserializer(new AtosResponse)) val desser = Module(new AtosDesser(8))
val be_des = Module(new Deserializer(new AtosRequest))
val be_ser = Module(new Serializer(new AtosResponse))
val client_conv = Module(new AtosClientConverter) val client_conv = Module(new AtosClientConverter)
val manager_conv = Module(new AtosManagerConverter) val manager_conv = Module(new AtosManagerConverter)
client_conv.io.nasti <> frontend.io.nasti client_conv.io.nasti <> frontend.io.nasti
fe_ser.io.in <> client_conv.io.atos.req serdes.io.wide <> client_conv.io.atos
client_conv.io.atos.resp <> fe_des.io.out desser.io.narrow <> serdes.io.narrow
manager_conv.io.atos <> desser.io.wide
be_des.io.in <> fe_ser.io.out
fe_des.io.in <> be_ser.io.out
manager_conv.io.atos.req <> be_des.io.out
be_ser.io.in <> manager_conv.io.atos.resp
backend.io.nasti <> manager_conv.io.nasti backend.io.nasti <> manager_conv.io.nasti
io.finished := frontend.io.finished && backend.io.finished io.finished := frontend.io.finished && backend.io.finished