From 771e5c999643a147bab885eca5f368fc327bc061 Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Tue, 12 Nov 2024 00:59:05 -0800 Subject: [PATCH] Fix mem --- kernel/yosys_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/yosys_common.h b/kernel/yosys_common.h index 2a83b0e0d..d38a4f74b 100644 --- a/kernel/yosys_common.h +++ b/kernel/yosys_common.h @@ -367,7 +367,7 @@ RTLIL::IdString new_id_suffix(std::string file, int line, std::string func, std: #define NEW_ABC_ID \ module->uniquify(IdString("\\boolopt")) #define NEW_MEM_ID_SUFFIX(suffix) \ - module->uniquify(mem.mem->name.str() + "_" + suffix) + mem.mem ? module->uniquify(mem.mem->name.str() + "_" + suffix) : module->uniquify(string("\\mem_") + suffix) // Create a statically allocated IdString object, using for example ID::A or ID($add). //