We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d473fdf commit e9a73ebCopy full SHA for e9a73eb
core/src/main/scala-3/chisel3/PrintfIntf.scala
@@ -2,8 +2,9 @@
2
3
package chisel3
4
5
-import scala.language.experimental.macros
+import chisel3.experimental.SourceInfo
6
7
private[chisel3] trait PrintfIntf { self: printf.type =>
8
- // TODO add printf with format String macro
+ def apply(fmt: String, data: Bits*)(implicit sourceInfo: SourceInfo): chisel3.printf.Printf =
9
+ Printf.apply(Printable.pack(fmt, data: _*))
10
}
0 commit comments