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/] [Compiler.h] - Diff between revs 216 and 227

Show entire file | Details | Blame | View Log

Rev 216 Rev 227
Line 157... Line 157...
                                        unsigned int Operation,Destination,Src1,Src0;
                                        unsigned int Operation,Destination,Src1,Src0;
                                        if (Line.find("@") != std::string::npos)
                                        if (Line.find("@") != std::string::npos)
                                        {
                                        {
                                                ss >> std::hex>> LineNumber >> Operation >> DestinationSymbol >>  Src1 >> Src0;
                                                ss >> std::hex>> LineNumber >> Operation >> DestinationSymbol >>  Src1 >> Src0;
                                                DestinationSymbol.erase(0,1);
                                                DestinationSymbol.erase(0,1);
                                                //std::cout << "XXXX DestinationSymbol " << DestinationSymbol << "\n";
                                                DCOUT << "XXXX DestinationSymbol " << DestinationSymbol << "\n";
                                                std::ostringstream oss;
 
 
                                                if (mSymbolMap.find( DestinationSymbol ) == mSymbolMap.end())
 
                                                {
 
                                                        std::cout << "ERROR: Function definition for " << DestinationSymbol << " not found!\n";
 
                                                        exit(1);
 
                                                }
 
 
                                                Destination = mSymbolMap[ DestinationSymbol ];
                                                Destination = mSymbolMap[ DestinationSymbol ];
                                                //std::cout << "XXXX Destination " << Destination << "\n";
                                                DCOUT << "XXXX Destination " << Destination << "\n";
                                        }
                                        }
                                        else
                                        else
                                                ss >> std::hex>> LineNumber >> Operation >> Destination >> Src1 >> Src0;
                                                ss >> std::hex>> LineNumber >> Operation >> Destination >> Src1 >> Src0;
 
 
                                                //std::cout << "'" << Line << "'" << std::hex << LineNumber << "," << Operation << "," << Destination << "," << Src1 << "," << Src0 << "\n";
                                                //std::cout << "'" << Line << "'" << std::hex << LineNumber << "," << Operation << "," << Destination << "," << Src1 << "," << Src0 << "\n";

powered by: WebSVN 2.1.0

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