体验新版 GitCode,发现更多精彩内容 >>
package utils
import chisel3._
import chisel3.util._ import noop.NOOPConfig
object Debug {
def apply(flag: Boolean = NOOPConfig().EnableDebug, cond: Bool = true.B)(body: => Unit): Any = if (flag) { when (cond && GTimer() > 100.U) { body } }
}
object ShowType { def apply[T: Manifest](t: T) = println(manifest[T])