mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 21:27:00 +00:00
Added "yosys -D" feature
This commit is contained in:
parent
1565d1af69
commit
0bc95f1e04
113 changed files with 172 additions and 145 deletions
|
@ -103,7 +103,7 @@ struct StubnetsPass : public Pass {
|
|||
// variables to mirror information from passed options
|
||||
bool report_bits = 0;
|
||||
|
||||
log_header("Executing STUBNETS pass (find stub nets).\n");
|
||||
log_header(design, "Executing STUBNETS pass (find stub nets).\n");
|
||||
|
||||
// parse options
|
||||
size_t argidx;
|
||||
|
|
|
@ -477,7 +477,7 @@ log("Name of this module: %s\n", log_id(module->name));
|
|||
\medskip
|
||||
Use {\tt log\_header()} and {\tt log\_push()}/{\tt log\_pop()} to structure log messages:
|
||||
\begin{lstlisting}[xleftmargin=1cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=C++]
|
||||
log_header("Doing important stuff!\n");
|
||||
log_header(design, "Doing important stuff!\n");
|
||||
log_push();
|
||||
for (int i = 0; i < 10; i++)
|
||||
log("Log message #%d.\n", i);
|
||||
|
|
|
@ -65,7 +65,7 @@ struct Test2Pass : public Pass {
|
|||
|
||||
log("Mapped signal x: %s\n", log_signal(sigmap(x)));
|
||||
|
||||
log_header("Doing important stuff!\n");
|
||||
log_header(design, "Doing important stuff!\n");
|
||||
log_push();
|
||||
for (int i = 0; i < 10; i++)
|
||||
log("Log message #%d.\n", i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue