For example, following code create “ffffffff”, instead of “ff”
int a = -1;
printf(“02x”, a);
To solve this, use “hh”, which uses char format
printf(“02hhx”, a);
ASIC IP FPGA RTL CHIP DIGITAL HARDWARE
For example, following code create “ffffffff”, instead of “ff”
int a = -1;
printf(“02x”, a);
To solve this, use “hh”, which uses char format
printf(“02hhx”, a);