ucb-bar / ucb-bar/berkeley-hardfloat
Printing value
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 393
- Forks
- 111
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the DivSqrtRecFN_small module and the uses of cycleNum, comparing the Scala-style and C-style printf examples in the issue. Determine where the message is expected to appear during execution and document the correct way to observe it, including what counts as a successful result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- tooling
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100