diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-02-14 11:41:43 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-02-27 10:17:29 -0800 |
commit | 3ea5506f812879c0ecf66431efde002493e11bdf (patch) | |
tree | 4c6607a3ba89fd5aff5fffb8f84828f9cb53d351 /kernel | |
parent | cda4acb544614711b2c187e93f515bfc43ca8da1 (diff) | |
download | yosys-3ea5506f812879c0ecf66431efde002493e11bdf.tar.gz yosys-3ea5506f812879c0ecf66431efde002493e11bdf.tar.bz2 yosys-3ea5506f812879c0ecf66431efde002493e11bdf.zip |
abc9_ops: use TimingInfo for -prep_{lut,box} too
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/timinginfo.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/kernel/timinginfo.h b/kernel/timinginfo.h index 8c16fff6c..f31fbaab4 100644 --- a/kernel/timinginfo.h +++ b/kernel/timinginfo.h @@ -148,24 +148,8 @@ struct TimingInfo } } - int delay(IdString module_name, const SigBit &src, const SigBit &dst) const { - auto it = data.find(module_name); - if (it == data.end()) - return 0; - return it->second.comb.at(BitBit(src,dst), 0); - } - int arrival(IdString module_name, const SigBit &src) const { - auto it = data.find(module_name); - if (it == data.end()) - return 0; - return it->second.arrival.at(src, 0); - } - int required(IdString module_name, const SigBit &dst) const { - auto it = data.find(module_name); - if (it == data.end()) - return 0; - return it->second.required.at(dst, 0); - } + decltype(data)::const_iterator find (RTLIL::IdString module_name) const { return data.find(module_name); } + decltype(data)::const_iterator end () const { return data.end(); } }; YOSYS_NAMESPACE_END |