mirror of https://github.com/YosysHQ/yosys.git
intel_synth: Make family explicit and match
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>
This commit is contained in:
parent
060e77c09b
commit
809b94a67b
|
@ -176,8 +176,10 @@ struct SynthIntelPass : public ScriptPass {
|
||||||
run("read_verilog -sv -lib +/intel/cyclone10/cells_sim.v");
|
run("read_verilog -sv -lib +/intel/cyclone10/cells_sim.v");
|
||||||
else if (check_label("family") && family_opt == "cycloneiv")
|
else if (check_label("family") && family_opt == "cycloneiv")
|
||||||
run("read_verilog -sv -lib +/intel/cycloneiv/cells_sim.v");
|
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");
|
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
|
// Misc and common cells
|
||||||
run("read_verilog -sv -lib +/intel/common/m9k_bb.v");
|
run("read_verilog -sv -lib +/intel/common/m9k_bb.v");
|
||||||
run("read_verilog -sv -lib +/intel/common/altpll_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");
|
run("techmap -map +/intel/cyclone10/cells_map.v");
|
||||||
else if (family_opt == "cycloneiv")
|
else if (family_opt == "cycloneiv")
|
||||||
run("techmap -map +/intel/cycloneiv/cells_map.v");
|
run("techmap -map +/intel/cycloneiv/cells_map.v");
|
||||||
else
|
else if (family_opt == "cycloneive")
|
||||||
run("techmap -map +/intel/cycloneive/cells_map.v");
|
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("dffinit -highlow -ff dffeas q power_up");
|
||||||
run("clean -purge");
|
run("clean -purge");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue