diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-07-02 08:17:26 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-07-02 08:17:26 -0700 |
commit | 02ba85b13302f0d20f6b51cc7fdff2fb953421df (patch) | |
tree | 8bdee2414fdf800077d16f41243a6cdd9d792315 /kernel | |
parent | 6282a67332e9ca0ffe68b7ae57e93b6248946d4a (diff) | |
download | yosys-02ba85b13302f0d20f6b51cc7fdff2fb953421df.tar.gz yosys-02ba85b13302f0d20f6b51cc7fdff2fb953421df.tar.bz2 yosys-02ba85b13302f0d20f6b51cc7fdff2fb953421df.zip |
script -select -> script -scriptwire
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/yosys.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 7d4948881..456ad48a0 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -1259,7 +1259,7 @@ struct ScriptCmdPass : public Pass { // |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---| log("\n"); log(" script <filename> [<from_label>:<to_label>]\n"); - log(" script -select [selection]\n"); + log(" script -scriptwire [selection]\n"); log("\n"); log("This command executes the yosys commands in the specified file (default\n"); log("behaviour), or commands embedded in the constant text value connected to the\n"); @@ -1276,17 +1276,17 @@ struct ScriptCmdPass : public Pass { } void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE { - bool select_mode = false; + bool scriptwire = false; size_t argidx; for (argidx = 1; argidx < args.size(); argidx++) { - if (args[argidx] == "-select") { - select_mode = true; + if (args[argidx] == "-scriptwire") { + scriptwire = true; continue; } break; } - if (select_mode) { + if (scriptwire) { extra_args(args, argidx, design); for (auto mod : design->selected_modules()) |