|
OpenASIP 2.2
|
#include <fstream>#include <iostream>#include <map>#include "CompilerWarnings.hh"#include "ADFSerializer.hh"#include "Binary.hh"#include "BinaryReader.hh"#include "BinaryStream.hh"#include "CmdLineOptions.hh"#include "ControlUnit.hh"#include "DataDefinition.hh"#include "DataMemory.hh"#include "DisassemblyInstruction.hh"#include "FUPort.hh"#include "FileSystem.hh"#include "FunctionUnit.hh"#include "HWOperation.hh"#include "Immediate.hh"#include "Instruction.hh"#include "Move.hh"#include "Operation.hh"#include "POMDisassembler.hh"#include "Procedure.hh"#include "Program.hh"#include "RegisterFile.hh"#include "TPEFProgramFactory.hh"#include "Terminal.hh"#include "TerminalImmediate.hh"#include "UniversalMachine.hh"#include "tce_config.h"
Go to the source code of this file.
Classes | |
| class | DisasmCmdLineOptions |
Typedefs | |
| typedef std::map< TCEString, std::map< int, TCEString > > | PasmPacket |
Functions | |
| TTAMachine::FunctionUnit * | getFunctionUnit (TTAMachine::Machine *machine, TCEString fuName) |
| TTAMachine::RegisterFile * | getRegisterFile (TTAMachine::Machine *machine, TCEString rfName) |
| TCEString | getPasmPacket (PasmPacket pkt, std::set< TCEString > fuSet, TCEString label="", bool printHeader=false) |
| TCEString | getOutputPort (TTAMachine::FunctionUnit *fu, TCEString op) |
| int | main (int argc, char *argv[]) |
| typedef std::map<TCEString, std::map<int, TCEString> > PasmPacket |
Definition at line 74 of file tpef2pasm.cc.
| TTAMachine::FunctionUnit * getFunctionUnit | ( | TTAMachine::Machine * | machine, |
| TCEString | fuName | ||
| ) |
Get FunctionUnit object from FU name
| machine | Machine for the search |
| fuName | Name of the FU to search |
Definition at line 125 of file tpef2pasm.cc.
References TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Machine::functionUnitNavigator(), TTAMachine::Machine::Navigator< ComponentType >::item(), and machine.
Referenced by main().

| TCEString getOutputPort | ( | TTAMachine::FunctionUnit * | fu, |
| TCEString | op | ||
| ) |
Get FU output Port name for operation
| fu | FunctionUnit to search for instruction |
| op | Instruction name to search |
Definition at line 251 of file tpef2pasm.cc.
References TTAMachine::Port::isOutput(), TTAMachine::Port::name(), TTAMachine::HWOperation::operandCount(), TTAMachine::FunctionUnit::operation(), and TTAMachine::HWOperation::port().
Referenced by main().

| TCEString getPasmPacket | ( | PasmPacket | pkt, |
| std::set< TCEString > | fuSet, | ||
| TCEString | label = "", |
||
| bool | printHeader = false |
||
| ) |
Get RegisterFile object from RF name
| pkt | PASM instructions in map form |
| fuSet | Pasm header, list of FU names |
| label | Procedure start label |
| printHeader | Name of the RF to search |
Definition at line 161 of file tpef2pasm.cc.
References TCEString::replaceString().
Referenced by main().

| TTAMachine::RegisterFile * getRegisterFile | ( | TTAMachine::Machine * | machine, |
| TCEString | rfName | ||
| ) |
Get RegisterFile object from RF name
| machine | Machine for the search |
| rfName | Name of the RF to search |
Definition at line 142 of file tpef2pasm.cc.
References TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Machine::Navigator< ComponentType >::item(), machine, and TTAMachine::Machine::registerFileNavigator().
Referenced by main().

| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 261 of file tpef2pasm.cc.
References CmdLineParser::argument(), assert, TTAProgram::TPEFProgramFactory::build(), TTAMachine::Machine::controlUnit(), TTAMachine::Machine::Navigator< ComponentType >::count(), FileSystem::createFile(), TTAProgram::Immediate::destination(), TTAProgram::Move::destination(), Exception::errorMessage(), FileSystem::fileExists(), FileSystem::fileIsCreatable(), FileSystem::fileIsWritable(), TTAMachine::Machine::functionUnitNavigator(), getFunctionUnit(), getOutputPort(), getPasmPacket(), getRegisterFile(), TTAProgram::Instruction::immediate(), TTAProgram::Instruction::immediateCount(), TTAProgram::Terminal::immediateUnit(), TTAMachine::Machine::immediateUnitNavigator(), UniversalMachine::instance(), TTAProgram::CodeSnippet::instructionAtIndex(), TTAProgram::CodeSnippet::instructionCount(), SimValue::intValue(), TTAProgram::Terminal::isRA(), TTAProgram::Terminal::isTriggering(), TTAMachine::Machine::Navigator< ComponentType >::item(), machine, TTAProgram::Instruction::move(), TTAProgram::Instruction::moveCount(), TTAMachine::Component::name(), TTAMachine::Port::name(), TTAProgram::Procedure::name(), CmdLineParser::numberOfArguments(), options, outputFileName(), TTAMachine::Port::parentUnit(), CmdLineOptions::parse(), TTAProgram::Terminal::port(), MachInfoCmdLineOptions::printHelp(), program, TPEF::BinaryReader::readBinary(), ADFSerializer::readMachine(), TTAMachine::Machine::registerFileNavigator(), TCEString::replaceString(), XMLSerializer::setSourceFile(), TTAProgram::Move::source(), TCEString::split(), TTAProgram::Terminal::toString(), TTAProgram::Immediate::value(), and TTAProgram::TerminalImmediate::value().
