Feature Request: Allow printfs to go to different file descriptors
See original GitHub issueChecklist
- Did you write out a description of the feature you want to see?
- Did you look around for any related features?
- Did you specify relevant external information?
Feature Description
When emitting printf, don’t hard-code the destination file descriptor to 80000002.
Instead use something like:
`ifndef PRINTF_FD
`define PRINTF_FD 'h80000002.
`endif
Type of Feature
- backend code generation
Related Features
Yes this bit of code:
def printf(str: StringLit, args: Seq[Expression]): Seq[Any] = {
val strx = str.verilogEscape +: args.flatMap(Seq(",", _))
Seq("$fwrite(32'h80000002,", strx, ");")
}
External Information
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Best practices for configuring Windows Print Servers - PaperCut
Keep your Print Server name short and sweet! · Re-locate the Spool directory: · Are you trying to 'hide' document names in the...
Read more >Prepare for LPIC-1 exam 2 - topic 108.4: Manage printers and ...
The first thing you might want to do is find out whether any jobs are queued for a particular printer or for all...
Read more >Troubleshooting scenarios for printing - Windows Server
In this article. Failed print job; No print output; Slow printing or unexpected output; Print Spooler crash; Enable auditing of failures on ...
Read more >What are file descriptors, explained in simple terms?
In simple words, when you open a file, the operating system creates an entry to represent that file and store the information about...
Read more >Improve error message when hard rlimit for file descriptors is ...
When I run cloud_sql_proxy from my Ubuntu 18.04 VM, it works, but I get this confusing error message every time: failed to setup...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If this gets implemented it would be a good idea to update the following stackoverflow: Can chisel implement printf to a file?
Noting related chisel issue: Can chisel implement printf to a file #1290