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

Subversion Repositories scarm

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 zhong
///////////////////////////////////////////////////////////////////////////////
2
// This program is free software; you can redistribute it and/or
3
// modify it under the terms of the GNU General Public License
4
// as published by the Free Software Foundation; either version 2
5
// of the License, or (at your option) any later version.
6
//
7
// This program is distributed in the hope that it will be useful,
8
// but WITHOUT ANY WARRANTY; without even the implied warranty of
9
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
// GNU General Public License for more details.
11
//
12
// You should have received a copy of the GNU General Public License
13
// along with this program; if not, write to the Free Software
14
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
//////////////////////////////////////////////////////////////////////
16
 
17
///////////////////////////////////////////////////////////////////              
18
//          
19
//  Original Author: Allen Tao Zhong,
20
//  University of Electronic Science and Technology in China
21
//  email: zhong@opencores.org
22
//  info   This is a SystemC ARM model
23
// scARMMult.h: interface for the scARMMult class.
24
//
25
//////////////////////////////////////////////////////////////////////
26
#ifndef MULTINSTRUCT_H
27
#define MULTINSTRUCT_H
28
#include "scARMInstruction.h"
29
/* Multiple register transfer */
30
typedef struct MRTAG
31
{
32
  uint32_t list  : 16;
33
  uint32_t rn    : 4;
34
  uint32_t ls    : 1;
35
  uint32_t wb    : 1;
36
  uint32_t s     : 1;
37
  uint32_t u     : 1;
38
  uint32_t p     : 1;
39
  uint32_t pad   : 3;
40
  uint32_t cond  : 4;
41
} MRT;
42
#define MRT_MASK     0x0E000000
43
#define MRT_SIG      0x08000000
44
 
45
/* Multiply instruction */
46
typedef struct MTAG
47
{
48
  uint32_t rm     : 4;
49
  uint32_t pad2   : 4;
50
  uint32_t rs     : 4;
51
  uint32_t rn     : 4;
52
  uint32_t rd     : 4;
53
  uint32_t set    : 1;
54
  uint32_t opcode : 3;
55
  uint32_t pad    : 4;
56
  uint32_t cond   : 4;
57
} MULT;
58
#define  MULT_MASK   0x0F0000F0
59
#define  MULT_SIG    0x00000090
60
 
61
 
62
class scARMMult : public scARMInstruction
63
{
64
public:
65
        scARMMult();
66
        virtual ~scARMMult();
67
 
68
};
69
#endif

powered by: WebSVN 2.1.0

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