2016-09-15 22:04:01 +02:00
|
|
|
package groundtest
|
|
|
|
|
|
|
|
import Chisel._
|
|
|
|
import cde.{Parameters}
|
2016-09-22 01:54:35 +02:00
|
|
|
import coreplex._
|
2016-09-15 22:04:01 +02:00
|
|
|
|
2016-10-28 00:34:37 +02:00
|
|
|
class GroundTestCoreplex(implicit p: Parameters) extends BaseCoreplex
|
|
|
|
with DirectConnection {
|
2016-10-29 01:47:20 +02:00
|
|
|
override lazy val module = new GroundTestCoreplexModule(new GroundTestCoreplexBundle(this))
|
2016-09-22 01:54:35 +02:00
|
|
|
}
|
|
|
|
|
2016-10-27 07:28:40 +02:00
|
|
|
class GroundTestCoreplexBundle[+L <: GroundTestCoreplex](outer: L) extends BaseCoreplexBundle(outer)
|
2016-09-22 01:54:35 +02:00
|
|
|
|
2016-10-29 01:47:20 +02:00
|
|
|
class GroundTestCoreplexModule[+B <: GroundTestCoreplexBundle[GroundTestCoreplex]](io: B) extends BaseCoreplexModule(io)
|
2016-10-28 00:34:37 +02:00
|
|
|
with DirectConnectionModule {
|
2016-09-22 01:54:35 +02:00
|
|
|
io.success := tiles.flatMap(_.io.elements get "success").map(_.asInstanceOf[Bool]).reduce(_&&_)
|
2016-09-15 22:04:01 +02:00
|
|
|
}
|