kiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone com
➤ Gửi thông báo lỗi ⚠️ Báo cáo tài liệu vi phạmNội dung chi tiết: kiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone com
kiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone com
2COMPUTER SYSTEMSORGANIZATIONCiu.iDiK>a?Th®Cong.comhttp.: fbconi tailicudic-jtucnttFig. 2-1. The organization of a simple computer with one CPU and tw kiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone comwo I/O devices.CuuDuon^TtaiCcag comImps fb cotn uilicudicntucimFig. 2-2. 1 he data path of a typical von Neumann machine.CroDuoagTlMaCong.comhttp# íb.cotn Uilieuđicnmciinpublic class Interp {static int PC;static int AC;static int instr;static int instrjype;static int dataJoc;static int data;static b kiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone comoolean run_bit = true;// program counter holds address of next instr// the accumulator, a register for doing arithmetic// a holding register for the ckiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone com
urrent instruction// the instruction type (opcode)// the address of the data, or -1 if none// holds the current operand// a bit that can be turned off2COMPUTER SYSTEMSORGANIZATIONCiu.iDiK>a?Th®Cong.comhttp.: fbconi tailicudic-jtucnttFig. 2-1. The organization of a simple computer with one CPU and tw kiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone comuctions // one memory operand. The machine has a register AC (accumulator), use( // arithmetic. The ADD instruction adds an integer in memory to the AC, for Í // The interpreter keeps running until the run bit is turned off by the HALT ins // The state of a process running on this machine consists o kiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone comf the memory, th // program counter, the run bit, and the AC. The input parameters consist of // of the memory image and the starting address.PC = stakiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone com
rting-address;while (run_bit) {instr = memory[PC]; // fetch next instruction into instrPC = PC + 1;// increment program counterinstr-type = get-instrj2COMPUTER SYSTEMSORGANIZATIONCiu.iDiK>a?Th®Cong.comhttp.: fbconi tailicudic-jtucnttFig. 2-1. The organization of a simple computer with one CPU and tw kiến trúc máy tính dạng thanh tin figs 2 computer systems organization sinhvienzone comere is no operanddata = memory[data_loc]; // fetch the dataexecute(instr type, data); //execute instruction2COMPUTER SYSTEMSORGANIZATIONCiu.iDiK>a?Th®Cong.comhttp.: fbconi tailicudic-jtucnttFig. 2-1. The organization of a simple computer with one CPU and twGọi ngay
Chat zalo
Facebook