berkeley-hardfloat icon indicating copy to clipboard operation
berkeley-hardfloat copied to clipboard

Printing value

Open apaj opened this issue 7 years ago • 0 comments

Hello, I'd first like to use the opportunity to express gratitude and respect to the author and everyone else working on RISCV ecosystem. Now, I was investigating the DivSqrtRecFN_small module and was interested in the number of cycles used up - specifically the variable cycleNum. So I wanted to take a closer look so I included a printf line there. It wouldn't compile when I wrote it Scala-style:

printf(p"cycleNum= $cycleNum")

but that part went fine when written in C-style:

printf("cycleNum = %d", cycleNum) 

However, the output is nowhere to be seen, even though this method was tried multiple times in other Chisel projects... Can you please help me? Where did it go? Or how to print to standard output? Thanks, Aleksandar

apaj avatar Aug 29 '18 12:08 apaj