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

📄 datamem.dit

📁 可以自由开发的MIPS仿真器模型(.exe),指令执行动画显示.通过修改graphics和对应的元件和互联文件(.dit)可以自己画流水线,其中.dit文件使用简单的硬件描述语言编写.而mipsit是
💻 DIT
字号:
// this is the Data memory
class CDataMem
{
	in Ph2
	in Address
	in WriteData
	in MemRead:3
	in MemWrite:2
	out ReadData


	import bus ReadData
	import bus Address
	import bus Operation
	import bus WriteData

	script
		function OnPh2()
		{
			if ( MemRead.Get() != 0 )
			{
				// read
				bus_Address.Set(Address.Get());
				bus_Operation.Set(MemRead.Get());
				ReadData.Set(bus_ReadData.Get());
			}
			else if ( MemWrite.Get() != 0 )
			{
				
				// write
				bus_Address.Set(Address.Get());
				bus_WriteData.Set(WriteData.Get());
				bus_Operation.Set(8|MemWrite.Get());
			}		
		}
		
	end_script
	
	event Ph2 OnPh2()
}

⌨️ 快捷键说明

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