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

Subversion Repositories scarm

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

Details | Compare with Previous | View Log

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