ucb-bar / berkeley-hardfloat

Other
287 stars 87 forks source link

Printing value #26

Open apaj opened 6 years ago

apaj commented 6 years ago

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