Added support for fsm_encoding="user"
authorClifford Wolf <clifford@clifford.at>
Wed, 2 Nov 2016 12:15:49 +0000 (13:15 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 2 Nov 2016 12:15:49 +0000 (13:15 +0100)
passes/fsm/fsm_recode.cc

index 5102d8334ee1b2372af695527af87f2fad6d7968..e1bde728fab8c9da1af76d6c8bc3fb59ab8e5550 100644 (file)
@@ -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;
        }