question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Allow printfs to go to different file descriptors

See original GitHub issue

Checklist

  • 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:open
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chickcommented, Jan 16, 2020

If this gets implemented it would be a good idea to update the following stackoverflow: Can chisel implement printf to a file?

0reactions
chickcommented, Jan 12, 2020

Noting related chisel issue: Can chisel implement printf to a file #1290

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found