📄 if.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 + -