No need to alocate more memory than used
authorMiodrag Milanovic <mmicko@gmail.com>
Wed, 10 Nov 2021 09:50:44 +0000 (10:50 +0100)
committerMiodrag Milanovic <mmicko@gmail.com>
Wed, 10 Nov 2021 09:50:44 +0000 (10:50 +0100)
frontends/verific/verific.cc

index 5a75b52af837c5f879827073a189bd00068d213f..47020f1050e2209b11e1c046c5d7d081bdafd4a4 100644 (file)
@@ -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) {