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] - Rev 5

Compare with Previous | Blame | View Log

/*
this script sets the registers in the driver, based on the gfx_params.
*/
 
#include <iostream>
#include <string>
#include <deque>
using namespace std;
 
struct param
{
string name;
string value;
}
 
class regger
{
public:
  SetDriverToRTL();
  SetRTLToDriver();
  ShowRegs();
  ScanFiles();
private:
  deque<param> rtl_params;
  deque<param> driver_params;
}
 
int menu()
{
  int option = 0;
 
  cout << "<------------- Menu ------------------->" << endl 
       << "1. Set Driver regs to RTL & Bench values" << endl 
       << "2. Set RTL & Bench regs to Driver values" << endl 
       << "3. View Regs" << endl;
  while(option < 1 || option > 3)
  {  
    cin >> option;
  }
 
  return option;
}
 
void SetDriverToRTL()
{
 
}
 
void SetRTLToDriver()
{
 
}
 
void ShowRegs()
{
 
}
 
int main()
{
  int option = menu();
 
  switch(option)
  {
    case 1:
    break;
    case 2:
    break;
    case 3:
    break;
    default:
    break;
  }
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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