HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
saleae.cpp File Reference
#include <iostream>
#include <iomanip>
#include <netlist_simulator_controller/saleae_directory.h>
#include <netlist_simulator_controller/saleae_file.h>
#include <netlist_simulator_controller/vcd_serializer.h>
#include <netlist_simulator_controller/wave_data.h>
#include <hal_core/utilities/program_options.h>
#include <hal_core/utilities/program_arguments.h>
#include <hal_core/utilities/log.h>
#include <QFileInfo>
#include <QString>
#include <sys/resource.h>
Include dependency graph for saleae.cpp:

Go to the source code of this file.

Functions

bool file_exists (const std::string &path)
 
template<typename T >
void print_element (T t, const int &width, bool align)
 
bool check_size (bool necessary, char op, int size_val, int compare_val)
 
bool check_ids (bool necessary, std::unordered_set< int > id_set, int id_to_check)
 
std::unordered_set< int > parse_list_of_ids (std::string list_of_ids)
 
std::tuple< int, int > parse_timerange (std::string timerange)
 
int time_within_tolerance (const std::vector< uint64_t > &time_vec, int cur_time, int tolerance)
 
void saleae_ls (std::string p_path, std::string size, std::string ids, bool validate)
 
void saleae_cat (std::string path, std::string file_name, bool dump_header, bool dump_data)
 
void saleae_diff (std::string path_1, std::string path_2, std::string ids, bool only_diff, int tolerance)
 
void saleae_export (std::string path_1, std::string path_2, std::string ids, std::string timerange)
 
int main (int argc, const char *argv[])
 

Function Documentation

◆ check_ids()

bool check_ids ( bool  necessary,
std::unordered_set< int >  id_set,
int  id_to_check 
)

Definition at line 56 of file saleae.cpp.

Referenced by saleae_diff(), and saleae_ls().

◆ check_size()

bool check_size ( bool  necessary,
char  op,
int  size_val,
int  compare_val 
)

Definition at line 41 of file saleae.cpp.

Referenced by saleae_ls().

◆ file_exists()

bool file_exists ( const std::string &  path)

Definition at line 17 of file saleae.cpp.

References hal::ff.

Referenced by saleae_cat(), saleae_diff(), and saleae_ls().

◆ main()

◆ parse_list_of_ids()

std::unordered_set<int> parse_list_of_ids ( std::string  list_of_ids)

Definition at line 62 of file saleae.cpp.

Referenced by saleae_diff(), saleae_export(), and saleae_ls().

◆ parse_timerange()

std::tuple<int,int> parse_timerange ( std::string  timerange)

Definition at line 103 of file saleae.cpp.

Referenced by saleae_export().

◆ print_element()

template<typename T >
void print_element ( t,
const int &  width,
bool  align 
)

Definition at line 28 of file saleae.cpp.

Referenced by saleae_cat(), saleae_diff(), and saleae_ls().

◆ saleae_cat()

◆ saleae_diff()

◆ saleae_export()

◆ saleae_ls()

◆ time_within_tolerance()

int time_within_tolerance ( const std::vector< uint64_t > &  time_vec,
int  cur_time,
int  tolerance 
)

Definition at line 111 of file saleae.cpp.

Referenced by saleae_diff().