Forum Discussion
1 Reply
- Altera_Forum
Honored Contributor
Are you talking about showing colored signals on a waveform? Or use $display()-like function to print colored text to the console?
In case you are asking about signals, you can use `-color` parameter when adding a signal to the wave, for example:
If you are talking about $display, then I guess it depends on the OS you are using and how you run the ModelSim. For example, on Linux in console mode, you can do something like this:add wave -label "value" -radix unsigned -color orange /dut/value add wave -label "valid" -color orange /dut/valid
I run the simulation like this:$display("\033\033[0m");
... and see a green-colored "[OK]" in terminal (screenshot attached).$ vsim -c -do ./mysim.do