Hi Geoffrey,
Thanks for your response. Unfortunately, when trying your suggestion, I got the compilation error:
Encountered unexpected in percentage format command, '*'. Use a valid percentage format command and try againBecause for practical resasons the number of different values for precision digits is small (say 1,2,..6), I simply used the "case" statement workaround, like:
Code:case(1)
(intPrecision == 1) : $strobe("Conversion value: %6.1f (LSB)",counter_value);
(intPrecision == 2) : $strobe("Conversion value: %6.2f (LSB)",counter_value);
(intPrecision == 3) : $strobe("Conversion value: %6.3f (LSB)",counter_value);
(intPrecision == 4) : $strobe("Conversion value: %6.4f (LSB)",counter_value);
default $strobe("Conversion value: %6.1f (LSB)",counter_value);
endcase
Of course it is so nasty (especially if you have a lot of $strobe or $fwrite statements!), but it works.
If anyone will share some magic trick to solve it in clean way, it will be good news. Meanwhile I continue with this workaround.
Thanks again for your response