chipsalliance / chipsalliance/chisel

Printf to file

Open
#3,997 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
4.8k
Forks
658
Avg merge
18h 59m
Merged PRs (30d)
14

Description

**Type of issue**: Feature Request

**Is your feature request related to a problem? Please describe.**
`printf` only can print to `stdout`, when design is big, it will be unreasonable to use `printf` for debugging.

**Describe the solution you'd like**
Here are different solutions:
- provide an IR for `fd` as some how `Input`, `printf` by default print to `stdout` `fd`, but user can pass `fd` though the the design hierarchy.
- add an circt option or a special `PrintfToFile` layer to ask `printf` in `layer` goes to `fd` for corresponding layer.

**Describe alternatives you've considered**
There are some dirty hacks on this, e.g. prefix `printf` and deal with stdout with grep:(

**What is the use case for implementing this feature?**
simulation time logging.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.