X hits on this document

PDF document

Lecture 1: Course introduction - page 11 / 15

79 views

0 shares

0 downloads

0 comments

11 / 15

CPU operation

CPU “fetch-execute” cycle fetch instruction from memory decode instruction

perform operations required by the instruction

MEMORY

FETCH

CPU

EXECUTE (manipulate data as programmed)

Program Counter DECODE & EXECUTE

Microprocessor-based System Design Ricardo Gutierrez-Osuna Wright State University

function von_newmann { pc=init_pc(); while (not_done) { opcode = fetch_instr(memory[pc]); execute(opcode); pc=pc+1;

}

}

function execute(opcode) { decop = decode(opcode);

if need_data(decop) { data = get_data(decop);

} result = compute(decop, data); if save_result(decop) {

save_result(decop, result);

}

}

11

Document info
Document views79
Page views79
Page last viewedTue Jan 24 01:43:42 UTC 2017
Pages15
Paragraphs300
Words1251

Comments