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-09-22 01:54:35 +02:00
|
|
|
class GroundTestCoreplex(c: CoreplexConfig)(implicit p: Parameters) extends BaseCoreplex(c)(p) {
|
|
|
|
override lazy val module = Module(new GroundTestCoreplexModule(c, this, new GroundTestCoreplexBundle(c)(p))(p))
|
|
|
|
}
|
|
|
|
|
|
|
|
class GroundTestCoreplexBundle(c: CoreplexConfig)(implicit p: Parameters) extends BaseCoreplexBundle(c)(p)
|
|
|
|
|
|
|
|
class GroundTestCoreplexModule[+L <: GroundTestCoreplex, +B <: GroundTestCoreplexBundle](
|
2016-10-25 23:28:52 +02:00
|
|
|
c: CoreplexConfig, l: L, b: B)(implicit p: Parameters) extends BaseCoreplexModule(c, l, b)(p) with DirectConnection {
|
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
|
|
|
}
|