[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  SystemPerl
  Voneline
  WFH
General Info
  Papers

Main.cpp

Jan Seyler, 04/12/2012 12:44 pm

Download (815 Bytes)

 
1
//#include "My_Parser.h"
2
#include "VFileLineParseXs.h"
3

    
4
// Entry Point
5
int main(int argc, char * argv[]) {
6
  VFileLineParseXs* filelinep = new VFileLineParseXs(NULL);
7
  av* symsp;
8
  
9
  // open file
10
  
11
  ifstream dut ("files/dut.sv");
12
  if (dut.is_open()) {
13
    std::cout << "dut.sv opened correctly" << std::endl;
14
  } else {
15
    std::cout << "error while opening dut.sv" << std::endl; return 0;
16
  }
17
    
18
  ifstream scoreboard ("files/htax_bridge_scoreboard.sv");
19
  if (scoreboard.is_open()) {
20
    std::cout << "htax_bridge_scoreboard.sv opened correctly" << std::endl;
21
  } else {
22
    std::cout << "error while opening htax_bridge_scoreboard.sv" << std::endl; return 0;
23
  }
24
  
25
   My_Parser *parser = new My_Parser(filelinep, symsp, 0, 0);
26

    
27
   filelinep->setParser(parser);
28
  
29
  dut.close();
30
  scoreboard.close();
31
}
32