OpenCores
URL https://opencores.org/ocsvn/orsoc_graphics_accelerator/orsoc_graphics_accelerator/trunk

Subversion Repositories orsoc_graphics_accelerator

[/] [orsoc_graphics_accelerator/] [trunk/] [sw/] [utils/] [regger/] [main.cpp] - Blame information for rev 7

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 maiden
#include <iostream>
2
#include "regger.h"
3
using namespace std;
4
 
5
int menu()
6
{
7
  int option = 0;
8
 
9
  cout << "<------------- Menu ------------------->" << endl
10
       << "1. Set Driver regs to RTL & Bench values" << endl
11
       << "2. Set RTL & Bench regs to Driver values" << endl
12
       << "3. View Regs"                             << endl
13
       << "4. Exit"                                  << endl
14
       << "<-------------------------------------->" << endl;
15
 
16
  cin >> option;
17
 
18
 
19
  return option;
20
}
21
 
22
int main()
23
{
24
    regger reg;
25
    //reg.AddFile("test.c","test.v");
26
    reg.AddFile("../../drivers/gfx/bare/oc_gfx_regs.h","../../../rtl/verilog/gfx/gfx_params.v");
27
    reg.ScanFiles();
28
    reg.ShowRegs();
29
    reg.SetRTLToDriver();
30
    //reg.SetDriverToRTL();
31
    return 0;
32
 
33
    while(1)
34
    {
35
        int option = menu();
36
 
37
        switch(option)
38
        {
39
          case 1:
40
            reg.SetDriverToRTL();
41
          break;
42
          case 2:
43
            reg.SetDriverToRTL();
44
          break;
45
          case 3:
46
            reg.ShowRegs();
47
          break;
48
          case 4:
49
            return 0;
50
          default:
51
          break;
52
        }
53
    }
54
 
55
}
56
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.