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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scCR.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
// scCR.h: interface for the scCR 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_SCCR_H__7F1E5937_AE4E_11D6_BB28_000000000000__INCLUDED_)
18
#define AFX_SCCR_H__7F1E5937_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 "scRegisterFile.h"     // Added by ClassView
26
#include "scALU.h"      // Added by ClassView
27
#include "scTypes.h"    // Added by ClassView
28
const uint32_t CRT_MASK  =  0x0F000010;
29
const uint32_t CRT_SIG  =   0x0E000010;
30
class scCR : public scARMInstruction
31
{
32
/* Coprocessor register transfers */
33
typedef struct CRTAG
34
{
35
  uint32_t crm   : 4;
36
  uint32_t pad2  : 1;
37
  uint32_t cop2  : 3;
38
  uint32_t cpn   : 4;
39
  uint32_t rd    : 4;
40
  uint32_t crn   : 4;
41
  uint32_t ls    : 1;
42
  uint32_t cop1  : 3;
43
  uint32_t pad   : 4;
44
  uint32_t cond  : 4;
45
} CRT;
46
 CRT ir;
47
 static const char* kind_string;
48
public:
49
        uint32_t B();
50
        uint32_t A();
51
        bool is_imm();
52
        bool pre();
53
        bool wb();
54
        COND cond();
55
        REGS Rn();
56
        bool is_rs();
57
        bool is_ls();
58
        REGS Rd();
59
        bool is_shift();
60
        bool is_mult();
61
        const char* kind();
62
        scCR(uint32_t);
63
        virtual ~scCR();
64
 
65
};
66
 
67
#endif // !defined(AFX_SCCR_H__7F1E5937_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.