⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 businterfaceunit.h

📁 ppc750 system design simulator using system c
💻 H
字号:
/***************************************************************************                          Memory.h  -  description                             -------------------    begin                : Thu May 10 2001    copyright            : (C) 2001 Universite Paris Sud and CEA    author               : Gilles Mouchard    email                : gilles.mouchard@lri.fr, gilles.mouchard@.cea.fr ***************************************************************************/#ifndef __BUSINTERFACEUNIT_H__#define __BUSINTERFACEUNIT_H__#include <systemc.h>#include <common.h>/* Note : This is not really a bus interface. It simulate only memory accesses ! */const int PrimaryMemoryHashTableSize = 4096;const int SecondaryMemoryHashTableSize = 4;const UInt32 MemoryPageSize = 4096;struct MemoryPageTableEntry{	UInt32 addr;	struct MemoryPageTableEntry *next;	UInt8 *storage;};struct SecondaryMemoryHashTable{	MemoryPageTableEntry *pte[SecondaryMemoryHashTableSize];};SC_MODULE(BusInterfaceUnit){	sc_in<bool> inClock;		/* From Data Cache */	sc_in<bool> inDCacheReq; // Requ阾e du cache de donnee	sc_in<bool> inDCacheWrite; // Ecriture/Lecture	sc_in<UInt32> inDCacheAddr; // Adresse de la donn閑 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -