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

Subversion Repositories scarm

[/] [scarm/] [branches/] [release_0_1/] [src/] [scMRT.h] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 zhong
// scMRT.h: interface for the scMRT 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_SCMRT_H__E3CD9FD4_AD93_11D6_BB24_000000000000__INCLUDED_)
18
#define AFX_SCMRT_H__E3CD9FD4_AD93_11D6_BB24_000000000000__INCLUDED_
19
 
20
#if _MSC_VER > 1000
21
#pragma once
22
#endif // _MSC_VER > 1000
23
#include "scARMInstruction.h"
24
#include "scTypes.h"    // Added by ClassView
25
#include "scALU.h"      // Added by ClassView
26
#include "scBarrelShifter.h"    // Added by ClassView
27
#include "scRegisterFile.h"     // Added by ClassView
28
const uint32_t MRT_MASK =    0x0E000000;
29
const uint32_t MRT_SIG  =    0x08000000;
30
class scMRT  :public scARMInstruction
31
{
32
/* Multiple register transfer */
33
typedef struct MRTAG
34
{
35
  uint32_t list  : 16;
36
  uint32_t rn    : 4;
37
  uint32_t ls    : 1;
38
  uint32_t wb    : 1;
39
  uint32_t s     : 1;
40
  uint32_t u     : 1;
41
  uint32_t p     : 1;
42
  uint32_t pad   : 3;
43
  uint32_t cond  : 4;
44
} MRT;
45
 
46
  MRT ir;
47
  static const char* kind_string_l ;
48
  static const char* kind_string_s ;
49
public:
50
        bool up();
51
        bool set();
52
        bool is_mrt();
53
        bool is_branch();
54
        REGS Rn();
55
        bool load();
56
        uint32_t dist();
57
        REGS Rd();
58
        SHIFT shift_type();
59
        bool is_imm();
60
        bool wb();
61
        OPCODE op();
62
        bool pre();
63
        COND cond();
64
        uint32_t B();
65
        uint32_t A();
66
        bool is_shift();
67
        bool is_word();
68
        bool is_rs();
69
        bool is_mult();
70
        bool is_ls();
71
        const char* kind();
72
        scMRT(uint32_t i);
73
        virtual ~scMRT();
74
 
75
};
76
 
77
#endif // !defined(AFX_SCMRT_H__E3CD9FD4_AD93_11D6_BB24_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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