static public long Fwd(Control.Registers src, long rval) { if (src == Excute.Show_e_dstE()) { return(Excute.Show_e_valE()); } if (src == Memory.Show_M_dstM()) { return(Memory.Show_m_valM()); } if (src == Memory.Show_M_dstE()) { return(Memory.Show_M_valE()); } if (src == Write_back.Show_W_dstM()) { return(Write_back.Show_W_valM()); } if (src == Write_back.Show_W_dstE()) { return(Write_back.Show_W_valE()); } return(rval); }
static void Updata_Memory() { Memory.Updata(Excute.Show_e_state(), Excute.Show_e_icode(), Excute.Show_e_ifun(), Excute.Show_e_Cnd(), Excute.Show_e_valE(), Excute.Show_e_valA(), Excute.Show_e_dstE(), Excute.Show_e_dstM()); }