URL
https://opencores.org/ocsvn/w11/w11/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 21 |
Rev 22 |
Line 1... |
Line 1... |
// $Id: Rw11Cpu.cpp 516 2013-05-05 21:24:52Z mueller $
|
// $Id: Rw11Cpu.cpp 521 2013-05-20 22:16:45Z mueller $
|
//
|
//
|
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
//
|
//
|
// This program is free software; you may redistribute and/or modify it under
|
// This program is free software; you may redistribute and/or modify it under
|
// the terms of the GNU General Public License as published by the Free
|
// the terms of the GNU General Public License as published by the Free
|
Line 18... |
Line 18... |
// 2013-01-27 478 0.1 First draft
|
// 2013-01-27 478 0.1 First draft
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: Rw11Cpu.cpp 516 2013-05-05 21:24:52Z mueller $
|
\version $Id: Rw11Cpu.cpp 521 2013-05-20 22:16:45Z mueller $
|
\brief Implemenation of Rw11Cpu.
|
\brief Implemenation of Rw11Cpu.
|
*/
|
*/
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <fcntl.h>
|
#include <fcntl.h>
|
#include <errno.h>
|
#include <errno.h>
|
Line 580... |
Line 580... |
size_t uind=0;
|
size_t uind=0;
|
for (size_t i=0; i<uname.length(); i++) {
|
for (size_t i=0; i<uname.length(); i++) {
|
char c = uname[i];
|
char c = uname[i];
|
if (c >= '0' && c <= '9') {
|
if (c >= '0' && c <= '9') {
|
string unum = cname.substr(i);
|
string unum = cname.substr(i);
|
uind = atoi(unum.c_str());
|
uind = ::atoi(unum.c_str());
|
break;
|
break;
|
} else {
|
} else {
|
cname.push_back(c);
|
cname.push_back(c);
|
}
|
}
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.