1
0

tilelink: we can have helper objects for terminal nodes now too!

The new rule is you should have an object.apply method if you only have a
single .node.
This commit is contained in:
Wesley W. Terpstra
2017-11-30 11:51:19 -08:00
parent 2092cb4ec8
commit 6a25a3b7ac
6 changed files with 43 additions and 1 deletions

View File

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