3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-22 20:32:07 +00:00

cxxrtl: add a C API for writing VCD dumps.

This C API is fully featured.
This commit is contained in:
whitequark 2020-06-07 03:45:53 +00:00
parent 68362a9053
commit 31f6c96b1f
5 changed files with 204 additions and 2 deletions

View file

@ -728,6 +728,8 @@ struct debug_item : ::cxxrtl_object {
MEMORY = CXXRTL_MEMORY,
};
debug_item(const ::cxxrtl_object &object) : cxxrtl_object(object) {}
template<size_t Bits>
debug_item(value<Bits> &item) {
static_assert(sizeof(item) == value<Bits>::chunks * sizeof(chunk_t),