|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
The SaleaeDirectoryNetEntry class represents a regular waveform for a single simulated net. There is the possibility that no simulation data is available for the net (yet), so the number of associated binary files might be zero. The design allows to split the data into several files. This option however is currently not used. The ID must match the ID of the simulated net. The waveform name can be altered by user using the rename() method. More...


Public Types | |
| enum | Type { None , Group , Boolean , Trigger } |
Public Member Functions | |
| SaleaeDirectoryNetEntry (const std::string nam, uint32_t id_=0, Type tp=None) | |
| Constructor. More... | |
| virtual | ~SaleaeDirectoryNetEntry () |
| uint32_t | id () const |
| Getter for waveform ID = simulated net ID. More... | |
| std::string | name () const |
| Getter for waveform name. More... | |
| Type | type () const |
| Getter for composed type, None for regular waveform. More... | |
| const std::vector< SaleaeDirectoryFileIndex > & | indexes () const |
| Getter for list of associated binary files indexes. More... | |
| void | addIndex (const SaleaeDirectoryFileIndex &sdfe) |
| Add index for binary file to net entry instance. More... | |
| void | rename (const std::string nam) |
| Rename waveform. More... | |
| int | dataFileIndex () const |
| Return last data file index (currently there should be no more than one) More... | |
| int | uniqueKey () const |
| Unique key as reference (used e.g. in mComposedEntryMap) More... | |
Static Public Attributes | |
| static const int | sComposedBaseKey = 1 << 16 |
Protected Attributes | |
| uint32_t | mId |
| std::string | mName |
| Type | mType |
| std::vector< SaleaeDirectoryFileIndex > | mFileIndexes |
Friends | |
| class | SaleaeDirectory |
The SaleaeDirectoryNetEntry class represents a regular waveform for a single simulated net. There is the possibility that no simulation data is available for the net (yet), so the number of associated binary files might be zero. The design allows to split the data into several files. This option however is currently not used. The ID must match the ID of the simulated net. The waveform name can be altered by user using the rename() method.
Definition at line 109 of file saleae_directory.h.
| Enumerator | |
|---|---|
| None | |
| Group | |
| Boolean | |
| Trigger | |
Definition at line 113 of file saleae_directory.h.
|
inline |
Constructor.
Definition at line 121 of file saleae_directory.h.
|
inlinevirtual |
Definition at line 124 of file saleae_directory.h.
|
inline |
Add index for binary file to net entry instance.
Definition at line 139 of file saleae_directory.h.
References mFileIndexes.
Referenced by hal::SaleaeWriter::add_directory_entry(), hal::VcdSerializer::importSaleae(), hal::SaleaeDirectory::parse_json(), and hal::WaveData::saveSaleae().
| int hal::SaleaeDirectoryNetEntry::dataFileIndex | ( | ) | const |
Return last data file index (currently there should be no more than one)
Definition at line 370 of file saleae_directory.cpp.
References mFileIndexes.
|
inline |
Getter for waveform ID = simulated net ID.
Definition at line 127 of file saleae_directory.h.
References mId.
Referenced by hal::SaleaeDirectory::add_or_replace_net(), and hal::SaleaeDirectory::SaleaeDirectory().
|
inline |
Getter for list of associated binary files indexes.
Definition at line 136 of file saleae_directory.h.
References mFileIndexes.
Referenced by hal::SaleaeDirectory::add_or_replace_net().
|
inline |
Getter for waveform name.
Definition at line 130 of file saleae_directory.h.
References mName.
Referenced by hal::SaleaeDirectory::add_or_replace_net(), and hal::SaleaeDirectory::SaleaeDirectory().
|
inline |
|
inline |
Getter for composed type, None for regular waveform.
Definition at line 133 of file saleae_directory.h.
References mType.
| int hal::SaleaeDirectoryNetEntry::uniqueKey | ( | ) | const |
Unique key as reference (used e.g. in mComposedEntryMap)
Definition at line 436 of file saleae_directory.cpp.
References mId, mType, and sComposedBaseKey.
Referenced by hal::SaleaeDirectory::add_or_replace_composed(), hal::SaleaeDirectory::get_composed(), hal::SaleaeDirectory::parse_json(), hal::SaleaeDirectory::remove_composed(), and hal::WaveDataTrigger::set_filter_wave().
|
friend |
Definition at line 111 of file saleae_directory.h.
|
protected |
Definition at line 118 of file saleae_directory.h.
Referenced by addIndex(), dataFileIndex(), and indexes().
|
protected |
Definition at line 115 of file saleae_directory.h.
Referenced by hal::SaleaeDirectoryComposedEntry::dump(), id(), hal::SaleaeDirectoryComposedEntry::isNull(), and uniqueKey().
|
protected |
Definition at line 116 of file saleae_directory.h.
Referenced by hal::SaleaeDirectoryComposedEntry::dump(), name(), and rename().
|
protected |
Definition at line 117 of file saleae_directory.h.
Referenced by hal::SaleaeDirectoryComposedEntry::dump(), hal::SaleaeDirectoryComposedEntry::isNull(), type(), and uniqueKey().
|
static |
Definition at line 150 of file saleae_directory.h.
Referenced by uniqueKey().