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

📄 btic.h

📁 ppc750 system design simulator using system c
💻 H
字号:
/***************************************************************************                          BTIC.h  -  Branch Target Instruction Cache                             -------------------    begin                : Tue May 22 2001    copyright            : (C) 2001 Universite Paris Sud and CEA    author               : Gilles Mouchard    email                : gilles.mouchard@lri.fr, gilles.mouchard@.cea.fr ***************************************************************************/#ifndef __BTIC_H__#define __BTIC_H__#include <common.h>struct BTIC{	struct	{		bool valid;		UInt32 tag;	} directory[BTICAssociativity][nBTICLines];		int plrubits[nBTICLines];		struct	{		int instructionsCount;		UInt32 instructions[nInstructionsPerBTICEntry];	} entries[BTICAssociativity][nBTICLines];	BTIC();	void Init();	void DecodeAddress(UInt32 addr, UInt32& tag, UInt32& index);	void UpdatePLRUBits(UInt32 bank, UInt32 index);	int Search(UInt32 index, UInt32 tag);	int Choose(UInt32 index);		bool Read(UInt32 pc, int& instructionsCount, UInt32 *instructions);	void Update(UInt32 pc, int instructionsCount, UInt32 *instructions);};#endif

⌨️ 快捷键说明

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