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

Subversion Repositories theia_gpu

[/] [theia_gpu/] [branches/] [beta_2.0/] [compiler/] [src/] [vp_compiler/] [Instruction.cpp] - Diff between revs 216 and 230

Show entire file | Details | Blame | View Log

Rev 216 Rev 230
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);
}
}
//--------------------------------------------------------------
//--------------------------------------------------------------

powered by: WebSVN 2.1.0

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