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

Subversion Repositories scarm

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 zhong
// scMEM.cpp: implementation of the scMEM class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#include "scMEM.h"
6
 
7
//////////////////////////////////////////////////////////////////////
8
// Construction/Destruction
9
//////////////////////////////////////////////////////////////////////
10
 
11
 
12
scMEM::~scMEM()
13
{
14
 
15
}
16
 
17
void scMEM::entry()
18
{
19
  sc_time local_time = sc_time_stamp();
20
  cout<<"MEMtime="<<local_time<<"--"<<endl;
21
    out_Rd=in_Rd;
22
    out_b_Flush=in_b_Branch;
23
        bool_t temp=in_b_Branch;
24
    if(in_b_Branch==1)//if 
25
    {
26
                out_n_NPC=in_n_ALUOutput;
27
                out_n_MEMtoWB=0;
28
        }
29
        if(temp==0)
30
        {
31
                //decide 
32
        out_n_Addr=in_n_ALUOutput;
33
                s_n_LMD=inout_n_Data;
34
 
35
        }
36
 
37
}
38
 

powered by: WebSVN 2.1.0

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