1
0

groundtest: make it happy with TL2 addressing

This commit is contained in:
Wesley W. Terpstra 2016-10-27 19:55:40 -07:00
parent 9a26cb7ec7
commit 545154c1c3
3 changed files with 6 additions and 8 deletions

View File

@ -96,9 +96,9 @@ abstract class GroundTest(implicit val p: Parameters) extends Module
val io = new GroundTestIO val io = new GroundTestIO
} }
class GroundTestTile(implicit val p: Parameters) extends LazyTile with HasGroundTestParameters { class GroundTestTile(implicit val p: Parameters) extends LazyTile {
val slave = None val slave = None
lazy val module = new TileImp(this) { lazy val module = new TileImp(this) with HasGroundTestParameters {
val io = new TileIO(bc) { val io = new TileIO(bc) {
val success = Bool(OUTPUT) val success = Bool(OUTPUT)
} }

View File

@ -40,7 +40,7 @@ class TileIO(c: TileBundleConfig, node: Option[TLInwardNode] = None)(implicit p:
override def cloneType = new TileIO(c).asInstanceOf[this.type] override def cloneType = new TileIO(c).asInstanceOf[this.type]
} }
abstract class TileImp(l: LazyTile)(implicit p: Parameters) extends LazyModuleImp(l) { abstract class TileImp(l: LazyTile)(implicit val p: Parameters) extends LazyModuleImp(l) {
val io: TileIO val io: TileIO
} }

View File

@ -38,11 +38,9 @@ class TLLegacy(implicit val p: Parameters) extends LazyModule with HasTileLinkPa
require (m.supportsPutPartial.contains(TransferSizes(1, tlDataBytes))) require (m.supportsPutPartial.contains(TransferSizes(1, tlDataBytes)))
require (m.supportsPutPartial.contains(TransferSizes(tlDataBeats * tlDataBytes))) require (m.supportsPutPartial.contains(TransferSizes(tlDataBeats * tlDataBytes)))
} }
// Any atomic support => must support 32-bit up to beat size of all types // Any atomic support => must support 32-bit size
if (m.supportsArithmetic || m.supportsLogical) { if (m.supportsArithmetic) { require (m.supportsArithmetic.contains(TransferSizes(4))) }
require (m.supportsArithmetic.contains(TransferSizes(4, tlDataBytes))) if (m.supportsLogical) { require (m.supportsLogical .contains(TransferSizes(4))) }
require (m.supportsLogical .contains(TransferSizes(4, tlDataBytes)))
}
// We straight-up require hints // We straight-up require hints
require (edge.manager.allSupportHint) require (edge.manager.allSupportHint)
} }