Make a directory for the config package (#464)
* [config] make dir structure mirror packages * [config] expunge max_int
This commit is contained in:
		| @@ -4,8 +4,10 @@ | ||||
| package coreplex | ||||
|  | ||||
| import Chisel._ | ||||
| import junctions._ | ||||
| import config._ | ||||
| import diplomacy._ | ||||
| import junctions.PAddrBits | ||||
| import rocket._ | ||||
| import uncore.tilelink._ | ||||
| import uncore.tilelink2._ | ||||
| import uncore.coherence._ | ||||
| @@ -13,10 +15,7 @@ import uncore.agents._ | ||||
| import uncore.devices._ | ||||
| import uncore.converters._ | ||||
| import uncore.util._ | ||||
| import rocket._ | ||||
| import util._ | ||||
| import util.ConfigUtils._ | ||||
| import config._ | ||||
|  | ||||
| class BaseCoreplexConfig extends Config ( | ||||
|   { (pname,site,here) => | ||||
| @@ -95,11 +94,11 @@ class BaseCoreplexConfig extends Config ( | ||||
|           nManagers = site(BankedL2Config).nBanks + 1 /* MMIO */, | ||||
|           nCachingClients = 1, | ||||
|           nCachelessClients = 1, | ||||
|           maxClientXacts = max_int( | ||||
|           maxClientXacts = List( | ||||
|               // L1 cache | ||||
|               site(DCacheKey).nMSHRs + 1 /* IOMSHR */, | ||||
|               // RoCC | ||||
|               if (site(BuildRoCC).isEmpty) 1 else site(RoccMaxTaggedMemXacts)), | ||||
|               if (site(BuildRoCC).isEmpty) 1 else site(RoccMaxTaggedMemXacts)).max, | ||||
|           maxClientsPerPort = if (site(BuildRoCC).isEmpty) 1 else 2, | ||||
|           maxManagerXacts = site(NAcquireTransactors) + 2, | ||||
|           dataBeats = innerDataBeats, | ||||
|   | ||||
| @@ -16,7 +16,6 @@ import config._ | ||||
| import scala.math.max | ||||
| import coreplex._ | ||||
| import rocketchip._ | ||||
| import util.ConfigUtils._ | ||||
|  | ||||
| /** Actual testing target Configs */ | ||||
|  | ||||
|   | ||||
| @@ -1,11 +0,0 @@ | ||||
| // See LICENSE.Berkeley for license details. | ||||
|  | ||||
| package util | ||||
|  | ||||
| import scala.math.max | ||||
|  | ||||
| object ConfigUtils { | ||||
|   def max_int(values: Int*): Int = { | ||||
|     values.reduce((a, b) => max(a, b)) | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user