aboutsummaryrefslogtreecommitdiffstats
path: root/backends/cxxrtl/cxxrtl.cc
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-07 03:45:53 +0000
committerwhitequark <whitequark@whitequark.org>2020-06-07 03:48:00 +0000
commit31f6c96b1fb0a3a6311a5aba404e96bbbe342dd9 (patch)
tree628f0af1ea41e84345615f63337dcbf1d5de2c40 /backends/cxxrtl/cxxrtl.cc
parent68362a90530328f15cb93a04f1b1cc65858b93c0 (diff)
downloadyosys-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.cc7
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";