mirror of https://github.com/YosysHQ/yosys.git
Reduce to three devices: hx, lp, u
This commit is contained in:
parent
abcd3103ff
commit
c795e14d25
|
@ -0,0 +1,13 @@
|
|||
# From https://github.com/cliffordwolf/icestorm/blob/be0bca0/icefuzz/timings_lp8k.txt
|
||||
|
||||
# NB: Inputs/Outputs must be ordered alphabetically
|
||||
|
||||
# Inputs: CI I0 I1
|
||||
# Outputs: CO
|
||||
SB_CARRY 1 1 3 1
|
||||
186 675 609
|
||||
|
||||
# Inputs: I0 I1 I2 I3
|
||||
# Outputs: O
|
||||
SB_LUT4 2 1 4 1
|
||||
465 558 589 661
|
|
@ -0,0 +1,6 @@
|
|||
# From https://github.com/cliffordwolf/icestorm/blob/be0bca0/icefuzz/timings_lp8k.txt
|
||||
# I3 I2 I1 I0
|
||||
1 1 465
|
||||
2 1 465 558
|
||||
3 1 465 558 589
|
||||
4 1 465 558 589 661
|
|
@ -37,9 +37,9 @@ struct SynthIce40Pass : public ScriptPass
|
|||
log("\n");
|
||||
log("This command runs synthesis for iCE40 FPGAs.\n");
|
||||
log("\n");
|
||||
log(" -device < hx1k | lp384 | lp1k | lp8k | hx8k | u4k | up5k >\n");
|
||||
log(" -device < hx | lp | u >\n");
|
||||
log(" optimise the synthesis netlist for the specified device.\n");
|
||||
log(" HX1K is the default target if no device argument specified.\n");
|
||||
log(" HX is the default target if no device argument specified.\n");
|
||||
log("\n");
|
||||
log(" -top <module>\n");
|
||||
log(" use the specified module as top module\n");
|
||||
|
@ -128,7 +128,7 @@ struct SynthIce40Pass : public ScriptPass
|
|||
abc2 = false;
|
||||
vpr = false;
|
||||
abc = "abc";
|
||||
device_opt = "hx1k";
|
||||
device_opt = "hx";
|
||||
}
|
||||
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE
|
||||
|
@ -225,7 +225,7 @@ struct SynthIce40Pass : public ScriptPass
|
|||
|
||||
if (!design->full_selection())
|
||||
log_cmd_error("This command only operates on fully selected designs!\n");
|
||||
if (device_opt != "hx1k" && device_opt !="lp384" && device_opt != "lp1k" && device_opt !="lp8k" && device_opt !="hx8k" && device_opt != "u4k" && device_opt != "up5k")
|
||||
if (device_opt != "hx" && device_opt != "lp" && device_opt !="u")
|
||||
log_cmd_error("Invalid or no device specified: '%s'\n", device_opt.c_str());
|
||||
|
||||
log_header(design, "Executing SYNTH_ICE40 pass.\n");
|
||||
|
|
Loading…
Reference in New Issue