Delay float coercion for non-ssta applications
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
464bc3ae4f
commit
0b491ce190
|
|
@ -63,6 +63,10 @@ public:
|
|||
void setSkewness(float skewness);
|
||||
|
||||
void operator=(float delay);
|
||||
// This allows applications that do not support statistical timing
|
||||
// to treat Delays as floats without explicitly converting with
|
||||
// delayAsFloat.
|
||||
operator float() const { return mean(); }
|
||||
|
||||
private:
|
||||
std::array<float, 4> values_;
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ Path::Path() :
|
|||
|
||||
Path::Path(const Path *path) :
|
||||
prev_path_(path ? path->prev_path_ : nullptr),
|
||||
arrival_(path ? path->arrival_ : 0.0),
|
||||
required_(path ? path->required_ : 0.0),
|
||||
arrival_(path ? path->arrival_ : delay_zero),
|
||||
required_(path ? path->required_ : delay_zero),
|
||||
vertex_id_(path ? path->vertex_id_ : vertex_id_null),
|
||||
tag_index_(path ? path->tag_index_ : tag_index_null),
|
||||
is_enum_(path ? path->is_enum_ : false),
|
||||
|
|
|
|||
Loading…
Reference in New Issue