From: Clifford Wolf Date: Wed, 2 Nov 2016 12:15:49 +0000 (+0100) Subject: Added support for fsm_encoding="user" X-Git-Tag: yosys-0.7~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b63cace90fc171270f45a4f94cbdd98043610029;p=yosys.git Added support for fsm_encoding="user" --- diff --git a/passes/fsm/fsm_recode.cc b/passes/fsm/fsm_recode.cc index 5102d8334..e1bde728f 100644 --- a/passes/fsm/fsm_recode.cc +++ b/passes/fsm/fsm_recode.cc @@ -57,13 +57,13 @@ static void fsm_recode(RTLIL::Cell *cell, RTLIL::Module *module, FILE *fm_set_fs log("Recoding FSM `%s' from module `%s' using `%s' encoding:\n", cell->name.c_str(), module->name.c_str(), encoding.c_str()); - if (encoding != "none" && encoding != "one-hot" && encoding != "binary" && encoding != "auto") { + if (encoding != "none" && encoding != "user" && encoding != "one-hot" && encoding != "binary" && encoding != "auto") { log(" unknown encoding `%s': using auto instead.\n", encoding.c_str()); encoding = "auto"; } - if (encoding == "none") { - log(" nothing to do for encoding `none'.\n"); + if (encoding == "none" || encoding == "user") { + log(" nothing to do for encoding `%s'.\n", encoding.c_str()); return; }