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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [top.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
// top.h: interface for the top 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
#if !defined(AFX_TOP_H__14DB71C4_A9A3_11D6_BB19_000000000000__INCLUDED_)
18
#define AFX_TOP_H__14DB71C4_A9A3_11D6_BB19_000000000000__INCLUDED_
19
 
20
#if _MSC_VER > 1000
21
#pragma once
22
#endif // _MSC_VER > 1000
23
#include <systemc.h>
24
#include "scARMSoC.h"
25
#include "scRAM.h"
26
#include "scCoprocessor.h"
27
#include "sc_cp_ch.h"
28
#include "sc_mem_ch.h"
29
class top : public sc_module
30
{
31
private:
32
    sc_clock CLK;
33
        sc_link_mp<bool> nRW;
34
    sc_link_mp<uint32_t> l_n_addr;
35
        sc_link_mp<uint32_t> l_n_data;
36
        sc_cp_ch   cp_ch;
37
        //sc_mem_ch  mem_ch;
38
private:
39
        scCoprocessor cp;
40
    scRAM ram;
41
    scARMSoC processor;
42
 
43
 
44
public:
45
        bool init(char * file_name);
46
        top(sc_module_name);
47
        virtual ~top();
48
 
49
};
50
 
51
#endif // !defined(AFX_TOP_H__14DB71C4_A9A3_11D6_BB19_000000000000__INCLUDED_)

powered by: WebSVN 2.1.0

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