diff options
Diffstat (limited to 'kernel/sigtools.h')
-rw-r--r-- | kernel/sigtools.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sigtools.h b/kernel/sigtools.h index d73c5623d..83ff470d2 100644 --- a/kernel/sigtools.h +++ b/kernel/sigtools.h @@ -310,6 +310,15 @@ struct SigMap apply(sig); return sig; } + + RTLIL::SigSpec allbits() const + { + RTLIL::SigSpec sig; + for (auto &bit : database) + if (bit.wire != nullptr) + sig.append(bit); + return sig; + } }; YOSYS_NAMESPACE_END |