OpenASIP  2.0
Variables
BEMSerializer.cc File Reference
#include <string>
#include <vector>
#include "BEMSerializer.hh"
#include "BinaryEncoding.hh"
#include "SocketCodeTable.hh"
#include "FUPortCode.hh"
#include "RFPortCode.hh"
#include "IUPortCode.hh"
#include "ImmediateControlField.hh"
#include "MoveSlot.hh"
#include "LImmDstRegisterField.hh"
#include "ImmediateSlotField.hh"
#include "GuardField.hh"
#include "SourceField.hh"
#include "DestinationField.hh"
#include "GPRGuardEncoding.hh"
#include "FUGuardEncoding.hh"
#include "UnconditionalGuardEncoding.hh"
#include "SocketEncoding.hh"
#include "BridgeEncoding.hh"
#include "ImmediateEncoding.hh"
#include "NOPEncoding.hh"
#include "Application.hh"
#include "Environment.hh"
#include "ObjectState.hh"
#include "InstructionFormat.hh"
Include dependency graph for BEMSerializer.cc:

Go to the source code of this file.

Variables

const string TRUE = "true"
 
const string FALSE = "false"
 
const string ADF_ENCODING = "adf-encoding"
 
const string BEM_VERSION_STR = "version"
 
const string REQUIRED_VERSION = "required-version"
 
const string SOCKET_CODE_TABLE = "map-ports"
 
const string SC_TABLE_NAME = "name"
 
const string SC_TABLE_EXTRA_BITS = "extra-bits"
 
const string FU_PORT_CODE = "fu-port-code"
 
const string FU_PORT_CODE_PORT = "name"
 
const string FU_PORT_CODE_FU = "fu"
 
const string FU_PORT_CODE_OPERATION = "operation"
 
const string FU_PORT_CODE_ENCODING = "encoding"
 
const string FU_PORT_CODE_EXTRA_BITS = "extra-bits"
 
const string RF_PORT_CODE = "rf-port-code"
 
const string RF_PORT_CODE_RF = "rf"
 
const string RF_PORT_CODE_INDEX_WIDTH = "index-width"
 
const string RF_PORT_CODE_MAX_INDEX = "max-index"
 
const string RF_PORT_CODE_ENCODING = "encoding"
 
const string RF_PORT_CODE_EXTRA_BITS = "extra-bits"
 
const string IU_PORT_CODE = "iu-port-code"
 
const string IU_PORT_CODE_IU = "iu"
 
const string LONG_IMMEDIATE_TAG = "long-immediate-tag"
 
const string LIMM_TAG_POSITION = "pos"
 
const string LIMM_TAG_EXTRA_BITS = "extra-bits"
 
const string LIMM_TAG_MAP = "map"
 
const string LIMM_TAG_MAP_NAME = "name"
 
const string IMM_REG_FIELD = "immediate-register-field"
 
const string IMM_REG_FIELD_POS = "pos"
 
const string IMM_REG_FIELD_WIDTH = "width"
 
const string IMM_REG_FIELD_ITEMP = "instruction-template"
 
const string IMM_REG_FIELD_ITEMP_NAME = "name"
 
const string IMM_REG_FIELD_ITEMP_REG_INDEX = "reg-index-of"
 
const string SLOT = "slot"
 
const string SLOT_NAME = "name"
 
const string SLOT_POSITION = "pos"
 
const string SLOT_EXTRA_BITS = "extra-bits"
 
const string SLOT_GUARD = "guard"
 
const string SLOT_GUARD_POSITION = "pos"
 
const string SLOT_GUARD_EXTRA_BITS = "extra-bits"
 
const string REG_GUARD_CODE = "reg-guard-code"
 
const string REG_GUARD_CODE_RF = "rf"
 
const string REG_GUARD_CODE_INDEX = "index"
 
const string REG_GUARD_CODE_INVERTED = "inv"
 
const string PORT_GUARD_CODE = "port-guard-code"
 
const string PORT_GUARD_CODE_FU = "fu"
 
const string PORT_GUARD_CODE_PORT = "port"
 
const string PORT_GUARD_CODE_INVERTED = "inv"
 
const string ALWAYS_TRUE_GUARD_CODE = "always-true-guard-code"
 
const string ALWAYS_FALSE_GUARD_CODE = "always-false-guard-code"
 
const string SLOT_SOURCE = "source"
 
const string SLOT_DESTINATION = "destination"
 
const string SRC_DST_POSITION = "pos"
 
const string SRC_DST_EXTRA_BITS = "extra-bits"
 
const string SRC_DST_ID_POS = "id-pos"
 
const string ID_POS_LEFT = "left"
 
const string ID_POS_RIGHT = "right"
 
const string SOCKET = "socket"
 
const string SOCKET_NAME = "name"
 
const string SOCKET_MAP = "map"
 
const string SOCKET_MAP_EXTRA_BITS = "extra-bits"
 
const string SOCKET_MAP_CODES = "codes"
 
const string SOURCE_IMMEDIATE = "immediate"
 
const string SOURCE_IMMEDIATE_WIDTH = "width"
 
const string SOURCE_IMMEDIATE_MAP = "map"
 
const string SOURCE_IMMEDIATE_MAP_EXTRA_BITS = "extra-bits"
 
const string SOURCE_BRIDGE = "bridge"
 
const string SOURCE_BRIDGE_NAME = "name"
 
const string SOURCE_BRIDGE_MAP = "map"
 
const string SOURCE_BRIDGE_MAP_EXTRA_BITS = "extra-bits"
 
const string SRC_DST_NO_OPERATION = "no-operation"
 
const string SRC_DST_NO_OPERATION_MAP = "map"
 
const string SRC_DST_NO_OPERATION_MAP_EXTRA_BITS = "extra-bits"
 
const string INSTRUCTION_FORMAT = "ota-format"
 
const string INSTRUCTION_FORMAT_NAME = "name"
 
const string IMMEDIATE_SLOT = "immediate-slot"
 
const string IMMEDIATE_SLOT_NAME = "name"
 
const string IMMEDIATE_SLOT_WIDTH = "width"
 
const string IMMEDIATE_SLOT_POS = "pos"
 
const string EXTRA_BITS = "extra-bits"
 
const string MAP = "map"
 
const string BEM_SCHEMA_FILE = "bem/BEM_Schema.xsd"
 

Detailed Description

Implementation of BEMSerializer class.

Author
Lasse Laasonen 2005 (lasse.laasonen-no.spam-tut.fi)
Note
rating: red

Definition in file BEMSerializer.cc.

Variable Documentation

◆ ADF_ENCODING

const string ADF_ENCODING = "adf-encoding"

Definition at line 67 of file BEMSerializer.cc.

Referenced by BEMSerializer::convertToFileFormat().

◆ ALWAYS_FALSE_GUARD_CODE

const string ALWAYS_FALSE_GUARD_CODE = "always-false-guard-code"

◆ ALWAYS_TRUE_GUARD_CODE

const string ALWAYS_TRUE_GUARD_CODE = "always-true-guard-code"

◆ BEM_SCHEMA_FILE

const string BEM_SCHEMA_FILE = "bem/BEM_Schema.xsd"

Definition at line 159 of file BEMSerializer.cc.

Referenced by BEMSerializer::BEMSerializer().

◆ BEM_VERSION_STR

const string BEM_VERSION_STR = "version"

◆ EXTRA_BITS

const string EXTRA_BITS = "extra-bits"

Definition at line 156 of file BEMSerializer.cc.

Referenced by BEMSerializer::convertZeroEncExtraBits().

◆ FALSE

const string FALSE = "false"

◆ FU_PORT_CODE

const string FU_PORT_CODE = "fu-port-code"

◆ FU_PORT_CODE_ENCODING

const string FU_PORT_CODE_ENCODING = "encoding"

◆ FU_PORT_CODE_EXTRA_BITS

const string FU_PORT_CODE_EXTRA_BITS = "extra-bits"

◆ FU_PORT_CODE_FU

const string FU_PORT_CODE_FU = "fu"

◆ FU_PORT_CODE_OPERATION

const string FU_PORT_CODE_OPERATION = "operation"

◆ FU_PORT_CODE_PORT

const string FU_PORT_CODE_PORT = "name"

◆ ID_POS_LEFT

const string ID_POS_LEFT = "left"

◆ ID_POS_RIGHT

const string ID_POS_RIGHT = "right"

◆ IMM_REG_FIELD

const string IMM_REG_FIELD = "immediate-register-field"

◆ IMM_REG_FIELD_ITEMP

const string IMM_REG_FIELD_ITEMP = "instruction-template"

◆ IMM_REG_FIELD_ITEMP_NAME

const string IMM_REG_FIELD_ITEMP_NAME = "name"

◆ IMM_REG_FIELD_ITEMP_REG_INDEX

const string IMM_REG_FIELD_ITEMP_REG_INDEX = "reg-index-of"

Definition at line 100 of file BEMSerializer.cc.

Referenced by BEMSerializer::longImmDstRegisterFieldToFile().

◆ IMM_REG_FIELD_POS

const string IMM_REG_FIELD_POS = "pos"

◆ IMM_REG_FIELD_WIDTH

const string IMM_REG_FIELD_WIDTH = "width"

◆ IMMEDIATE_SLOT

const string IMMEDIATE_SLOT = "immediate-slot"

◆ IMMEDIATE_SLOT_NAME

const string IMMEDIATE_SLOT_NAME = "name"

◆ IMMEDIATE_SLOT_POS

const string IMMEDIATE_SLOT_POS = "pos"

◆ IMMEDIATE_SLOT_WIDTH

const string IMMEDIATE_SLOT_WIDTH = "width"

◆ INSTRUCTION_FORMAT

const string INSTRUCTION_FORMAT = "ota-format"

Definition at line 148 of file BEMSerializer.cc.

Referenced by BEMSerializer::convertToOMFormat().

◆ INSTRUCTION_FORMAT_NAME

const string INSTRUCTION_FORMAT_NAME = "name"

Definition at line 149 of file BEMSerializer.cc.

◆ IU_PORT_CODE

const string IU_PORT_CODE = "iu-port-code"

◆ IU_PORT_CODE_IU

const string IU_PORT_CODE_IU = "iu"

◆ LIMM_TAG_EXTRA_BITS

const string LIMM_TAG_EXTRA_BITS = "extra-bits"

◆ LIMM_TAG_MAP

const string LIMM_TAG_MAP = "map"

◆ LIMM_TAG_MAP_NAME

const string LIMM_TAG_MAP_NAME = "name"

◆ LIMM_TAG_POSITION

const string LIMM_TAG_POSITION = "pos"

◆ LONG_IMMEDIATE_TAG

const string LONG_IMMEDIATE_TAG = "long-immediate-tag"

◆ MAP

const string MAP = "map"

Definition at line 157 of file BEMSerializer.cc.

Referenced by BEMSerializer::convertZeroEncExtraBits().

◆ PORT_GUARD_CODE

const string PORT_GUARD_CODE = "port-guard-code"

◆ PORT_GUARD_CODE_FU

const string PORT_GUARD_CODE_FU = "fu"

◆ PORT_GUARD_CODE_INVERTED

const string PORT_GUARD_CODE_INVERTED = "inv"

◆ PORT_GUARD_CODE_PORT

const string PORT_GUARD_CODE_PORT = "port"

◆ REG_GUARD_CODE

const string REG_GUARD_CODE = "reg-guard-code"

◆ REG_GUARD_CODE_INDEX

const string REG_GUARD_CODE_INDEX = "index"

◆ REG_GUARD_CODE_INVERTED

const string REG_GUARD_CODE_INVERTED = "inv"

◆ REG_GUARD_CODE_RF

const string REG_GUARD_CODE_RF = "rf"

◆ REQUIRED_VERSION

const string REQUIRED_VERSION = "required-version"

◆ RF_PORT_CODE

const string RF_PORT_CODE = "rf-port-code"

◆ RF_PORT_CODE_ENCODING

const string RF_PORT_CODE_ENCODING = "encoding"

◆ RF_PORT_CODE_EXTRA_BITS

const string RF_PORT_CODE_EXTRA_BITS = "extra-bits"

◆ RF_PORT_CODE_INDEX_WIDTH

const string RF_PORT_CODE_INDEX_WIDTH = "index-width"

◆ RF_PORT_CODE_MAX_INDEX

const string RF_PORT_CODE_MAX_INDEX = "max-index"

Definition at line 83 of file BEMSerializer.cc.

Referenced by BEMSerializer::socketCodeTableToFile().

◆ RF_PORT_CODE_RF

const string RF_PORT_CODE_RF = "rf"

◆ SC_TABLE_EXTRA_BITS

const string SC_TABLE_EXTRA_BITS = "extra-bits"

◆ SC_TABLE_NAME

const string SC_TABLE_NAME = "name"

◆ SLOT

const string SLOT = "slot"

◆ SLOT_DESTINATION

const string SLOT_DESTINATION = "destination"

◆ SLOT_EXTRA_BITS

const string SLOT_EXTRA_BITS = "extra-bits"

Definition at line 105 of file BEMSerializer.cc.

Referenced by BEMSerializer::moveSlotToFile(), and BEMSerializer::moveSlotToOM().

◆ SLOT_GUARD

const string SLOT_GUARD = "guard"

◆ SLOT_GUARD_EXTRA_BITS

const string SLOT_GUARD_EXTRA_BITS = "extra-bits"

◆ SLOT_GUARD_POSITION

const string SLOT_GUARD_POSITION = "pos"

◆ SLOT_NAME

const string SLOT_NAME = "name"

Definition at line 103 of file BEMSerializer.cc.

Referenced by BEMSerializer::moveSlotToFile(), and BEMSerializer::moveSlotToOM().

◆ SLOT_POSITION

const string SLOT_POSITION = "pos"

Definition at line 104 of file BEMSerializer.cc.

Referenced by BEMSerializer::moveSlotToFile(), and BEMSerializer::moveSlotToOM().

◆ SLOT_SOURCE

const string SLOT_SOURCE = "source"

◆ SOCKET

const string SOCKET = "socket"

◆ SOCKET_CODE_TABLE

const string SOCKET_CODE_TABLE = "map-ports"

◆ SOCKET_MAP

const string SOCKET_MAP = "map"

◆ SOCKET_MAP_CODES

const string SOCKET_MAP_CODES = "codes"

◆ SOCKET_MAP_EXTRA_BITS

const string SOCKET_MAP_EXTRA_BITS = "extra-bits"

◆ SOCKET_NAME

const string SOCKET_NAME = "name"

◆ SOURCE_BRIDGE

const string SOURCE_BRIDGE = "bridge"

◆ SOURCE_BRIDGE_MAP

const string SOURCE_BRIDGE_MAP = "map"

◆ SOURCE_BRIDGE_MAP_EXTRA_BITS

const string SOURCE_BRIDGE_MAP_EXTRA_BITS = "extra-bits"

◆ SOURCE_BRIDGE_NAME

const string SOURCE_BRIDGE_NAME = "name"

◆ SOURCE_IMMEDIATE

const string SOURCE_IMMEDIATE = "immediate"

◆ SOURCE_IMMEDIATE_MAP

const string SOURCE_IMMEDIATE_MAP = "map"

Definition at line 137 of file BEMSerializer.cc.

Referenced by BEMSerializer::sourceFieldToFile().

◆ SOURCE_IMMEDIATE_MAP_EXTRA_BITS

const string SOURCE_IMMEDIATE_MAP_EXTRA_BITS = "extra-bits"

◆ SOURCE_IMMEDIATE_WIDTH

const string SOURCE_IMMEDIATE_WIDTH = "width"

◆ SRC_DST_EXTRA_BITS

const string SRC_DST_EXTRA_BITS = "extra-bits"

◆ SRC_DST_ID_POS

const string SRC_DST_ID_POS = "id-pos"

◆ SRC_DST_NO_OPERATION

const string SRC_DST_NO_OPERATION = "no-operation"

◆ SRC_DST_NO_OPERATION_MAP

const string SRC_DST_NO_OPERATION_MAP = "map"

Definition at line 145 of file BEMSerializer.cc.

Referenced by BEMSerializer::slotFieldToFile().

◆ SRC_DST_NO_OPERATION_MAP_EXTRA_BITS

const string SRC_DST_NO_OPERATION_MAP_EXTRA_BITS = "extra-bits"

◆ SRC_DST_POSITION

const string SRC_DST_POSITION = "pos"

◆ TRUE

const string TRUE = "true"