blob: 07f55f6b4949db0b47d7bb31e42a6ec78635222d [file] [log] [blame]
package tilelink
import org.scalatest._
import chiseltest._
import chisel3._
import merl.uit.tilelink.{Arbiter, TLConfiguration}
class ArbiterTest extends FlatSpec with ChiselScalatestTester with Matchers {
implicit val tl_conf = TLConfiguration()
behavior of "Arbiter connecting multiple hosts to single device"
it should "connect host 0 with device" in {
test(new Arbiter(2)) { c =>
// Host 1 data"b1111".U)
// Host 2 data"b1111".U)
// the slave is ready to accept the data