Added some qsim support
git-svn-id: http://www.cdkersey.com/harp/harptool@77 0246edb2-e076-4747-b392-db732a341fa2
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#ifndef __ARCHDEF_H
|
||||
#define __ARCHDEF_H
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
@@ -15,6 +16,7 @@ namespace Harp {
|
||||
struct Undefined {};
|
||||
|
||||
ArchDef(const std::string &s) {
|
||||
std::cout << "New archdef for \"" << s << "\"\n";
|
||||
std::istringstream iss(s.c_str());
|
||||
|
||||
iss >> wordSize;
|
||||
@@ -29,6 +31,8 @@ namespace Harp {
|
||||
iss >> sep >> nThds;
|
||||
if (!iss || sep != '/') { extent = EXT_PREGS; return; }
|
||||
extent = EXT_THDS;
|
||||
|
||||
std::cout << nRegs << " regs, " << nPRegs << " pred regs.\n";
|
||||
}
|
||||
|
||||
operator std::string () const {
|
||||
|
||||
Reference in New Issue
Block a user