lakshminarayanan
Newbie level 5
verilog fwrite
while using the fwrite in verilog....... as mentioned below....
$fwrite(file,"a=%d @=%d",a,addr);
if the value of a is negative i am getting the data in the file as.........for eg....-1 as 65535 but i need to print it as -1 in the file do any one know other format of writting the data so i colud write negative values as -1 in my file.....
while using the fwrite in verilog....... as mentioned below....
$fwrite(file,"a=%d @=%d",a,addr);
if the value of a is negative i am getting the data in the file as.........for eg....-1 as 65535 but i need to print it as -1 in the file do any one know other format of writting the data so i colud write negative values as -1 in my file.....