diff options
author | whitequark <whitequark@whitequark.org> | 2020-06-07 03:45:53 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-06-07 03:48:00 +0000 |
commit | 31f6c96b1fb0a3a6311a5aba404e96bbbe342dd9 (patch) | |
tree | 628f0af1ea41e84345615f63337dcbf1d5de2c40 /backends/cxxrtl/cxxrtl.cc | |
parent | 68362a90530328f15cb93a04f1b1cc65858b93c0 (diff) | |
download | yosys-31f6c96b1fb0a3a6311a5aba404e96bbbe342dd9.tar.gz yosys-31f6c96b1fb0a3a6311a5aba404e96bbbe342dd9.tar.bz2 yosys-31f6c96b1fb0a3a6311a5aba404e96bbbe342dd9.zip |
cxxrtl: add a C API for writing VCD dumps.
This C API is fully featured.
Diffstat (limited to 'backends/cxxrtl/cxxrtl.cc')
-rw-r--r-- | backends/cxxrtl/cxxrtl.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backends/cxxrtl/cxxrtl.cc b/backends/cxxrtl/cxxrtl.cc index 4dc534513..64af5dab8 100644 --- a/backends/cxxrtl/cxxrtl.cc +++ b/backends/cxxrtl/cxxrtl.cc @@ -1851,10 +1851,15 @@ struct CxxrtlWorker { else f << "#include <backends/cxxrtl/cxxrtl.h>\n"; f << "\n"; - f << "#ifdef CXXRTL_INCLUDE_CAPI_IMPL\n"; + f << "#if defined(CXXRTL_INCLUDE_CAPI_IMPL) || \\\n"; + f << " defined(CXXRTL_INCLUDE_VCD_CAPI_IMPL)\n"; f << "#include <backends/cxxrtl/cxxrtl_capi.cc>\n"; f << "#endif\n"; f << "\n"; + f << "#if defined(CXXRTL_INCLUDE_VCD_CAPI_IMPL)\n"; + f << "#include <backends/cxxrtl/cxxrtl_vcd_capi.cc>\n"; + f << "#endif\n"; + f << "\n"; f << "using namespace cxxrtl_yosys;\n"; f << "\n"; f << "namespace " << design_ns << " {\n"; |