1
0

Fix groundtest without HTIF

This commit is contained in:
Andrew Waterman
2016-06-23 12:17:26 -07:00
parent 30331fcaeb
commit 2d44be747a
6 changed files with 25 additions and 22 deletions

View File

@ -36,8 +36,7 @@ class WithGroundTest extends Config(
(r: Bool, p: Parameters) =>
Module(new GroundTestTile(i, r)(p.alterPartial({
case TLId => "L1toL2"
case NUncachedTileLinkPorts =>
(if (i == 0) 1 else 0) + p(GroundTestUncachedClients)
case NUncachedTileLinkPorts => p(GroundTestUncachedClients)
})))
}
}
@ -76,7 +75,7 @@ class WithComparator extends Config(
Seq((r: Bool, p: Parameters) => Module(new ComparatorTile(r)(
p.alterPartial({
case TLId => "L1toL2"
case NUncachedTileLinkPorts => 1 + site(ComparatorKey).targets.size
case NUncachedTileLinkPorts => site(ComparatorKey).targets.size
}))))
}
case ComparatorKey => ComparatorParameters(