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

Subversion Repositories scarm

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 zhong
// scARMInstruction.h: interface for the scARMInstruction class.
2
/*                            -------------------
3
    begin                : Oct 2 2002
4
    copyright            : (C) 2002 UESTC
5
    author               : Zhong Tao
6
    email                : zhong@opencores.org
7
 ***************************************************************************/
8
 
9
/***************************************************************************
10
 *                                                                         *
11
 *   This program is free software; you can redistribute it and/or modify  *
12
 *   it under the terms of the GNU General Public License as published by  *
13
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 *   (at your option) any later version.                                   *
15
 *                                                                         *
16
 ***************************************************************************/
17
#if !defined(AFX_SCARMINSTRUCTION_H__9BF2A924_AA7B_11D6_BB1A_000000000000__INCLUDED_)
18
#define AFX_SCARMINSTRUCTION_H__9BF2A924_AA7B_11D6_BB1A_000000000000__INCLUDED_
19
 
20
#include "scBarrelShifter.h"    // Added by ClassView
21
#if _MSC_VER > 1000
22
#pragma once
23
#endif // _MSC_VER > 1000
24
#include "scTypes.h"
25
#include "scRegisterFile.h"     // Added by ClassView
26
#include "scALU.h"      // Added by ClassView
27
#include "scBarrelShifter.h"
28
// used to package the different behavoir of the different instruciton.
29
 
30
 
31
class scARMInstruction
32
{
33
 
34
        static const char* kind_string;
35
public:
36
        virtual bool up();
37
        virtual bool is_link();
38
        virtual bool is_mrt();
39
        virtual bool set();
40
        virtual bool is_branch();
41
        virtual bool is_ls();
42
        virtual bool is_word();
43
        virtual REGS Rn();
44
        virtual bool load();
45
        virtual bool wb();
46
        virtual bool pre();
47
        virtual bool is_shift();
48
        virtual bool is_mult();
49
        virtual bool is_rs();
50
        virtual bool is_imm();
51
        virtual uint32_t dist(); //return rs
52
        virtual enum SHIFT shift_type();
53
        virtual COND cond();
54
        virtual OPCODE op();
55
        virtual REGS Rd();
56
        virtual uint32_t B();//return rn
57
        virtual uint32_t A();//return rm
58
        virtual const char* kind();
59
    scARMInstruction();
60
        virtual ~scARMInstruction();
61
 
62
};
63
 
64
#endif // !defined(AFX_SCARMINSTRUCTION_H__9BF2A924_AA7B_11D6_BB1A_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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