Tutorial on Blackfin Move and Add istructions

Tutorial on Blackfin Move and Add istructions

Blackfin Syntax Moves and Adds 1) 2) What we already know and have to remember to apply What we need to learn Assembly code stub Each function written in assembly code has the same general look

1. 2. 3. 4. 5. 6. 01/26/20 The necessary #include files and Section name Declaration of the function as global combined with labels for start and end of function

Setting size of link operation and using LINK instruction to save the return address Unlink used with JUMP(P0) instruction to cause the function to return to calling program R0 used for return parameter Required code with Documentation of code Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 2 Example 1 -- stub code

01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 3 Store/Write code (Lab. 1 and 2) 01/26/20

Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 4 Load /read 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada

5 Move Register 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 6

Conditional move register 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 7 Half register moves

Zero extended Sign extended 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 8

What does zero extended and sign extended mean? 11001110 11011111 0 In all bits 01001110 11011111 0 In all bits sign bit In all bits

11001110 11011111 1 In all bits 01001110 11011111 0 In all bits 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 9

32 bit adds 2 REGISTER APPROACH ALWAYS WORKS 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada

10 16 bit adds VIDEO two 16-bit Adds At same time 01/26/20 Timer Control -- Lab.3,

Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 11 Some assign statement Load immediate 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada

12 Some assign statement Load immediate 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 13

01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 14 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada

15 Safe way of doing immediate loads 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 16

Will now give you some examples to tackle 01/26/20 Timer Control -- Lab.3, Copyright M. Smith, ECE, Unive rsity of Calgary, Canada 17

Recently Viewed Presentations

  • Reaction Rates - newburyparkhighschool.net

    Reaction Rates - newburyparkhighschool.net

    rate=k[A]2. A + B→ products. bimolecular. rate=k[A][B] The rate law for the rate-determining step, predictable from its equation, leads to . the rate expression for the overall reaction. If the rate-determining step is the first step (or only step) in...
  • ENERGY Chapter 10 ENERGY, TEMPERATURE, & HEAT Section

    ENERGY Chapter 10 ENERGY, TEMPERATURE, & HEAT Section

    Hess's Law Cont. Hess's law states that if you can add two or more thermochemical equations to produce a final equation for a reaction, then the sum of the enthalpy changes for the individual reactions is the enthalpy change for...
  • Welcome Year 10: The Year Ahead and Meet the Tutor

    Welcome Year 10: The Year Ahead and Meet the Tutor

    DT Resistant Materials - 50%. DT Textiles - 60%. Food and Nutrition - 50%. Computing - 20% . Music - 60%. Physical education - 40%. ... Both qualifications are 100% exam; there is no coursework or controlled assessment element. 5)...
  • Columbia Machine Core Grinding - Computer Action Team

    Columbia Machine Core Grinding - Computer Action Team

    Columbia Machine Inc. Based in Vancouver, Washington Est. 1937 World leader and innovator of concrete product equipment Complete systems Project Description Concrete Block Making Core Bar Assembly Current Process for Core Manufacturing Laser Cutting Forming Welding Grinding Design Requirements Safe...
  • International Business Environments and Operations

    International Business Environments and Operations

    Times New Roman Arial Avenir-Medium Palatino-Roman Avenir-Light HelveticaNeue-Roman Default Design 1_Default Design 2_Default Design 3_Default Design 4_Default Design 5_Default Design 6_Default Design 7_Default Design 8_Default Design 9_Default Design 10_Default Design 11_Default Design International Business Environments and Operations, 13/e ...
  • Total Variation and Geometric Regularization for Inverse Problems

    Total Variation and Geometric Regularization for Inverse Problems

    Total Variation and Geometric Regularization for Inverse Problems Regularization in Statistics September 7-11, 2003 BIRS, Banff, Canada Tony Chan
  • Secure Care in Scotland, Looking Ahead - Centre for Youth ...

    Secure Care in Scotland, Looking Ahead - Centre for Youth ...

    Alison Gough, Secure Care National Adviser, CYCJ, gave some background to the secure care national project, which is a Scottish Government commissioned analytical, practice focused and strategic review of secure care in Scotland. She spoke to a briefing paper for...
  • Enforcement of European Union law

    Enforcement of European Union law

    Defrenne case (1976): the prohibition on paydiscriminationbetween men and womenappliesalso to private employers. Direct effect of directives. In principle the directiveisbinding on States, notwithinStates. Obligation of result. Dualistapproach