Source for: https://cirosantilli.com and https://ourbigbook.com/cirosantilli Build HTML with https://github.com/ourbigbook/ourbigbook with "npm install && npx ourbigbook ." You can use this issue tracker for anything you want to tell me, even if it is not related to the repo. I also use this repo as generic issue tracker for myself.
https://stackoverflow.com/questions/38420389/how-to-print-an-integer-to-stdout-from-c-in-printable-base-10-ascii-characters
*Note** Verilator transpiles Verilog to C++, so it is not a simple matter of "find the type on the API".
If I have on my Verilog:
and from the C++ wrapper I do:
it prints literal bytes to stdout, so unreadable for numbers like
0
and1
, as can be seen withhd
.How do I get base 10 ASCII human readable output instead?
Tested on Verilator 3.884, Ubuntu 16.04.