OpenCores
URL https://opencores.org/ocsvn/scarm/scarm/trunk

Subversion Repositories scarm

[/] [scarm/] [branches/] [release_0_1/] [src/] [scARMInstruction.cpp] - Blame information for rev 5

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 zhong
// scARMInstruction.cpp: implementation of the scARMInstruction class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
#include <systemc.h>
5
#include "scARMInstruction.h"
6
//#ilcude "scRegisterFile.h"
7
 
8
//////////////////////////////////////////////////////////////////////
9
// Construction/Destruction
10
//////////////////////////////////////////////////////////////////////
11
 
12
scARMInstruction::scARMInstruction()
13
{
14
 
15
}
16
 
17
scARMInstruction::~scARMInstruction()
18
{
19
 
20
}
21
const char* scARMInstruction::kind_string="ARMInstruction" ;
22
const char* scARMInstruction::kind()
23
{
24
   return kind_string;
25
}
26
 
27
uint32_t scARMInstruction::A()
28
{
29
        //return Rn
30
   cout<<"you should re-design your A() in sub class."<<endl;
31
   return 0;
32
}
33
 
34
uint32_t scARMInstruction::B()
35
{
36
        //return Rm
37
   cout<<"you should re-design your B() in sub class."<<endl;
38
   return 0;
39
}
40
 
41
REGS scARMInstruction::Rd()
42
{
43
   cout<<"you should re-design your Rd() in sub class."<<endl;
44
   return REGS(0);
45
}
46
 
47
OPCODE scARMInstruction::op()
48
{
49
    cout<<"you should re-design your op() in sub class."<<endl;
50
        return OPCODE(4);
51
}
52
 
53
COND scARMInstruction::cond()
54
{
55
     cout<<"you should re-design your cond() in sub class."<<endl;
56
        return C_AL;
57
}
58
 
59
SHIFT scARMInstruction::shift_type()
60
{
61
    cout<<"you should re-design your shift_type() in sub class."<<endl;
62
        return SHIFT(0);
63
}
64
 
65
uint32_t scARMInstruction::dist()
66
{
67
        //return rs
68
    cout<<"you should re-design your dist() in sub class."<<endl;
69
        return 0;
70
}
71
 
72
bool scARMInstruction::is_imm()
73
{
74
    cout<<"you should re-design your is_imm() in sub class."<<endl;
75
        return true;
76
 
77
}
78
 
79
bool scARMInstruction::is_rs()
80
{
81
         cout<<"you should re-design your is_rs() in sub class."<<endl;
82
   return false;
83
}
84
 
85
bool scARMInstruction::is_mult()
86
{
87
         cout<<"you should re-design your is_mult() in sub class."<<endl;
88
   return false;
89
}
90
 
91
bool scARMInstruction::is_shift()
92
{
93
         cout<<"you should re-design your is_shift() in sub class."<<endl;
94
  return false;
95
}
96
 
97
bool scARMInstruction::pre()
98
{
99
           cout<<"you should re-design your pre() in sub class."<<endl;
100
  return 0;
101
}
102
 
103
bool scARMInstruction::wb()
104
{
105
           cout<<"you should re-design your wb() in sub class."<<endl;
106
  return true;
107
}
108
 
109
bool scARMInstruction::load()
110
{
111
           cout<<"you should re-design your load() in sub class."<<endl;
112
  return 0;
113
}
114
 
115
REGS scARMInstruction::Rn()
116
{
117
                   cout<<"you should re-design your Rn() in sub class."<<endl;
118
  return REGS(0);
119
}
120
 
121
bool scARMInstruction::is_word()
122
{
123
                   cout<<"you should re-design your is_word() in sub class."<<endl;
124
  return true;
125
}
126
 
127
bool scARMInstruction::is_ls()
128
{
129
 cout<<"you should re-design your is_ls() load/store in sub class."<<endl;
130
   return false;
131
}
132
 
133
bool scARMInstruction::is_branch()
134
{
135
 cout<<"you should re-design your is_branch() in sub class."<<endl;
136
   return false;
137
}
138
 
139
bool scARMInstruction::set()
140
{
141
         cout<<"you should re-design your set() in sub class."<<endl;
142
  return false;
143
}
144
 
145
bool scARMInstruction::is_link()
146
{
147
   return false;
148
}
149
bool scARMInstruction::is_mrt()
150
{
151
 
152
  return false;
153
}
154
 
155
bool scARMInstruction::up()
156
{
157
 return 1;
158
}

powered by: WebSVN 2.1.0

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