From b2b7985e81d4b903c168ee99ce00968f165db8f1 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 13 Mar 2017 11:34:02 +0100 Subject: Add LP384 support to icetime --- icetime/icetime.cc | 9 ++++++++- icetime/timings.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'icetime') 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 \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 \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); -- cgit v1.2.3