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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scCDP.h] - Blame information for rev 10

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

Line No. Rev Author Line
1 5 zhong
// scCDP.h: interface for the scCDP class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#if !defined(AFX_SCCDP_H__D6B3B664_B347_11D6_BB34_000000000000__INCLUDED_)
6
#define AFX_SCCDP_H__D6B3B664_B347_11D6_BB34_000000000000__INCLUDED_
7
 
8
#include "scALU.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 "scBarrelShifter.h"    // Added by ClassView
17
const uint32_t CDP_MASK  =  0x0F000010;
18
const uint32_t CDP_SIG   =  0x0E000000;
19
 
20
class scCDP : public scARMInstruction
21
{
22
        typedef struct CDPTAG
23
{
24
  uint32_t crm   : 4;
25
  uint32_t pad2  : 1;
26
  uint32_t cop2  : 3;
27
  uint32_t cpn   : 4;
28
  uint32_t crd   : 4;
29
  uint32_t crn   : 4;
30
  uint32_t cop1  : 4;
31
  uint32_t pad   : 4;
32
  uint32_t cond  : 4;
33
} CDP;
34
        CDP ir;
35
 
36
 static const char* kind_string;
37
public:
38
        bool is_imm();
39
        SHIFT shift_type();
40
        uint32_t B();
41
        uint32_t A();
42
        OPCODE op();
43
        bool wb();
44
        bool set();
45
        bool is_branch();
46
        bool is_rs();
47
        bool is_ls();
48
        REGS Rn();
49
        REGS Rd();
50
        uint32_t dist();
51
        bool pre();
52
        bool load();
53
        bool is_shift();
54
        bool is_mult();
55
        COND cond();
56
        const char* kind();
57
        scCDP(uint32_t);
58
        virtual ~scCDP();
59
 
60
};
61
 
62
#endif // !defined(AFX_SCCDP_H__D6B3B664_B347_11D6_BB34_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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