|
HAL
|
An entry type that represents properties (functions or behaviors) of a LatchComponent. More...
#include <boolean_function_table_model.h>


Public Types | |
| enum | LatchCompFunc { Enable = 0 , DataInFunc = 1 , AsyncSet = 2 , AsyncReset = 3 , SetResetBehav = 4 } |
Public Types inherited from hal::BooleanFunctionTableEntry | |
| enum class | EntryType { BooleanFunctionStandard , CPBehavior , StateComp , FFComp , LatchComp } |
Public Member Functions | |
| LatchComponentEntry (u32 gateId, LatchCompFunc type, BooleanFunction func) | |
| LatchComponentEntry (u32 gateId, std::pair< hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior > behav) | |
| QString | getPythonCode () override |
Public Member Functions inherited from hal::BooleanFunctionTableEntry | |
| BooleanFunctionTableEntry (u32 gateId) | |
| QString | getEntryIdentifier () const |
| QString | getEntryValueString () const |
| u32 | getGateId () const |
| EntryType | getEntryType () const |
Additional Inherited Members | |
Protected Attributes inherited from hal::BooleanFunctionTableEntry | |
| QString | mLeft |
| QString | mRight |
| u32 | mGateId |
| EntryType | mType |
An entry type that represents properties (functions or behaviors) of a LatchComponent.
Definition at line 189 of file boolean_function_table_model.h.
| Enumerator | |
|---|---|
| Enable | |
| DataInFunc | |
| AsyncSet | |
| AsyncReset | |
| SetResetBehav | |
Definition at line 192 of file boolean_function_table_model.h.
| hal::LatchComponentEntry::LatchComponentEntry | ( | u32 | gateId, |
| LatchComponentEntry::LatchCompFunc | type, | ||
| BooleanFunction | func | ||
| ) |
The constructor. For the LatchCompFunc parameter, everything except SetResetBehav should be set.
| gateId | - The gate's id. |
| type | - The entry's type (except SetResetBehav). |
| func | - The function to display. |
Definition at line 265 of file boolean_function_table_model.cpp.
References QString::fromStdString(), hal::BooleanFunctionTableEntry::LatchComp, hal::BooleanFunctionTableEntry::mLeft, hal::BooleanFunctionTableEntry::mRight, hal::BooleanFunctionTableEntry::mType, hal::BooleanFunction::to_string(), and type.
| hal::LatchComponentEntry::LatchComponentEntry | ( | u32 | gateId, |
| std::pair< hal::AsyncSetResetBehavior, hal::AsyncSetResetBehavior > | behav | ||
| ) |
The constructor for the set_reset behavior.
| gateId | - The gate's id. |
| behav | - The behavior. |
|
overridevirtual |
Returns the python code necessary to access the entry's value through a gate. This function should return an empty string if no python code is available. (E.g. when a "random" boolean function is displayed that belongs to no gate or component)
Reimplemented from hal::BooleanFunctionTableEntry.
Definition at line 281 of file boolean_function_table_model.cpp.
References hal::BooleanFunctionTableEntry::mGateId, hal::PyCodeProvider::pyCodeLatchCompAsyncResetFunc(), hal::PyCodeProvider::pyCodeLatchCompAsyncSetFunc(), hal::PyCodeProvider::pyCodeLatchCompDataInFunc(), hal::PyCodeProvider::pyCodeLatchCompEnableFunc(), and hal::PyCodeProvider::pyCodeLatchCompSetResetBehav().