diff --git a/docs/src/explanations/printing.md b/docs/src/explanations/printing.md index a199a514aa5..6cad26b3205 100644 --- a/docs/src/explanations/printing.md +++ b/docs/src/explanations/printing.md @@ -105,6 +105,13 @@ Notice the use of `+` between `cf` interpolated "strings". The results of `cf` i > :warning: The Scala s-interpolator is deprecated since 3.5 and will output the warning: "s-interpolators for Chisel assert, assume and printf statements are deprecated (since 3.5); use p or cf interpolators instead" +```scala mdoc:fail +class MyModule extends Module { + val in = IO(Input(UInt(8.W))) + printf(s"in = $in\n") +} +``` + ### C-Style Chisel provides `printf` in a similar style to its C namesake. It accepts a double-quoted format string and a variable number of arguments which will then be printed on rising clock edges. Chisel supports the following format specifiers: