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

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [top.cpp] - 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.cpp: implementation of the top class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#include "top.h"
6
 
7
//////////////////////////////////////////////////////////////////////
8
// Construction/Destruction
9
//////////////////////////////////////////////////////////////////////
10
 
11
top::top(sc_module_name name_):sc_module(name_)
12
,CLK("clock1",10,0.1,1,true)
13
,ram("ram")
14
,processor("cpu")
15
,cp("cp")
16
,cp_ch("cp_ch")
17
//,mem_ch("mem_ch")
18
{
19
         cp(cp_ch);
20
     ram(CLK,nRW,l_n_addr,l_n_data);
21
         processor(CLK,nRW,l_n_addr,l_n_data);
22
}
23
 
24
top::~top()
25
{
26
 
27
}
28
 
29
bool top::init(char *file_name)
30
{
31
    ram.load_program(file_name);
32
        return true;
33
}

powered by: WebSVN 2.1.0

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