#include "kernel/yosys.h"
#include "libs/sha1/sha1.h"
#include "backends/ilang/ilang_backend.h"
#include <sys/time.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <vector>
#include <list>
Go to the source code of this file.
|
void | logv (const char *format, va_list ap) |
|
void | logv_header (const char *format, va_list ap) |
|
void | logv_warning (const char *format, va_list ap) |
|
void | logv_error (const char *format, va_list ap) |
|
void | log (const char *format,...) |
|
void | log_header (const char *format,...) |
|
void | log_warning (const char *format,...) |
|
void | log_error (const char *format,...) |
|
void | log_cmd_error (const char *format,...) |
|
void | log_spacer () |
|
void | log_push () |
|
void | log_pop () |
|
void | log_reset_stack () |
|
void | log_flush () |
|
void | log_dump_val_worker (RTLIL::SigSpec v) |
|
const char * | log_signal (const RTLIL::SigSpec &sig, bool autoint) |
|
const char * | log_id (RTLIL::IdString str) |
|
void | log_cell (RTLIL::Cell *cell, std::string indent) |
|
void log |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Definition at line 180 of file log.cc.
183 va_start(ap, format);
void logv(const char *format, va_list ap)
void log_cell |
( |
RTLIL::Cell * |
cell, |
|
|
std::string |
indent |
|
) |
| |
Definition at line 292 of file log.cc.
294 std::stringstream buf;
296 log(
"%s", buf.str().c_str());
void dump_cell(std::ostream &f, std::string indent, const RTLIL::Cell *cell)
void log(const char *format,...)
void log_cmd_error |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Definition at line 211 of file log.cc.
214 va_start(ap, format);
void log(const char *format,...)
void logv_error(const char *format, va_list ap)
void logv(const char *format, va_list ap)
Definition at line 265 of file log.cc.
const char * log_signal(const RTLIL::SigSpec &sig, bool autoint)
void log(const char *format,...)
void log_error |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Definition at line 204 of file log.cc.
207 va_start(ap, format);
void logv_error(const char *format, va_list ap)
Definition at line 256 of file log.cc.
std::vector< std::ostream * > log_streams
YOSYS_NAMESPACE_BEGIN std::vector< FILE * > log_files
void log_header |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Definition at line 188 of file log.cc.
191 va_start(ap, format);
void logv_header(const char *format, va_list ap)
Definition at line 283 of file log.cc.
286 const char *p = str.
c_str();
287 if (p[0] ==
'\\' && p[1] !=
'$' && p[1] != 0)
const char * c_str() const
std::set< RTLIL::IdString > log_id_cache
Definition at line 237 of file log.cc.
std::set< RTLIL::IdString > log_id_cache
std::list< std::string > string_buf
std::vector< int > header_count
Definition at line 232 of file log.cc.
std::vector< int > header_count
Definition at line 246 of file log.cc.
std::set< RTLIL::IdString > log_id_cache
std::list< std::string > string_buf
std::vector< int > header_count
Definition at line 269 of file log.cc.
271 std::stringstream buf;
std::list< std::string > string_buf
void dump_sigspec(std::ostream &f, const RTLIL::SigSpec &sig, bool autoint=true)
Definition at line 226 of file log.cc.
static int log_newline_count
void log(const char *format,...)
void log_warning |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
Definition at line 196 of file log.cc.
199 va_start(ap, format);
void logv_warning(const char *format, va_list ap)
void logv |
( |
const char * |
format, |
|
|
va_list |
ap |
|
) |
| |
Definition at line 76 of file log.cc.
78 while (format[0] ==
'\n' && format[1] != 0) {
83 std::string str =
vstringf(format, ap);
88 size_t nnl_pos = str.find_last_not_of(
'\n');
89 if (nnl_pos == std::string::npos)
104 gettimeofday(&tv,
NULL);
109 tv.tv_usec += 1000000;
113 time_str +=
stringf(
"[%05d.%06d] ",
int(tv.tv_sec),
int(tv.tv_usec));
116 if (format[0] && format[strlen(format)-1] ==
'\n')
120 fputs(time_str.c_str(), f);
126 for (
auto f : log_files)
127 fputs(str.c_str(), f);
std::string stringf(const char *fmt,...)
static struct timeval initial_tv
std::vector< std::ostream * > log_streams
static int log_newline_count
YOSYS_NAMESPACE_BEGIN std::vector< FILE * > log_files
std::string vstringf(const char *fmt, va_list ap)
int GetSize(RTLIL::Wire *wire)
void log(const char *format,...)
void update(const std::string &s)
static bool next_print_log
void logv_error |
( |
const char * |
format, |
|
|
va_list |
ap |
|
) |
| |
Definition at line 169 of file log.cc.
YOSYS_NAMESPACE_BEGIN std::vector< FILE * > log_files
void log(const char *format,...)
void logv(const char *format, va_list ap)
void logv_header |
( |
const char * |
format, |
|
|
va_list |
ap |
|
) |
| |
Definition at line 133 of file log.cc.
135 bool pop_errfile =
false;
YOSYS_NAMESPACE_BEGIN std::vector< FILE * > log_files
std::vector< int > header_count
void log(const char *format,...)
void logv(const char *format, va_list ap)
void logv_warning |
( |
const char * |
format, |
|
|
va_list |
ap |
|
) |
| |
Definition at line 156 of file log.cc.
YOSYS_NAMESPACE_BEGIN std::vector< FILE * > log_files
void log(const char *format,...)
void logv(const char *format, va_list ap)
std::vector<int> header_count |
struct timeval initial_tv = { 0, 0 } |
|
static |
bool log_cmd_error_throw = false |
int log_newline_count = 0 |
|
static |
bool log_quiet_warnings = false |
std::vector<std::ostream*> log_streams |
bool next_print_log = false |
|
static |
std::list<std::string> string_buf |