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

Subversion Repositories scarm

[/] [scarm/] [branches/] [release_0_1/] [src/] [scDP1.h] - Blame information for rev 5

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

Line No. Rev Author Line
1 5 zhong
// scDP1.h: interface for the scDP1 class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#if !defined(AFX_SCDP1_H__4AB5E1E4_AAD4_11D6_BB1C_000000000000__INCLUDED_)
6
#define AFX_SCDP1_H__4AB5E1E4_AAD4_11D6_BB1C_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 DP1_MASK=0x0E000000;  //data process
18
const uint32_t DP1_SIG= 0x02000000;
19
class scDP1 : public scARMInstruction
20
{
21
 typedef struct DP1TAG
22
{
23
  uint32_t imm    : 8;
24
  uint32_t rot    : 4;
25
  uint32_t rd     : 4;
26
  uint32_t rn     : 4;
27
  uint32_t set    : 1;
28
  uint32_t opcode : 4;
29
  uint32_t hash   : 1;
30
  uint32_t pad    : 2;
31
  uint32_t cond   : 4;
32
} DPI1;
33
private:
34
        static const char* kind_string ;
35
        DPI1 ir;
36
public:
37
        bool is_branch();
38
        bool set();
39
        bool is_mult();
40
        bool load();
41
        bool wb();
42
        bool pre();
43
        REGS Rn();
44
        bool is_rs();
45
        bool is_ls();
46
        bool is_shift();
47
        SHIFT shift_type();
48
        COND cond();
49
        OPCODE op();
50
        uint32_t dist();
51
        bool is_imm();
52
        REGS Rd();
53
        uint32_t B();
54
        uint32_t A();
55
 
56
        const char* kind();
57
        scDP1(uint32_t);
58
        virtual ~scDP1();
59
 
60
};
61
 
62
#endif // !defined(AFX_SCDP1_H__4AB5E1E4_AAD4_11D6_BB1C_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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