dftlib.storage.dft_element.DftElement¶
- class DftElement(element_id, name, element_type, position)¶
Bases:
object
Base class for a DFT element.
Methods
Compare elements.
Get JSON string.
Get whether the element is a BE.
Get whether the element is dynamic.
Get whether the element is a gate.
Get parents.
Remove parent.
Set whether the element is relevant (and will not be set to 'Don't Care' for example).
- compare(other, respect_ids)¶
Compare elements. :param other: Other element. :param respect_ids: Whether the ids must be equal. :return: True iff both elements are equal.
- get_json()¶
Get JSON string. :return: JSON string.
- is_be()¶
Get whether the element is a BE. :return: True iff element is a BE.
- is_dynamic()¶
Get whether the element is dynamic. :return: True iff element is dynamic.
- is_gate()¶
Get whether the element is a gate. :return: True iff element is a gate.
- parents()¶
Get parents. :return: List of parents.
- remove_parent(element)¶
Remove parent. :param element: Parent to remove.
- set_relevant(relevant=True)¶
Set whether the element is relevant (and will not be set to ‘Don’t Care’ for example). :param relevant: Whether the element is relevant.