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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scMult.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
// scMult.h: interface for the scMult 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
 
18
#if !defined(AFX_SCMULT_H__8C326335_AB49_11D6_BB1E_000000000000__INCLUDED_)
19
#define AFX_SCMULT_H__8C326335_AB49_11D6_BB1E_000000000000__INCLUDED_
20
 
21
#if _MSC_VER > 1000
22
#pragma once
23
#endif // _MSC_VER > 1000
24
 
25
#include "..\SRC\scARMInstruction.h"
26
#include "scTypes.h"    // Added by ClassView
27
#include "scRegisterFile.h"     // Added by ClassView
28
#include "scALU.h"      // Added by ClassView
29
const uint32_t  MULT_MASK=   0x0F0000F0;
30
const uint32_t  MULT_SIG =   0x00000090;
31
 
32
class scMult : public scARMInstruction
33
{
34
        /* Multiply instruction */
35
typedef struct MTAG
36
{
37
  uint32_t rm     : 4;
38
  uint32_t pad2   : 4;
39
  uint32_t rs     : 4;
40
  uint32_t rn     : 4;
41
  uint32_t rd     : 4;
42
  uint32_t set    : 1;
43
  uint32_t opcode : 3;
44
  uint32_t pad    : 4;
45
  uint32_t cond   : 4;
46
 
47
} MULT;
48
        MULT ir;
49
        static const char* kind_string ;
50
public:
51
        OPCODE op();
52
        bool is_rs();
53
        uint32_t dist();
54
        uint32_t B();
55
        bool is_mult();
56
        REGS Rd();
57
        uint32_t A();
58
        const char* kind();
59
        scMult(uint32_t);
60
        virtual ~scMult();
61
 
62
};
63
 
64
#endif // !defined(AFX_SCMULT_H__8C326335_AB49_11D6_BB1E_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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