11 int main(
int argc,
char **argv)
14 std::string infile(argv[1]);
16 std::cout <<
"Parsing " << infile << std::endl;
24 std::cout <<
"Parse successful." << std::endl;
25 std::cout <<
"Version: " << trace->
version << std::endl;
26 std::cout <<
"Date: " << trace->
date << std::endl;
27 std::cout <<
"Signal count: " << trace->
get_signals()->size() << std::endl;
28 std::cout <<
"Times Recorded:" << trace->
get_timestamps()->size() << std::endl;
34 std::cout <<
"Scope: " << scope->name << std::endl;
39 std::cout <<
"\t" << signal->
hash <<
"\t" 44 std::cout <<
" [" << signal->
size <<
":0]";
47 std::cout << std::endl;
57 std::cout <<
"Parse Failed." << std::endl;
Class for parsing files containing CSP notation.
std::vector< VCDScope * > * get_scopes()
Get a vector of all scopes present in the file.
VCDSignalReference reference
std::vector< VCDSignal * > * get_signals()
Return a flattened vector of all signals in the file.
Represents a single signal reference within a VCD file.
Represents a scope type, scope name pair and all of it's child signals.
Contains the declaration of the parser driver class.
std::string date
Date string of the VCD file.
int main(int argc, char **argv)
Standalone test function to allow testing of the VCD file parser.
std::vector< VCDTime > * get_timestamps()
Return a pointer to the set of timestamp samples present in the VCD file.
std::string version
Version string of the simulator which generated the VCD.
Top level object to represent a single VCD file.
VCDFile * parse_file(const std::string &filepath)
Parse the suppled file.