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

Subversion Repositories scarm

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 zhong
// scDP2.h: interface for the scDP2 class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#if !defined(AFX_SCDP2_H__FC5E6444_AB29_11D6_BB1E_000000000000__INCLUDED_)
6
#define AFX_SCDP2_H__FC5E6444_AB29_11D6_BB1E_000000000000__INCLUDED_
7
 
8
#include "scBarrelShifter.h"    // Added by ClassView
9
#if _MSC_VER > 1000
10
#pragma once
11
#endif // _MSC_VER > 1000
12
 
13
#include "..\SRC\scARMInstruction.h"
14
#include "scTypes.h"    // Added by ClassView
15
#include "scRegisterFile.h"     // Added by ClassView
16
#include "scALU.h"      // Added by ClassView
17
const uint32_t DP2_MASK=0x0E000010;
18
const uint32_t DP2_SIG= 0x00000000;
19
class scDP2 : public scARMInstruction
20
{
21
        typedef struct DP2TAG
22
{
23
  uint32_t rm     : 4;
24
  uint32_t pad2   : 1;
25
  uint32_t type   : 2;
26
  uint32_t shift  : 5;
27
  uint32_t rd     : 4;
28
  uint32_t rn     : 4;
29
  bool_t   set    : 1;
30
  uint32_t opcode : 4;
31
  uint32_t hash   : 1;
32
  uint32_t pad    : 2;
33
  uint32_t cond   : 4;
34
} DPI2;
35
private:
36
        DPI2 ir;
37
        static const char* kind_string ;
38
public:
39
        bool set();
40
        bool is_branch();
41
        bool pre();
42
        bool wb();
43
        bool load();
44
        bool is_mult();
45
        bool is_ls();
46
        REGS Rn();
47
        bool is_shift();
48
        SHIFT shift_type();
49
        COND cond();
50
        OPCODE op();
51
        bool is_rs();
52
        uint32_t dist();
53
        bool is_imm();
54
        REGS Rd();
55
        uint32_t B();
56
        uint32_t A();
57
        const char* kind();
58
        scDP2(uint32_t);
59
        virtual ~scDP2();
60
 
61
};
62
 
63
#endif // !defined(AFX_SCDP2_H__FC5E6444_AB29_11D6_BB1E_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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