Use case class for noncoal/coal bundles
don't know what they really do, but they look fancy
This commit is contained in:
@@ -165,12 +165,12 @@ class Request(sourceWidth: Int, sizeWidth: Int, addressWidth: Int, dataWidth: In
|
|||||||
bits
|
bits
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class NonCoalescedRequest(config: CoalescerConfig)
|
case class NonCoalescedRequest(config: CoalescerConfig)
|
||||||
extends Request(sourceWidth = log2Ceil(config.numOldSrcIds),
|
extends Request(sourceWidth = log2Ceil(config.numOldSrcIds),
|
||||||
sizeWidth = config.wordSizeWidth,
|
sizeWidth = config.wordSizeWidth,
|
||||||
addressWidth = config.addressWidth,
|
addressWidth = config.addressWidth,
|
||||||
dataWidth = config.wordSizeInBytes * 8)
|
dataWidth = config.wordSizeInBytes * 8)
|
||||||
class CoalescedRequest(config: CoalescerConfig)
|
case class CoalescedRequest(config: CoalescerConfig)
|
||||||
extends Request(sourceWidth = log2Ceil(config.numNewSrcIds),
|
extends Request(sourceWidth = log2Ceil(config.numNewSrcIds),
|
||||||
sizeWidth = log2Ceil(config.maxCoalLogSize),
|
sizeWidth = log2Ceil(config.maxCoalLogSize),
|
||||||
addressWidth = config.addressWidth,
|
addressWidth = config.addressWidth,
|
||||||
@@ -204,11 +204,11 @@ class Response(sourceWidth: Int, sizeWidth: Int, dataWidth: Int) extends Bundle
|
|||||||
this.error := bundle.denied
|
this.error := bundle.denied
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class NonCoalescedResponse(config: CoalescerConfig)
|
case class NonCoalescedResponse(config: CoalescerConfig)
|
||||||
extends Response(sourceWidth = log2Ceil(config.numOldSrcIds),
|
extends Response(sourceWidth = log2Ceil(config.numOldSrcIds),
|
||||||
sizeWidth = config.wordSizeWidth,
|
sizeWidth = config.wordSizeWidth,
|
||||||
dataWidth = config.wordSizeInBytes * 8)
|
dataWidth = config.wordSizeInBytes * 8)
|
||||||
class CoalescedResponse(config: CoalescerConfig)
|
case class CoalescedResponse(config: CoalescerConfig)
|
||||||
extends Response(sourceWidth = log2Ceil(config.numNewSrcIds),
|
extends Response(sourceWidth = log2Ceil(config.numNewSrcIds),
|
||||||
sizeWidth = log2Ceil(config.maxCoalLogSize),
|
sizeWidth = log2Ceil(config.maxCoalLogSize),
|
||||||
dataWidth = (8 * (1 << config.maxCoalLogSize)))
|
dataWidth = (8 * (1 << config.maxCoalLogSize)))
|
||||||
|
|||||||
Reference in New Issue
Block a user