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

📄 if.dit

📁 可以自由开发的MIPS仿真器模型(.exe),指令执行动画显示.通过修改graphics和对应的元件和互联文件(.dit)可以自己画流水线,其中.dit文件使用简单的硬件描述语言编写.而mipsit是
💻 DIT
字号:
// components:

object CPC PC
object CInstrMem InstrMem
object CMux4 PcMux
object CJumpLogic JumpLogic
object CiAdd4 IfAdd4
object CRegIfId RegIfId

// Net list:

// to PC
connect PcMux.Out PC.In

// to InstrMem
connect PC.Out InstrMem.Address

// To pc+4 thing
connect PC.Out IfAdd4.In

// to the pipeline register
connect InstrMem.ReadData RegIfId.in_Instruction
connect IfAdd4.Out RegIfId.in_PC

// to the pc mux
// (only connections from this stage are done here)
connect IfAdd4.Out PcMux.In3
connect JumpLogic.Out PcMux.In1

// connect the clock
connect clk.Ph0 RegIfId.Ph0
connect clk.Ph1 RegIfId.Ph1

connect clk.Ph0 PC.Ph0
connect clk.Ph1 PC.Ph1

// and now some probes:
probe InstrMem.ReadData 164 410 16 8 1
probe PC.Out 64 390 16 8 1
probe IfAdd4.Out 139 270 16 8 1
probe PcMux.Out 14 390 16 8 1
probe JumpLogic.Out 68 70 16 8 1
probe InstrMem.ReadData 2 4 16 30 2
probe RegIfId.out_Instruction 220 4 16 30 2

⌨️ 快捷键说明

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