lecture 3 - ARM Architecture Overview EEC 170 32-bit RISC...

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

View Full Document Right Arrow Icon
1 EEC 170 ARM Architecture ARM Architecture Overview 32-bit RISC Load-Store architecture Focus: power, code size, performance More complex that MIPS, much smaller code size Much less complex than x86, a bit larger code size Different variations target different markets Performance (e.g., Smartphones, Tablets) : Cortex-A9 2GHz, multi-core, 8 stage O-O-O pipeline, three-issue Real-time (e.g., Automotive): Cortex-R4 400Mhz, 8 stage pipeline, two-issue, optional FPU, ECC Microcontroller: Cortex-M3 50Mhz, 3 stage pipeline, single issue, no cache ARM Registers 16 registers: R 0 -R 15 13 general-purpose registers: R 0 -R 15 R 0 not hardwired to zero like MIPS R 13 : Stack pointer, by software convention R 14 : Link register, like MIPS R 15 : Program counter Addressing Modes ARM has many addressing modes vs. MIPS’ one + Reduces code size and power - Increases hardware complexity, may increase clock cycle time Basic mode: Immediate Offset (only mode in MIPS): LDR R d ,[R base ,#] ; Effective Address (EA) = (R base ) + # ; # is12-bit two’s-complement immediate
Image of page 1

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

View Full Document Right Arrow Icon
2 Addressing Modes Immediate Post Indexed ; Auto increment LDR R d ,[R base ],# ; EA = (R base ) + # ; R base = R base + # ; useful for striding through arrays Register Offset LDR R d ,[R base ,R offset ] ; EA = (R base ) + (R offset ) ; useful for accessing arbitrary offset ; into data structure, relative to the start strcpy LDRB R2,[R1],#1 STRB R2,[R0],#1 TST R2,R2 ; repeat if R2 !=0
Image of page 2
Image of page 3
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