aboutsummaryrefslogtreecommitdiffstats
path: root/backends/cxxrtl/cxxrtl_capi.h
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-06-08 18:24:32 +0000
committerGitHub <noreply@github.com>2020-06-08 18:24:32 +0000
commit4ef9ee3c4210a9d0c3b6491a0c89ee3365c77779 (patch)
tree30718823222080e46abc4bd9f33606127b7b060d /backends/cxxrtl/cxxrtl_capi.h
parent369dcb4e824ea18957b4ad989f50f757674799c3 (diff)
parent467152d79fd4c8e25b48481f742fe318b1395728 (diff)
downloadyosys-4ef9ee3c4210a9d0c3b6491a0c89ee3365c77779.tar.gz
yosys-4ef9ee3c4210a9d0c3b6491a0c89ee3365c77779.tar.bz2
yosys-4ef9ee3c4210a9d0c3b6491a0c89ee3365c77779.zip
Merge pull request #2121 from whitequark/cxxrtl-debug-aliases
cxxrtl: improve design visibility
Diffstat (limited to 'backends/cxxrtl/cxxrtl_capi.h')
-rw-r--r--backends/cxxrtl/cxxrtl_capi.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/backends/cxxrtl/cxxrtl_capi.h b/backends/cxxrtl/cxxrtl_capi.h
index bee5a94c7..46aa662b2 100644
--- a/backends/cxxrtl/cxxrtl_capi.h
+++ b/backends/cxxrtl/cxxrtl_capi.h
@@ -64,9 +64,10 @@ enum cxxrtl_type {
// Values correspond to singly buffered netlist nodes, i.e. nodes driven exclusively by
// combinatorial cells, or toplevel input nodes.
//
- // Values can be inspected via the `curr` pointer and modified via the `next` pointer (which are
- // equal for values); however, note that changes to the bits driven by combinatorial cells will
- // be ignored.
+ // Values can be inspected via the `curr` pointer. If the `next` pointer is NULL, the value is
+ // driven by a constant and can never be modified. Otherwise, the value can be modified through
+ // the `next` pointer (which is equal to `curr` if not NULL). Note that changes to the bits
+ // driven by combinatorial cells will be ignored.
//
// Values always have depth 1.
CXXRTL_VALUE = 0,
@@ -75,8 +76,8 @@ enum cxxrtl_type {
// storage cells, or by combinatorial cells that are a part of a feedback path.
//
// Wires can be inspected via the `curr` pointer and modified via the `next` pointer (which are
- // distinct for wires); however, note that changes to the bits driven by combinatorial cells will
- // be ignored.
+ // distinct for wires). Note that changes to the bits driven by combinatorial cells will be
+ // ignored.
//
// Wires always have depth 1.
CXXRTL_WIRE = 1,