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

Subversion Repositories scarm

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 zhong
// scCD.h: interface for the scCD 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_SCCD_H__7F1E5936_AE4E_11D6_BB28_000000000000__INCLUDED_)
18
#define AFX_SCCD_H__7F1E5936_AE4E_11D6_BB28_000000000000__INCLUDED_
19
 
20
#if _MSC_VER > 1000
21
#pragma once
22
#endif // _MSC_VER > 1000
23
 
24
#include "..\SRC\scARMInstruction.h"
25
#include "scBarrelShifter.h"    // Added by ClassView
26
#include "scTypes.h"    // Added by ClassView
27
#include "scRegisterFile.h"     // Added by ClassView
28
#include "scALU.h"      // Added by ClassView
29
 
30
const uint32_t CDT_MASK=     0x0E000000;
31
const uint32_t CDT_SIG  =    0x0C000000;
32
class scCD : public scARMInstruction
33
{
34
        /* Coprocessor data transfers */
35
typedef struct CDTAG
36
{
37
  uint32_t offset : 8;
38
  uint32_t cpn    : 4;
39
  uint32_t crd    : 4;
40
  uint32_t rn     : 4;
41
  uint32_t ls     : 1;
42
  uint32_t wb     : 1;
43
  uint32_t n      : 1;
44
  uint32_t u      : 1;
45
  uint32_t p      : 1;
46
  uint32_t pad    : 3;
47
  uint32_t cond   : 4;
48
} CDT;
49
  CDT ir;
50
  static const char* kind_string;
51
public:
52
        bool set();
53
        bool is_rs();
54
        OPCODE op();
55
        bool load();
56
        bool wb();
57
        COND cond();
58
        uint32_t dist();
59
        bool is_ls();
60
        REGS Rn();
61
        REGS Rd();
62
        bool is_branch();
63
        bool pre();
64
        uint32_t B();
65
        uint32_t A();
66
        bool is_imm();
67
        bool is_shift();
68
        bool is_mult();
69
        SHIFT shift_type();
70
        const char* kind();
71
        scCD(uint32_t);
72
        virtual ~scCD();
73
 
74
};
75
 
76
#endif // !defined(AFX_SCCD_H__7F1E5936_AE4E_11D6_BB28_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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