diff options
author | whitequark <whitequark@whitequark.org> | 2020-06-11 12:42:37 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-06-11 12:43:17 +0000 |
commit | fa04b1967076d8a97bdd8802664fd2d1a2424be2 (patch) | |
tree | 2b62e95fbd193ffff5d0ccaafd237f22947e3d12 /backends/cxxrtl/cxxrtl_capi.h | |
parent | 8a4841d78690313a91af97e8c6d9aa3e65a3e491 (diff) | |
download | yosys-fa04b1967076d8a97bdd8802664fd2d1a2424be2.tar.gz yosys-fa04b1967076d8a97bdd8802664fd2d1a2424be2.tar.bz2 yosys-fa04b1967076d8a97bdd8802664fd2d1a2424be2.zip |
cxxrtl: expose RTLIL::{Wire,Memory}->start_offset in debug info.
Diffstat (limited to 'backends/cxxrtl/cxxrtl_capi.h')
-rw-r--r-- | backends/cxxrtl/cxxrtl_capi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/cxxrtl/cxxrtl_capi.h b/backends/cxxrtl/cxxrtl_capi.h index 8bd906ea4..cdddf63f3 100644 --- a/backends/cxxrtl/cxxrtl_capi.h +++ b/backends/cxxrtl/cxxrtl_capi.h @@ -113,9 +113,15 @@ struct cxxrtl_object { // Width of the object in bits. size_t width; + // Index of the least significant bit. + size_t lsb_at; + // Depth of the object. Only meaningful for memories; for other objects, always 1. size_t depth; + // Index of the first word. Only meaningful for memories; for other objects, always 0; + size_t zero_at; + // Bits stored in the object, as 32-bit chunks, least significant bits first. // // The width is rounded up to a multiple of 32; the padding bits are always set to 0 by |