diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-03-13 11:34:02 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-03-13 11:34:02 +0100 |
commit | b2b7985e81d4b903c168ee99ce00968f165db8f1 (patch) | |
tree | d6ee80c8ad9d0f5626dcac59b14afc85b625698a /icetime | |
parent | 314628ffd32855a6a6e6cd71e02173db7180448c (diff) | |
download | icestorm-b2b7985e81d4b903c168ee99ce00968f165db8f1.tar.gz icestorm-b2b7985e81d4b903c168ee99ce00968f165db8f1.tar.bz2 icestorm-b2b7985e81d4b903c168ee99ce00968f165db8f1.zip |
Add LP384 support to icetime
Diffstat (limited to 'icetime')
-rw-r--r-- | icetime/icetime.cc | 9 | ||||
-rw-r--r-- | icetime/timings.py | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/icetime/icetime.cc b/icetime/icetime.cc index 5f0face..cf6aa5b 100644 --- a/icetime/icetime.cc +++ b/icetime/icetime.cc @@ -644,6 +644,9 @@ double get_delay(std::string cell_type, std::string in_port, std::string out_por if (cell_type == "INTERCONN") return 0; + if (device_type == "lp384") + return get_delay_lp384(cell_type, in_port, out_port); + if (device_type == "lp1k") return get_delay_lp1k(cell_type, in_port, out_port); @@ -1873,7 +1876,7 @@ void help(const char *cmd) printf(" -j <output_file>\n"); printf(" write timing report in json format to the file\n"); printf("\n"); - printf(" -d lp1k|hx1k|lp8k|hx8k\n"); + printf(" -d lp384|lp1k|hx1k|lp8k|hx8k\n"); printf(" select the device type (default = lp variant)\n"); printf("\n"); printf(" -C <chipdb-file>\n"); @@ -2003,6 +2006,10 @@ int main(int argc, char **argv) printf("// Warning: Missing -d parameter. Assuming '%s' device.\n", device_type.c_str()); } + if (device_type == "lp384") { + if (config_device != "384") + goto device_chip_mismatch; + } else if (device_type == "lp1k" || device_type == "hx1k") { if (config_device != "1k") goto device_chip_mismatch; diff --git a/icetime/timings.py b/icetime/timings.py index 5da87d3..ae1e538 100644 --- a/icetime/timings.py +++ b/icetime/timings.py @@ -41,7 +41,7 @@ def timings_to_c(chip, f): print(" exit(1);") print("}") -for db in "lp1k lp8k hx1k hx8k".split(): +for db in "lp384 lp1k lp8k hx1k hx8k".split(): with open("../icefuzz/timings_%s.txt" % db, "r") as f: timings_to_c(db, f); |