From: Marcin Koƛcielnicki Date: Wed, 18 Mar 2020 19:58:36 +0000 (+0100) Subject: fsm_extract: Initialize celltypes with full design. X-Git-Tag: working-ls180~739 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e91368a5f423b0e4188c13512816e0ecaf09a0d9;p=yosys.git fsm_extract: Initialize celltypes with full design. Fixes #1781. --- diff --git a/passes/fsm/fsm_extract.cc b/passes/fsm/fsm_extract.cc index a85c3bec0..0f7b4d106 100644 --- a/passes/fsm/fsm_extract.cc +++ b/passes/fsm/fsm_extract.cc @@ -422,11 +422,7 @@ struct FsmExtractPass : public Pass { log_header(design, "Executing FSM_EXTRACT pass (extracting FSM from design).\n"); extra_args(args, 1, design); - CellTypes ct; - ct.setup_internals(); - ct.setup_internals_mem(); - ct.setup_stdcells(); - ct.setup_stdcells_mem(); + CellTypes ct(design); for (auto &mod_it : design->modules_) { diff --git a/tests/various/bug1781.ys b/tests/various/bug1781.ys new file mode 100644 index 000000000..60dcc0830 --- /dev/null +++ b/tests/various/bug1781.ys @@ -0,0 +1,33 @@ +read_verilog <