head	1.1;
branch	1.1.1;
access;
symbols
	ver0_1:1.1.1.1
	release_0_1:1.1.1;
locks; strict;
comment	@// @;


1.1
date	2002.09.05.11.31.07;	author zhong;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.09.05.11.31.07;	author zhong;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@// sc_mem_ch.cpp: implementation of the sc_mem_ch class.
//
//////////////////////////////////////////////////////////////////////

#include "sc_mem_ch.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
bool sc_mem_ch::write_mem(uint32_t addr,uint32_t data)
{
    nRW=1;
    A=addr;
	D=data;
 return true;

}
uint32_t sc_mem_ch::read_mem(uint32_t addr)
{

    nRW=0;
	cout<<"read & mem"<<endl;
    A=addr;
	cout<<"return data"<<endl;
	return data;

}
sc_mem_ch::sc_mem_ch(sc_module_name name_):sc_module(name_)
{

         SC_SLAVE(read,D);
	
}

sc_mem_ch::~sc_mem_ch()
{

}



void sc_mem_ch::read()
{
	cout<<"data deliver"<<endl;
       data=D;
}
@


1.1.1.1
log
@v0_1
@
text
@@
