1
0

RAMModel: add a convenience object

This commit is contained in:
Wesley W. Terpstra 2017-11-13 13:12:32 -08:00
parent 7cfb69e2d5
commit 353ddffc11

View File

@ -333,6 +333,9 @@ class TLRAMModel(log: String = "", ignoreErrorData: Boolean = false)(implicit p:
object TLRAMModel object TLRAMModel
{ {
def apply(log: String = "", ignoreErrorData: Boolean = false)(implicit p: Parameters) =
LazyModule(new TLRAMModel(log, ignoreErrorData)).node
case class MonitorParameters(addressBits: Int, sizeBits: Int) case class MonitorParameters(addressBits: Int, sizeBits: Int)
class ByteMonitor(params: MonitorParameters) extends GenericParameterizedBundle(params) { class ByteMonitor(params: MonitorParameters) extends GenericParameterizedBundle(params) {