提交 f5e468b7 编写于 作者: A Allen

Fixed the parameter passing to exec LogUtils.

Fixed the unexpected output.
But I could not fully explain the scala or chisel issues behind this.
It just worked.
上级 6a54d910
......@@ -70,7 +70,7 @@ sealed abstract class LogHelper(val logLevel: XSLogLevel) extends HasXSParameter
}
// dump under with certain prefix
def exec(dump: => Unit)(implicit name: String): Unit = {
def exec(dump: () => Unit)(implicit name: String): Unit = {
when (trigger) {
printPrefix
dump
......@@ -78,7 +78,7 @@ sealed abstract class LogHelper(val logLevel: XSLogLevel) extends HasXSParameter
}
// dump under certain condition and with certain prefix
def exec(cond: Bool, dump: => Unit)(implicit name: String): Unit = {
def exec(cond: Bool, dump: () => Unit)(implicit name: String): Unit = {
when (trigger && cond) {
printPrefix
dump
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册