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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scNOOP.cpp] - Blame information for rev 10

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

Line No. Rev Author Line
1 5 zhong
///////////////////////////////////////////////////////////////////////////////
2
// This program is free software; you can redistribute it and/or
3
// modify it under the terms of the GNU General Public License
4
// as published by the Free Software Foundation; either version 2
5
// of the License, or (at your option) any later version.
6
//
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
// GNU General Public License for more details.
11
//
12
// You should have received a copy of the GNU General Public License
13
// along with this program; if not, write to the Free Software
14
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
//////////////////////////////////////////////////////////////////////
16
 
17
///////////////////////////////////////////////////////////////////              
18
//          
19
//  Original Author: Allen Tao Zhong,
20
//  University of Electronic Science and Technology in China
21
//  email: zhong@opencores.org
22
//  info   This is a SystemC ARM model
23
// scNOOP.cpp: implementation of the scNOOP class.
24
//
25
//////////////////////////////////////////////////////////////////////
26
 
27
#include "scNOOP.h"
28
 
29
//////////////////////////////////////////////////////////////////////
30
// Construction/Destruction
31
//////////////////////////////////////////////////////////////////////
32
 
33
scNOOP::scNOOP()
34
{
35
  scNOOP(0xe1a00000);
36
}
37
scNOOP::scNOOP(uint32_t i)
38
{
39
 ir.rm=i;
40
  ir.pad2=(i>>4);
41
  ir.type=(i>>5);
42
  ir.shift=(i>>7);
43
  ir.rd=(i>>12);
44
  ir.rn=(i>>16);
45
  ir.set=(i>>20);
46
  ir.opcode=(i>>21);
47
  ir.hash=(i>>25);
48
  ir.pad=(i>>26);
49
  ir.cond=(i>>28);
50
 
51
}
52
const char* scNOOP::kind_string = "NOP";
53
scNOOP::~scNOOP()
54
{
55
 
56
}
57
 
58
const char* scNOOP::kind()
59
{
60
  return kind_string;
61
}
62
 
63
bool scNOOP::is_mult()
64
{
65
 return false;
66
}
67
 
68
bool scNOOP::is_shift()
69
{
70
 return false;
71
}
72
 
73
OPCODE scNOOP::op()
74
{
75
 return OP_MOV;
76
}
77
 
78
REGS scNOOP::Rd()
79
{
80
  return REGS(0);
81
}
82
 
83
REGS scNOOP::Rn()
84
{
85
 return REGS(0);
86
}
87
 
88
bool scNOOP::is_ls()
89
{
90
  return false;
91
}
92
 
93
uint32_t scNOOP::dist()
94
{
95
 return 0;
96
}
97
 
98
uint32_t scNOOP::A()
99
{
100
  return 0;
101
}
102
 
103
uint32_t scNOOP::B()
104
{
105
  return 0;
106
}
107
 
108
bool scNOOP::pre()
109
{
110
  return false;
111
}
112
 
113
bool scNOOP::load()
114
{
115
 return false;
116
}
117
 
118
bool scNOOP::wb()
119
{
120
 return false;
121
}
122
 
123
COND scNOOP::cond()
124
{
125
  return C_AL;
126
}
127
 
128
SHIFT scNOOP::shift_type()
129
{
130
 return SHIFT(0);
131
}
132
 
133
bool scNOOP::is_imm()
134
{
135
 return false;
136
}
137
 
138
bool scNOOP::is_rs()
139
{
140
 return false;
141
}
142
 
143
bool scNOOP::is_branch()
144
{
145
 return false;
146
}
147
 
148
bool scNOOP::set()
149
{
150
  return false;
151
}

powered by: WebSVN 2.1.0

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