From 266028e098b53b41e381fb982b6fef35c8aabe02 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 27 Mar 2021 08:44:24 +0100 Subject: ghdl.cc: remove unused/extra memory module. Fix #1699 --- src/ghdl.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ghdl.cc b/src/ghdl.cc index d013667..c107d78 100644 --- a/src/ghdl.cc +++ b/src/ghdl.cc @@ -420,13 +420,6 @@ static void import_memory(RTLIL::Module *module, std::vector &net // Memories appear only once. log_assert(!is_set(net_map, mem_o)); - // Create memory. - RTLIL::Memory *memory = new RTLIL::Memory; - memory->name = "$mem$" + mem_str; - - // Add it to module. - module->memories[memory->name] = memory; - // Count number of read and write ports. // Extract width, size, abits. unsigned nbr_rd = 0; @@ -479,9 +472,6 @@ static void import_memory(RTLIL::Module *module, std::vector &net log_warning("memory %s has read ports after and before write ports", mem_str.c_str()); unsigned size = get_width(mem_o) / width; - memory->width = width; - memory->size = size; - memory->start_offset = 0; // Create the memory. Cell *mem = module->addCell(mem_str, "$mem"); -- cgit v1.2.3