You should be able to use fprintf just fine. Are you sure it's not erroring for some reason (like an invalid file pointer or something)?
For ptl_logfile, the easiest way to print in hex is to use the hexstring() command like this: ptl_logfile << hexstring(addr, 64); (where 64 is the number of bits in your addr) -Paul On Wed, Jun 22, 2011 at 4:29 PM, Chintan Panirwala <[email protected]>wrote: > Hi, > > I am trying to get information about hard to predict branches e.g. pc, > misprediction count etc. I am using fprintf to print this info to a text > file but after printing one instruction the simulation automatically exits. > What can be the problem? > > I also used ptl_logfile command to print this info to the logfile but i am > mot able print it in hexadecmal form. Is there any way? > > Thanks > > -- > Chintan Panirwala, > Graduate Student at Department of Electrical and Computer Engineering, > North Carolina State University. > > > _______________________________________________ > http://www.marss86.org > Marss86-Devel mailing list > [email protected] > https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel > >
_______________________________________________ http://www.marss86.org Marss86-Devel mailing list [email protected] https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
