chisel3.SimLog
See theSimLog companion object
A file or I/O device to print to in simulation
val log = SimLog.file("logfile.log")
log.printf(cf"in = $in%0d\n")
val stderr = SimLog.StdErr
stderr.printf(cf"in = $in%0d\n")
// SimLog filenames themselves can be Printable.
// Be careful to avoid uninitialized registers.
val idx = Wire(UInt(8.W))
val log2 = SimLog.file(cf"logfile_$idx%0d.log")
log2.printf(cf"in = $in%0d\n")
Attributes
- Companion
- object
- Source
- SimLog.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article