From 15a35f5584977605e685d2a92126a337a474ae89 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 10 Nov 2021 10:50:44 +0100 Subject: [PATCH] No need to alocate more memory than used --- frontends/verific/verific.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc index 5a75b52af..47020f105 100644 --- a/frontends/verific/verific.cc +++ b/frontends/verific/verific.cc @@ -1143,7 +1143,6 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se module->memories[memory->name] = memory; int number_of_bits = net->Size(); - number_of_bits = 1 << ceil_log2(number_of_bits); int bits_in_word = number_of_bits; FOREACH_PORTREF_OF_NET(net, si, pr) { if (pr->GetInst()->Type() == OPER_READ_PORT) { -- 2.30.2