diff options
author | David Shah <davey1576@gmail.com> | 2018-01-22 16:34:51 +0000 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-01-22 16:34:51 +0000 |
commit | 8a30b4bbd4d9b8b5d43566b7320554e6f4601b87 (patch) | |
tree | cc22c17141eb1126e66ff0cb63e677d1ffd4d8d5 /icefuzz/timings.py | |
parent | 78e5b89e7c95ac2a825d557c11114b198a2d8f28 (diff) | |
download | icestorm-8a30b4bbd4d9b8b5d43566b7320554e6f4601b87.tar.gz icestorm-8a30b4bbd4d9b8b5d43566b7320554e6f4601b87.tar.bz2 icestorm-8a30b4bbd4d9b8b5d43566b7320554e6f4601b87.zip |
Seperate different DSP configs in timing data
Diffstat (limited to 'icefuzz/timings.py')
-rw-r--r-- | icefuzz/timings.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/icefuzz/timings.py b/icefuzz/timings.py index 009fd7d..7c57b1c 100644 --- a/icefuzz/timings.py +++ b/icefuzz/timings.py @@ -227,6 +227,12 @@ for filename in sdf_inputs: for stmt in cell: if stmt[0] == "CELLTYPE": celltype = rewrite_celltype(stmt[1][1:-1]) + if celltype == "SB_MAC16": + try: + with open(filename.replace(".sdf", ".dsp"), "r") as dspf: + celltype = dspf.readline().strip() + except: + break database.setdefault(celltype, set()) if stmt[0] == "DELAY": |