businterfaceunit.h
来自「ppc750 system design simulator using sys」· C头文件 代码 · 共 41 行
H
41 行
/*************************************************************************** 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 + =
减小字号Ctrl + -
显示快捷键?