dll_fpga
Full Member level 3
- Joined
- Mar 9, 2011
- Messages
- 185
- Helped
- 19
- Reputation
- 38
- Reaction score
- 21
- Trophy points
- 1,298
- Location
- kerala,India
- Activity points
- 2,416
how to write the values of a variable z to a text file in decimal format?
i'm using the following verilog code
integer fp1;
fp1=$fopen("ctq.txt");
$fwrite(fp1,"%d\n",z);
but the values of the variable z are still written to the file "ctq" in hexadecimal format
......but i need the values to be written to the file "ctq" in decimal format
how can this be done?
i'm using the following verilog code
integer fp1;
fp1=$fopen("ctq.txt");
$fwrite(fp1,"%d\n",z);
but the values of the variable z are still written to the file "ctq" in hexadecimal format
......but i need the values to be written to the file "ctq" in decimal format
how can this be done?