From 90b40aa51f7d666792d4f0b1830ee75b81678a1f Mon Sep 17 00:00:00 2001 From: Noah Moroze Date: Tue, 2 Mar 2021 18:28:56 -0500 Subject: clk2fflogic: nice names for autogenerated signals --- kernel/yosys.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kernel/yosys.h') diff --git a/kernel/yosys.h b/kernel/yosys.h index 43aecdbc8..5df7e2df0 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -321,9 +321,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). // -- cgit v1.2.3