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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [components/] [mux/] [scPCMux.h] - Blame information for rev 2

Go to most recent revision | 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
//   
24
//
25
///////////////////////////////////////////////////////////////////////////////
26
// scPCMux.h: interface for the scPCMux class.
27
//
28
//////////////////////////////////////////////////////////////////////
29
 
30
 
31
#include <systemc.h>
32
#include "scTypes.h"
33
 
34
class scPCMux : public sc_module
35
{
36
public:
37
    sc_out<uint32_t> out_n_PC;
38
        sc_in<bool_t>    in_b_Branch;
39
        sc_in<uint32_t>  in_n_NPC;
40
        sc_in<uint32_t>  in_n_ALUOut;
41
 
42
 
43
private:
44
        sc_signal<uint32_t> s_n_PC;
45
 
46
public:
47
        SC_HAS_PROCESS(scPCMux);
48
        scPCMux(const sc_module_name name_):sc_module(name_)
49
        {
50
       SC_METHOD(entry);
51
           sensitive<<in_n_NPC<<in_n_ALUOut;
52
        }
53
        virtual ~scPCMux();
54
private:
55
 
56
        void entry(void);
57
};

powered by: WebSVN 2.1.0

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