Lec03b - COMP 4300 Computer Architecture Instruction Set...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1 COMP 4300 Computer Architecture Instruction Set (cont.) Dr. Xiao Qin Auburn University http://www.eng.auburn.edu/~xqin xqin@auburn.edu Fall, 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Memory-Memory Architectures Instruction set: (3 operands) add A, B, C sub A, B, C mul A, B, C (2 operands) add A, B sub A, B mul A, B Example: A*B - (A+C*B) 3 operands 2 operands mul D, A, B mov D, A mul E, C, B mul D, B add E, A, E mov E, C sub E, D, E mul E, B add E, A sub E, D mem[D] mem[E]
Background image of page 2
3 Memory-Memory: Pros and Cons Pros Requires fewer instructions (especially if 3 operands) Easy to write compilers for (especially if 3 operands) Cons Very high memory traffic (especially if 3 operands) Variable number of clocks per instruction With two operands, more data movements are required
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Register-Memory Architectures Instruction set: add R1, A sub R1, A mul R1, B load R1, A store R1, A Example: A*B - (A+C*B) load R1, A mul R1, B /* A*B */ store R1, D load R2, C mul R2, B /* C*B */ add R2, A /* A + CB */ sub R2, D /* AB - (A + C*B) */ R1 = R1 +,-,*,/ mem[B] mem[D] R2
Background image of page 4
5 Memory-Register: Pros and Cons Pros Some data can be accessed without loading first Instruction format easy to encode Good code density Cons Operands are not equivalent (poor orthogonal) Variable number of clocks per instruction Limit number of registers
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Load-Store Architectures
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/07/2011 for the course COMP 3400 taught by Professor Staff during the Fall '10 term at Auburn University.

Page1 / 17

Lec03b - COMP 4300 Computer Architecture Instruction Set...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online