OpenASIP  2.0
PIGTextGenerator.cc
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file PIGTextGenerator.cc
26  *
27  * Implementation of PIGTextGenerator class.
28  *
29  * @author Lasse Laasonen 2005 (lasse.laasonen-no.spam-tut.fi)
30  * @note rating: red
31  */
32 
33 #include "PIGTextGenerator.hh"
34 
35 /**
36  * The constructor.
37  */
40  "Encoding for instruction template '%1%' is missing from BEM.");
42  "Empty instruction template missing in machine.");
44  "BEM defines a move slot for bus '%1%' which does not exist "
45  "in the machine.");
47  "BEM defines an immediate slot that is not used by any "
48  "instruction template of the machine.");
50  "BEM does not define an encoding for always-true guard "
51  "expression for bus '%1%'.");
53  "BEM does not define an encoding for '%1%' FU guard expression "
54  "of port '%2%' of function unit '%3%'.");
56  "BEM does not define an encoding for '%1%' GPR guard expression "
57  "of register '%2%' of register file '%3%'.");
59  "BEM does not define an encoding for NOP on bus '%1%'.");
61  "BEM does not define an encoding for socket '%1%' at the %2% "
62  "of bus '%3%'.");
64  "BEM does not define an encoding for port of immediate unit "
65  "'%1%' which is connected to socket '%2%', in move slot '%3%'.");
67  "BEM does not define an encoding for port of register file "
68  "'%1%' which is connected to socket '%2%', in move slot '%3%'.");
70  "BEM does not define an encoding for opcode setting port of "
71  "function unit '%1%' for operation '%2%'.");
73  "Osal operation for operation code name '%1%' in function unit "
74  "'%2%' was not found.");
76  "BEM does not define an encoding for port '%1%' of function "
77  "unit '%2%' which is connected to socket '%3%'.");
79  "BEM does not define an encoding for immediate in the source "
80  "field of bus '%1%'.");
82  "File '%1%' not found.");
83 }
84 
85 
86 /**
87  * The destructor.
88  */
90 }
PIGTextGenerator::TXT_SOCKET_ENCODING_MISSING
@ TXT_SOCKET_ENCODING_MISSING
Definition: PIGTextGenerator.hh:55
PIGTextGenerator::TXT_OSAL_OC_MISSING
@ TXT_OSAL_OC_MISSING
Definition: PIGTextGenerator.hh:59
PIGTextGenerator::TXT_RF_PORT_CODE_MISSING
@ TXT_RF_PORT_CODE_MISSING
Definition: PIGTextGenerator.hh:57
PIGTextGenerator::TXT_GPR_GUARD_ENCODING_MISSING
@ TXT_GPR_GUARD_ENCODING_MISSING
Definition: PIGTextGenerator.hh:53
PIGTextGenerator::TXT_FILE_NOT_FOUND
@ TXT_FILE_NOT_FOUND
Definition: PIGTextGenerator.hh:62
PIGTextGenerator::TXT_IU_PORT_CODE_MISSING
@ TXT_IU_PORT_CODE_MISSING
Definition: PIGTextGenerator.hh:56
Texts::TextGenerator::addText
virtual void addText(int textId, const std::string &templateString)
Definition: TextGenerator.cc:118
PIGTextGenerator::TXT_BEM_DEFINES_SLOT_FOR_NONEXISTING_BUS
@ TXT_BEM_DEFINES_SLOT_FOR_NONEXISTING_BUS
Definition: PIGTextGenerator.hh:49
PIGTextGenerator::TXT_FU_PORT_CODE_MISSING
@ TXT_FU_PORT_CODE_MISSING
Definition: PIGTextGenerator.hh:60
PIGTextGenerator.hh
PIGTextGenerator::TXT_EMPTY_ITEMP_MISSING
@ TXT_EMPTY_ITEMP_MISSING
Definition: PIGTextGenerator.hh:48
PIGTextGenerator::TXT_IMMEDIATE_ENCODING_MISSING
@ TXT_IMMEDIATE_ENCODING_MISSING
Definition: PIGTextGenerator.hh:61
PIGTextGenerator::TXT_FU_OC_PORT_CODE_MISSING
@ TXT_FU_OC_PORT_CODE_MISSING
Definition: PIGTextGenerator.hh:58
PIGTextGenerator::TXT_NOP_ENCODING_MISSING
@ TXT_NOP_ENCODING_MISSING
Definition: PIGTextGenerator.hh:54
PIGTextGenerator::TXT_BEM_DEFINES_IMM_SLOT_THAT_IS_NEVER_USED
@ TXT_BEM_DEFINES_IMM_SLOT_THAT_IS_NEVER_USED
Definition: PIGTextGenerator.hh:50
PIGTextGenerator::TXT_TEMPLATE_ENCODING_MISSING
@ TXT_TEMPLATE_ENCODING_MISSING
Definition: PIGTextGenerator.hh:47
PIGTextGenerator::PIGTextGenerator
PIGTextGenerator()
Definition: PIGTextGenerator.cc:38
PIGTextGenerator::TXT_FU_GUARD_ENCODING_MISSING
@ TXT_FU_GUARD_ENCODING_MISSING
Definition: PIGTextGenerator.hh:52
PIGTextGenerator::TXT_ALWAYS_TRUE_GUARD_ENCODING_MISSING
@ TXT_ALWAYS_TRUE_GUARD_ENCODING_MISSING
Definition: PIGTextGenerator.hh:51
PIGTextGenerator::~PIGTextGenerator
virtual ~PIGTextGenerator()
Definition: PIGTextGenerator.cc:89