CS 320 Unit 12 Other Modern Microarchitectures

CS 320 Unit 12 Other Modern Microarchitectures - CS 320...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 320 Computer Architecture Unit 12 Other Modern Microarchitectures Spring 2008 Furman Haddix, Ph.D. Assistant Professor Minnesota State University, Mankato
Image of page 1

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

View Full Document Right Arrow Icon
Unit 12 Objectives Addressing Modes Analysis of Other Modern Microarchitectures Mic-1 through Mic-4 (CISC) PIC UltraSPARC III Superscalar RISC picoJava CISC Embedded Controller Itanium Superscalar VLIW Comparison of Microarchitectures Overview Instruction Decoding Microinstruction Execution Text: Sns 2.1.6, 3.5, 4.6
Image of page 2
Unit 12 Modern Microarchitectures 3 Addressing Modes Addressing modes specify where an operand is located. They can specify a constant, a register, or a memory location. The actual location of an operand is its effective address . Certain addressing modes allow us to determine the address of an operand dynamically.
Image of page 3

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

View Full Document Right Arrow Icon
Unit 12 Modern Microarchitectures 4 Addressing Modes Immediate addressing means that the data is part of the instruction. Direct addressing means that the memory address of the data is given in the instruction. Register addressing, or Register direct addressing means that data is located in a register designated in the instruction. Indirect addressing means that the address of the address of the data is provided in the instruction. Register indirect addressing uses a register designated in the instruction to store the address of the data. In direct, indirect, and register indirect addressing, the address is usually given as an offset from the frame pointer.
Image of page 4
Unit 12 Modern Microarchitectures 5 Addressing Indexed addressing uses a register (implicitly or explicitly) as an offset, which is added to the base address in the operand to determine the effective address of the data. Based addressing is similar except that a base register is used instead of an index register. The difference between these two is that an index register holds an offset relative to the address given in the instruction, a base register holds a base address where the address field represents a displacement from this base. Indexed based addressing is also similar except that both base and index are contained in registers. With this method, an offset and/or scaling may also be used, e.g., IA-32 (Pentium) SIB
Image of page 5

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

View Full Document Right Arrow Icon
Unit 12 Modern Microarchitectures 6 Addressing In stack addressing the operand is assumed to be on top of the stack. There are many variations to the previous addressing modes including: Indirect indexed. Base/offset. Self-relative Auto increment - decrement. We won’t cover these in detail.
Image of page 6
Unit 12 Modern Microarchitectures 7 Example: Given the below register (Ri) and memory values; give the values of the operand fetches to the side, assuming Pentium-type (index, base) addresses: 10 20 30 40 30 20 R0 R1 R2 R3 R4 R5 5 15 25 30 45 55 0 15 20 25 65 30 40 50 30 35 40 45 50 55 25 35 45 35 20 15 R6 R7 R8 R9 R10 R11 25 35 25 15 R12 R13 R14 R15 R16 R17 P t Instructio n Address Type Addres s 1 Addres s 2 Retur n Value a. LOAD Immediate 5 b. LOAD Direct 5 c. LOAD Indirect 5 d. LOAD
Image of page 7

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

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern