HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::WaveDataClock Class Reference

#include </home/runner/work/hal/hal/plugins/simulator/netlist_simulator_controller/include/netlist_simulator_controller/wave_data.h>

Inheritance diagram for hal::WaveDataClock:
Inheritance graph
Collaboration diagram for hal::WaveDataClock:
Collaboration graph

Public Member Functions

 WaveDataClock (const Net *n, const SimulationInput::Clock &clk, u64 tmax)
 
 WaveDataClock (const Net *n, int start, u64 period, u64 tmax)
 
void setMaxTime (u64 tmax)
 
SimulationInput::Clock clock () const
 
- Public Member Functions inherited from hal::WaveData
 WaveData (const WaveData &other)
 
 WaveData (u32 id_, const QString &nam, NetType tp=RegularNet, const QMap< u64, int > &dat=QMap< u64, int >())
 
 WaveData (const Net *n, NetType tp=RegularNet)
 
virtual ~WaveData ()
 
u32 id () const
 
QString name () const
 
NetType netType () const
 
virtual int bits () const
 
bool isDirty () const
 
const QMap< u64, int > & data () const
 
int fileIndex () const
 
u64 fileSize () const
 
int valueBase () const
 
std::string fileName () const
 
SaleaeDirectoryNetEntry::Type composedType () const
 
void setId (u32 id_)
 
bool rename (const QString &nam)
 
void setBits (int bts)
 
void setDirty (bool dty)
 
void setFileIndex (int saleaIndex)
 
void setFileSize (u64 siz)
 
void setTimeframeSize (u64 siz)
 
void setWaveDataList (WaveDataList *wdList)
 
virtual LoadPolicy loadPolicy () const
 
int dataIndex () const
 
virtual u64 neighborTransition (double t, bool next) const
 
void loadDataUnlessAlreadyLoaded ()
 
bool loadSaleae (const WaveDataTimeframe &tframe=WaveDataTimeframe())
 
void saveSaleae ()
 
void setData (const QMap< u64, int > &dat)
 
virtual int intValue (double t) const
 
int get_value_at (u64 t)
 
std::string get_name () const
 
std::vector< std::pair< u64, int > > get_events (u64 t0=0) const
 
std::vector< std::pair< u64, int > > get_triggered_events (const WaveDataTrigger *wdTrig, u64 t0=0)
 
u64 maxTime () const
 
void clear ()
 
void insert (u64 t, int val)
 
void insertBooleanValueWithoutSync (u64 t, BooleanFunction::Value bval)
 
QString strValue (int val) const
 
QString strValue (double t) const
 
QString strValue (const QMap< u64, int >::const_iterator &it) const
 
void setValueBase (int bas)
 
bool isEqual (const WaveData &other, int tolerance=0) const
 
bool hasSubscriber () const
 
void addSubscriber ()
 
void removeSubscriber ()
 

Additional Inherited Members

- Public Types inherited from hal::WaveData
enum  NetType {
  RegularNet , InputNet , OutputNet , ClockNet ,
  BooleanNet , TriggerTime , NetGroup
}
 
enum  LoadPolicy { TooBigToLoad , LoadTimeframe , LoadAllData }
 
- Static Public Member Functions inherited from hal::WaveData
static QString stringValue (int val, int bits, int base)
 
- Protected Member Functions inherited from hal::WaveData
QMap< u64, int >::const_iterator timeIterator (double t) const
 
void resetWave ()
 
- Protected Attributes inherited from hal::WaveData
int mValueBase
 
QMap< u64, int > mData
 
bool mDirty
 
WaveDataListmWaveDataList
 

Detailed Description

The waveform of a clock net, which is generated from a period rather than read from simulation results.

Definition at line 153 of file wave_data.h.

Constructor & Destructor Documentation

◆ WaveDataClock() [1/2]

hal::WaveDataClock::WaveDataClock ( const Net n,
const SimulationInput::Clock clk,
u64  tmax 
)

Definition at line 17 of file wave_data.cpp.

◆ WaveDataClock() [2/2]

hal::WaveDataClock::WaveDataClock ( const Net n,
int  start,
u64  period,
u64  tmax 
)

Member Function Documentation

◆ clock()

SimulationInput::Clock hal::WaveDataClock::clock ( ) const
inline

Definition at line 162 of file wave_data.h.

◆ setMaxTime()

void hal::WaveDataClock::setMaxTime ( u64  tmax)

Definition at line 31 of file wave_data.cpp.

References hal::WaveData::resetWave().

Referenced by hal::WaveDataList::updateClocks().


The documentation for this class was generated from the following files: