28 lines
515 B
C++
28 lines
515 B
C++
|
#include "SolReader.h"
|
||
|
|
||
|
void script(){
|
||
|
|
||
|
SolReader * reader = new SolReader("haha_000.sol");
|
||
|
Event * evt = reader->evt;
|
||
|
|
||
|
reader->ScanNumBlock();
|
||
|
|
||
|
|
||
|
for( int i = 0; i < 2; i++){
|
||
|
printf("########### nBlock : %u\n", reader->GetNumBlock());
|
||
|
reader->ReadBlock();
|
||
|
evt->PrintAll();
|
||
|
reader->evt->PrintAllTrace();
|
||
|
|
||
|
}
|
||
|
|
||
|
//printf("reader traceLength : %lu \n", evt->traceLenght);
|
||
|
|
||
|
/*
|
||
|
for( int i = 0; i < evt->traceLenght; i++){
|
||
|
|
||
|
printf("%4d| %d\n", i, evt->analog_probes[0][i]);
|
||
|
|
||
|
}
|
||
|
*/
|
||
|
}
|