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

Subversion Repositories orsoc_graphics_accelerator

[/] [orsoc_graphics_accelerator/] [trunk/] [sw/] [utils/] [setregs.cpp] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 maiden
/*
2
this script sets the registers in the driver, based on the gfx_params.
3
*/
4
 
5
#include <iostream>
6
#include <string>
7
#include <deque>
8
using namespace std;
9
 
10
struct param
11
{
12
string name;
13
string value;
14
}
15
 
16
class regger
17
{
18
public:
19
  SetDriverToRTL();
20
  SetRTLToDriver();
21
  ShowRegs();
22
  ScanFiles();
23
private:
24
  deque<param> rtl_params;
25
  deque<param> driver_params;
26
}
27
 
28
int menu()
29
{
30
  int option = 0;
31
 
32
  cout << "<------------- Menu ------------------->" << endl
33
       << "1. Set Driver regs to RTL & Bench values" << endl
34
       << "2. Set RTL & Bench regs to Driver values" << endl
35
       << "3. View Regs" << endl;
36
  while(option < 1 || option > 3)
37
  {
38
    cin >> option;
39
  }
40
 
41
  return option;
42
}
43
 
44
void SetDriverToRTL()
45
{
46
 
47
}
48
 
49
void SetRTLToDriver()
50
{
51
 
52
}
53
 
54
void ShowRegs()
55
{
56
 
57
}
58
 
59
int main()
60
{
61
  int option = menu();
62
 
63
  switch(option)
64
  {
65
    case 1:
66
    break;
67
    case 2:
68
    break;
69
    case 3:
70
    break;
71
    default:
72
    break;
73
  }
74
}

powered by: WebSVN 2.1.0

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