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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scMult.cpp] - Blame information for rev 8

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 zhong
// scMult.cpp: implementation of the scMult class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#include "scMult.h"
6
 
7
//////////////////////////////////////////////////////////////////////
8
// Construction/Destruction
9
//////////////////////////////////////////////////////////////////////
10
 
11
scMult::scMult(uint32_t i)
12
{
13
        cout<<"uncomplete scMult"<<endl;
14
}
15
 
16
scMult::~scMult()
17
{
18
 
19
}
20
const char* scMult::kind_string="Multiply";
21
const char* scMult::kind()
22
{
23
  return kind_string;
24
}
25
 
26
uint32_t scMult::A()
27
{
28
 
29
  if(ir.set==1)
30
  {
31
        return 0;
32
  }else
33
  {
34
     return ir.rn;
35
  }
36
 
37
 
38
}
39
 
40
REGS scMult::Rd()
41
{
42
  return REGS(ir.rd);
43
}
44
 
45
bool scMult::is_mult()
46
{
47
  return true;
48
}
49
 
50
uint32_t scMult::B()
51
{
52
  return ir.rm;
53
}
54
 
55
uint32_t scMult::dist()
56
{
57
  return ir.rs;
58
}
59
 
60
bool scMult::is_rs()
61
{
62
  return true;
63
}
64
 
65
 
66
OPCODE scMult::op()
67
{
68
  return OPCODE(ir.opcode);
69
}

powered by: WebSVN 2.1.0

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