Fix the help message of synth_quicklogic.
authorXing GUO <higuoxing@gmail.com>
Sun, 30 Jan 2022 14:10:05 +0000 (22:10 +0800)
committerXing GUO <higuoxing@gmail.com>
Sun, 30 Jan 2022 18:23:59 +0000 (02:23 +0800)
techlibs/quicklogic/synth_quicklogic.cc

index a67b167b843c1e7913a64c3e80e55b660b0305d0..754de2de6cb97406e03563c44b391d7f96890133 100644 (file)
@@ -225,8 +225,8 @@ struct SynthQuickLogicPass : public ScriptPass {
                }
 
                if (check_label("verilog")) {
-                       if (!verilog_file.empty()) {
-                               run("write_verilog -noattr -nohex " + verilog_file);
+                       if (!verilog_file.empty() || help_mode) {
+                               run(stringf("write_verilog -noattr -nohex %s", help_mode ? "<file-name>" : verilog_file.c_str()));
                        }
                }
        }