From 31f6c96b1fb0a3a6311a5aba404e96bbbe342dd9 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 7 Jun 2020 03:45:53 +0000 Subject: cxxrtl: add a C API for writing VCD dumps. This C API is fully featured. --- backends/cxxrtl/cxxrtl.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'backends/cxxrtl/cxxrtl.cc') 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 \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 \n"; f << "#endif\n"; f << "\n"; + f << "#if defined(CXXRTL_INCLUDE_VCD_CAPI_IMPL)\n"; + f << "#include \n"; + f << "#endif\n"; + f << "\n"; f << "using namespace cxxrtl_yosys;\n"; f << "\n"; f << "namespace " << design_ns << " {\n"; -- cgit v1.2.3