mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-10 13:10:51 +00:00
cxxrtl: always lazily format print messages.
This is mostly useful for collecting coverage for the future `$check` cell, where, depending on the flavor, formatting a message may not be wanted even for a failed assertion.
This commit is contained in:
parent
b74d33d1b8
commit
fc5ff7a265
3 changed files with 40 additions and 9 deletions
|
@ -4,7 +4,7 @@ int main()
|
|||
{
|
||||
struct : public performer {
|
||||
int64_t vlog_time() const override { return 1; }
|
||||
void on_print(const std::string &output, const cxxrtl::metadata_map &) override { std::cerr << output; }
|
||||
void on_print(const lazy_fmt &output, const cxxrtl::metadata_map &) override { std::cerr << output(); }
|
||||
} performer;
|
||||
|
||||
cxxrtl_design::p_always__full uut;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue