- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can anyone tell me how to print out colored characters in Modelsim using Systemverilog? :pLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
add wave -label "value" -radix unsigned -color orange /dut/value
add wave -label "valid" -color orange /dut/valid
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:
$display("\033\033[0m");
I run the simulation like this:
$ vsim -c -do ./mysim.do
... and see a green-colored "[OK]" in terminal (screenshot attached).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page