aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.h
diff options
context:
space:
mode:
authorClaire Xen <claire@clairexen.net>2022-02-11 17:30:32 +0100
committerGitHub <noreply@github.com>2022-02-11 17:30:32 +0100
commitca876e7c12856ed52e2a30e3ebbc7836ae18dfb9 (patch)
tree6243476d4a24e74779d726adb4b3a0dc8cfabc16 /kernel/yosys.h
parentfc7d78f0714f4314424e599e609a962b263e5b95 (diff)
parent49545c73f7f5a5cf73d287fd371f2ff39311f621 (diff)
downloadyosys-ca876e7c12856ed52e2a30e3ebbc7836ae18dfb9.tar.gz
yosys-ca876e7c12856ed52e2a30e3ebbc7836ae18dfb9.tar.bz2
yosys-ca876e7c12856ed52e2a30e3ebbc7836ae18dfb9.zip
Merge pull request #2376 from nmoroze/clk2ff-better-names
clk2fflogic: nice names for autogenerated signals
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r--kernel/yosys.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index 091e2282f..93e7ff23e 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -322,9 +322,12 @@ Tcl_Interp *yosys_get_tcl_interp();
extern RTLIL::Design *yosys_design;
RTLIL::IdString new_id(std::string file, int line, std::string func);
+RTLIL::IdString new_id_suffix(std::string file, int line, std::string func, std::string suffix);
#define NEW_ID \
YOSYS_NAMESPACE_PREFIX new_id(__FILE__, __LINE__, __FUNCTION__)
+#define NEW_ID_SUFFIX(suffix) \
+ YOSYS_NAMESPACE_PREFIX new_id_suffix(__FILE__, __LINE__, __FUNCTION__, suffix)
// Create a statically allocated IdString object, using for example ID::A or ID($add).
//