Prints a message in simulation
Prints a message in simulation
Prints a message every cycle. If defined within the scope of a when block, the message will only be printed on cycles that the when condition is true.
Does not fire when in reset (defined as the encapsulating Module's reset). If your definition of reset is not the encapsulating Module's reset, you will need to gate this externally.
May be called outside of a Module (like defined in a function), uses the current default clock and reset. These can be overriden with withClockAndReset.
Printable to print
Printable documentation
Prints a message in simulation
Prints a message in simulation
Prints a message every cycle. If defined within the scope of a when block, the message will only be printed on cycles that the when condition is true.
Does not fire when in reset (defined as the encapsulating Module's reset). If your definition of reset is not the encapsulating Module's reset, you will need to gate this externally.
May be called outside of a Module (like defined in a function), uses the current default clock and reset. These can be overriden with withClockAndReset.
This method expects a format string and an argument list in a similar style to printf in C. The format string expects a String that may contain format specifiers For example:
printf("myWire has the value %d\n", myWire)
This prints the string "myWire has the value " followed by the current value of myWire
(in
decimal, followed by a newline.
There must be exactly as many arguments as there are format specifiers
Format specifiers are prefixed by %
. If you wish to print a literal %
, use %%
.
%d
- Decimal%x
- Hexadecimal%b
- Binary%c
- 8-bit Character%n
- Name of a signal%N
- Full name of a leaf signal (in an aggregate)
printf format string
format string varargs containing data to print
Prints a message in simulation
See apply methods for use