intel_synth: Make family explicit and match
authorBen Widawsky <ben@bwidawsk.net>
Mon, 8 Jul 2019 19:24:24 +0000 (12:24 -0700)
committerDan Ravensloft <dan.ravensloft@gmail.com>
Thu, 18 Jul 2019 16:06:03 +0000 (17:06 +0100)
The help and code default to MAX10 for the family, however the couple of
if ladders defaulted to cycloneive. Fix this inconsistency and the next
patch will clean it up.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
techlibs/intel/synth_intel.cc

index 69f3b633489f0ff3e52cf7281f7dd4d32b829ac5..9d5d593a4da9fc750b6a44cb96885b032ff9badc 100644 (file)
@@ -176,8 +176,10 @@ struct SynthIntelPass : public ScriptPass {
                                run("read_verilog -sv -lib +/intel/cyclone10/cells_sim.v");
                        else if (check_label("family") && family_opt == "cycloneiv")
                                run("read_verilog -sv -lib +/intel/cycloneiv/cells_sim.v");
-                       else
+                       else if (check_label("family") && family_opt == "cycloneive")
                                run("read_verilog -sv -lib +/intel/cycloneive/cells_sim.v");
+                       else
+                               log_cmd_error("Invalid or not family specified: '%s'\n", family_opt.c_str());
                        // Misc and common cells
                        run("read_verilog -sv -lib +/intel/common/m9k_bb.v");
                        run("read_verilog -sv -lib +/intel/common/altpll_bb.v");
@@ -236,8 +238,10 @@ struct SynthIntelPass : public ScriptPass {
                                run("techmap -map +/intel/cyclone10/cells_map.v");
                        else if (family_opt == "cycloneiv")
                                run("techmap -map +/intel/cycloneiv/cells_map.v");
-                       else
+                       else if (family_opt == "cycloneive")
                                run("techmap -map +/intel/cycloneive/cells_map.v");
+                       else
+                               log_cmd_error("Invalid or not family specified: '%s'\n", family_opt.c_str());
                        run("dffinit -highlow -ff dffeas q power_up");
                        run("clean -purge");
                }