OpenASIP  2.0
Classes | Namespaces | Macros
ICDecoderGeneratorPlugin.hh File Reference
#include <map>
#include <string>
#include <iostream>
#include <set>
#include "Socket.hh"
#include "HDBTypes.hh"
#include "ProGeTypes.hh"
#include "MachineImplementation.hh"
Include dependency graph for ICDecoderGeneratorPlugin.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ProGe::ICDecoderGeneratorPlugin
 

Namespaces

 TTAMachine
 
 IDF
 
 ProGe
 

Macros

#define EXPORT_ICDEC_GENERATOR(PLUGIN_NAME__)
 

Detailed Description

Declaration of ICDecoderGeneratorPlugin class.

Author
Lasse Laasonen 2005 (lasse.laasonen-no.spam-tut.fi)
Vinogradov Viacheslav(added Verilog generating) 2012
Note
rating: red

Definition in file ICDecoderGeneratorPlugin.hh.

Macro Definition Documentation

◆ EXPORT_ICDEC_GENERATOR

#define EXPORT_ICDEC_GENERATOR (   PLUGIN_NAME__)
Value:
extern "C" { \
ICDecoderGeneratorPlugin*\
create_generator_plugin_##PLUGIN_NAME__(\
const BinaryEncoding& bem) {\
PLUGIN_NAME__##Generator* instance = \
new PLUGIN_NAME__##Generator(machine, bem); \
return instance;\
}\
void delete_generator_plugin_##PLUGIN_NAME__(\
ICDecoderGeneratorPlugin* target) {\
delete target;\
}\
}

Exports the given class as an IC&decoder generator.

Note
The class name of the generator MUST be [PLUGIN_NAME__]Generator, thus a generator exported with EXPORT_ICDEC_GENERATOR(Example) exports a class called ExampleGenerator.

Definition at line 172 of file ICDecoderGeneratorPlugin.hh.

BinaryEncoding
Definition: BinaryEncoding.hh:61
machine
TTAMachine::Machine * machine
the architecture definition of the estimated processor
Definition: EstimatorCmdLineUI.cc:59
TTAMachine::Machine
Definition: Machine.hh:73