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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scSWI.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
// scSWI.cpp: implementation of the scSWI class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#include "scSWI.h"
6
 
7
//////////////////////////////////////////////////////////////////////
8
// Construction/Destruction
9
//////////////////////////////////////////////////////////////////////
10
 
11
scSWI::scSWI(uint32_t i)
12
{
13
  ir.val=i;
14
  ir.pad=i>>24;
15
  ir.cond=i>>28;
16
}
17
 
18
scSWI::~scSWI()
19
{
20
 
21
}
22
const char* scSWI::kind_string="SWI";
23
const char* scSWI::kind(){
24
  return kind_string;
25
}
26
 
27
REGS scSWI::Rd()
28
{
29
  return REGS(0);
30
}
31
 
32
uint32_t scSWI::A()
33
{
34
  return 0;
35
}
36
 
37
uint32_t scSWI::B()
38
{
39
 return V_SWI;
40
}
41
 
42
OPCODE scSWI::op()
43
{
44
 return OP_CMP;
45
}
46
 
47
COND scSWI::cond()
48
{
49
 //return COND(ir.cond);
50
 return COND(0xf);
51
}
52
 
53
bool scSWI::pre()
54
{
55
 return false;
56
}
57
 
58
REGS scSWI::Rn()
59
{
60
  return REGS(0);
61
}
62
 
63
bool scSWI::is_imm()
64
{
65
  return true;
66
}
67
 
68
bool scSWI::is_branch()
69
{
70
 return false;
71
}
72
 
73
uint32_t scSWI::dist()
74
{
75
 return 0;
76
}
77
 
78
bool scSWI::is_ls()
79
{
80
 return false;
81
}
82
 
83
bool scSWI::is_rs()
84
{
85
 return false;
86
}
87
 
88
bool scSWI::is_shift()
89
{
90
  return false;
91
}
92
 
93
bool scSWI::is_set()
94
{
95
 return false;
96
}
97
 
98
bool scSWI::load()
99
{
100
 return false;
101
}
102
 
103
bool scSWI::is_mult()
104
{
105
 return false;
106
}
107
 
108
bool scSWI::set()
109
{
110
  return false;
111
}
112
 
113
SHIFT scSWI::shift_type()
114
{
115
 return SHIFT(0);
116
}
117
 
118
bool scSWI::wb()
119
{
120
 return false;
121
}
122
 
123
void scSWI::function()
124
{
125
 
126
}

powered by: WebSVN 2.1.0

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