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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scNOOP.h] - Blame information for rev 8

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.h: interface for the scNOOP class.
24
//
25
//////////////////////////////////////////////////////////////////////
26
 
27
#if !defined(AFX_SCNOOP_H__5BF0CC54_B170_11D6_BB2F_000000000000__INCLUDED_)
28
#define AFX_SCNOOP_H__5BF0CC54_B170_11D6_BB2F_000000000000__INCLUDED_
29
 
30
#if _MSC_VER > 1000
31
#pragma once
32
#endif // _MSC_VER > 1000
33
#include "scARMInstruction.h"
34
#include "scALU.h"      // Added by ClassView
35
#include "scRegisterFile.h"     // Added by ClassView
36
#include "scTypes.h"    // Added by ClassView
37
#include "scBarrelShifter.h"    // Added by ClassView
38
const uint32_t NOP_MASK =   0xe1a00000;
39
const uint32_t NOP_SIG  =   0xe1a00000;
40
class scNOOP : public scARMInstruction
41
{
42
                typedef struct DP2TAG
43
{
44
  uint32_t rm     : 4;
45
  uint32_t pad2   : 1;
46
  uint32_t type   : 2;
47
  uint32_t shift  : 5;
48
  uint32_t rd     : 4;
49
  uint32_t rn     : 4;
50
  bool_t   set    : 1;
51
  uint32_t opcode : 4;
52
  uint32_t hash   : 1;
53
  uint32_t pad    : 2;
54
  uint32_t cond   : 4;
55
} DPI2;
56
                DPI2 ir;
57
public:
58
        bool set();
59
        bool is_branch();
60
        bool is_rs();
61
        bool is_imm();
62
        SHIFT shift_type();
63
        COND cond();
64
        bool wb();
65
        bool load();
66
        bool pre();
67
        uint32_t B();
68
        uint32_t A();
69
        uint32_t dist();
70
        bool is_ls();
71
        REGS Rn();
72
        REGS Rd();
73
        OPCODE op();
74
        bool is_shift();
75
        bool is_mult();
76
        const char* kind();
77
        static const char* kind_string;
78
        scNOOP();
79
        scNOOP(uint32_t);
80
        virtual ~scNOOP();
81
private:
82
 
83
 
84
};
85
 
86
#endif // !defined(AFX_SCNOOP_H__5BF0CC54_B170_11D6_BB2F_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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