From: Marcelina Koƛcielnicka Date: Thu, 16 Jun 2022 23:20:33 +0000 (+0200) Subject: memory_libmap: Fix wrprio handling. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d69091806ad29c3720e478d965354f44bd266d7f;p=yosys.git memory_libmap: Fix wrprio handling. --- diff --git a/passes/memory/memory_libmap.cc b/passes/memory/memory_libmap.cc index d77e4be30..9e147b0bf 100644 --- a/passes/memory/memory_libmap.cc +++ b/passes/memory/memory_libmap.cc @@ -837,7 +837,7 @@ void MemMapping::handle_priority() { if (!port2.priority_mask[p1idx]) continue; for (auto &cfg: cfgs) { - auto &p1cfg = cfg.rd_ports[p1idx]; + auto &p1cfg = cfg.wr_ports[p1idx]; auto &p2cfg = cfg.wr_ports[p2idx]; bool found = false; for (auto &pgi: p2cfg.def->wrprio) {