Line 84... |
Line 84... |
"ADD",
|
"ADD",
|
"DIV",
|
"DIV",
|
"MUL",
|
"MUL",
|
"SQRT",
|
"SQRT",
|
"LOGIC",
|
"LOGIC",
|
"OUT"
|
"IO"
|
};
|
};
|
|
|
std::string gBranchTypeStrings[] =
|
std::string gBranchTypeStrings[] =
|
{
|
{
|
"ALWAYS",
|
"ALWAYS",
|
Line 460... |
Line 460... |
std::cout << "WE.x :" << mDestination[DST_WE_X] << "\n";
|
std::cout << "WE.x :" << mDestination[DST_WE_X] << "\n";
|
std::cout << "WE.y :" << mDestination[DST_WE_Y] << "\n";
|
std::cout << "WE.y :" << mDestination[DST_WE_Y] << "\n";
|
std::cout << "WE.z :" << mDestination[DST_WE_Z] << "\n";
|
std::cout << "WE.z :" << mDestination[DST_WE_Z] << "\n";
|
std::cout << "EOF :" << mOperation[OP_EOF] << "\n";
|
std::cout << "EOF :" << mOperation[OP_EOF] << "\n";
|
|
|
std::cout << "OP :" << mOperation.to_string() << "\n";
|
std::cout << "OP :" << mOperation.to_string() << std::hex << " " << mOperation.to_ulong() << "\n";
|
if (mDestinationIsSymbol)
|
if (mDestinationIsSymbol)
|
std::cout << "DST :" << mDestinationSymbol << "\n";
|
std::cout << "DST :" << mDestinationSymbol << "\n";
|
else
|
else
|
std::cout << "DST :" << mDestination.to_string() << "\n";
|
std::cout << "DST :" << mDestination.to_string() << std::hex << " " << mDestination.to_ulong() << "\n";
|
std::cout << "DSTZERO :" << mDestination[DST_ZERO] << "\n";
|
std::cout << "DSTZERO :" << mDestination[DST_ZERO] << "\n";
|
std::cout << "SRC1 :" << mSource1.to_string() << " (" << mSource1.to_ulong() << ")\n";
|
std::cout << "SRC1 :" << mSource1.to_string() << " (" << mSource1.to_ulong() << ")\n";
|
std::cout << "SRC0 :" << mSource0.to_string() << " (" << mSource0.to_ulong() << ")\n";
|
std::cout << "SRC0 :" << mSource0.to_string() << " (" << mSource0.to_ulong() << ")\n";
|
}
|
}
|
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
Line 703... |
Line 703... |
void Instruction::SetSrc1Address(unsigned int aAddress )
|
void Instruction::SetSrc1Address(unsigned int aAddress )
|
{
|
{
|
SetbitRange<17>(mSource1,SRC1_ADDR_RNG,aAddress);
|
SetbitRange<17>(mSource1,SRC1_ADDR_RNG,aAddress);
|
}
|
}
|
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
|
void Instruction::SetIOOperation( EIO_OPERATION aOperation )
|
|
{
|
|
SetbitRange<16>(mOperation,OP_SCALE_RNG,aOperation);
|
|
}
|
|
//--------------------------------------------------------------
|
void Instruction::SetLogicOperation(ELOGIC_OPERATION aOperation )
|
void Instruction::SetLogicOperation(ELOGIC_OPERATION aOperation )
|
{
|
{
|
SetbitRange<16>(mOperation,OP_SCALE_RNG,aOperation);
|
SetbitRange<16>(mOperation,OP_SCALE_RNG,aOperation);
|
}
|
}
|
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|