Review of Blackfin Syntax Moves and Adds 1) What we already know and have to remember to apply 2) What we need to learn.

Slides:



Advertisements
Similar presentations
Tutorial Essentially all the Blackfin instruction you need for all of ENCM511. The instructions are easy. Its knowing when to use them that is the difficult.
Advertisements

ECE 15B Computer Organization Spring 2010 Dmitri Strukov Lecture 5: Data Transfer Instructions / Control Flow Instructions Partially adapted from Computer.
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 2.
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 3 – New instruction recap Tutorial.
Embedded System Timers Details of independent timers build into the Blackfin Assignment 2-- Watchdog Timer can be used to prevent the OS system from locking.
Assignment Overview Thermal oscillator One of the ENCM415 Laboratory 2 items Oscillator out GND +5V.
Boot Issues Processor comparison TigerSHARC multi-processor system Blackfin single-core.
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 2.
Building a simple loop using Blackfin assembly code M. Smith, Electrical and Computer Engineering, University of Calgary, Canada.
More Example Blackfin Code Using the E-UNITTest Framework.
Lab. 2 – More details – Tasks 4 to 6 1. What concepts are you expected to understand after the Lab. 2 is finished? 2. How do you demonstrate that you have.
Software and Hardware Circular Buffer Operations First presented in ENCM There are 3 earlier lectures that are useful for midterm review. M. R.
A Play Core Timer Interrupts Acted by the Human Microcontroller Ensemble from ENCM415.
Timers and Timing Signals Tutorial. 6/18/2015 Timer Control Copyright M. Smith, ECE, University of Calgary, Canada 2 / 31 Temperature Sensor -- Lab 3.
Understanding the Blackfin ADSP-BF5XX Assembly Code Format
Just enough information to program a Blackfin Familiarization assignment for the Analog Devices’ VisualDSP++ Integrated Development Environment.
Blackfin BF533 EZ-KIT Control The O in I/O
Tutorial Essentially all the Blackfin instruction you need for all of ENCM511. The instructions are easy. Its knowing when to use them that is the difficult.
High-Level Language Interface Chapter 17 S. Dandamudi.
Chapter 2 Software Tools and Assembly Language Syntax.
Developing a bicycle speed-o-meter Midterm Review.
Blackfin Timers Independent timers build into the processor Watchdog Timer is a major part of Lab. 2 (Code provided to you to use)
A Play Core Timer Interrupts Acted by the Human Microcontroller Ensemble from ENCM511.
Generating “Rectify( )” Test driven development approach to TigerSHARC assembly code production Assembly code examples Part 1 of 3.
Lab. 2 Overview Move the tasks you developed in Lab. 1 into the more controllable TTCOS operating system Manual control of RC car.
Moving Arrays -- 1 Completion of ideas needed for a general and complete program Final concepts needed for Final Review for Final – Loop efficiency.
Blackfin Array Handling Part 1 Making an array of Zeros void MakeZeroASM(int foo[ ], int N);
Lab. 2 Overview. Echo Switches to LED Lab1 Task 7 12/4/2015 TDD-Core Timer Library, Copyright M. Smith, ECE, University of Calgary, Canada 2 / 28.
1 ECE243 CPU Modification Lab. 2 You will add new insts to a CPU A CPU that implements mini ISA exists –you can compile it, load it onto DE2, run programs.
A first attempt at learning about optimizing the TigerSHARC code TigerSHARC assembly syntax.
Building a simple loop using Blackfin assembly code If you can handle the while-loop correctly in assembly code on any processor, then most of the other.
March R. Smith - University of St Thomas - Minnesota ENGR 330: Today’s Class Connecting Hardware to InstructionsConnecting Hardware to Instructions.
Assembly Language Review Being able to repeat on the Blackfin the things we were able to do on the MIPS 3/3/2016 Review of 50% OF ENCM369 in 50 minutes1.
A Play Core Timer Interrupts Acted by the Human Microcontroller Ensemble from ENCM415.
Assignment 4 / Lab. 3 Convert C++ ISR to ASM AND GET IT TO WORK Doing Assignment 4 / Lab. 3 the Test Driven Development way.
Chapter 5- Assembling , Linking, and Executing Programs
Example Addiu $t1 $r0 3 Addiu $t1 $t1 5 Addiu $t1 $t1 7.
Tutorial Essentially all the Blackfin instruction you need for all of ENCM511. The instructions are easy. Its knowing when to use them that is the difficult.
Microprocessor and Assembly Language
Developing a bicycle speed-o-meter
and Executing Programs
Software and Hardware Circular Buffer Operations
Generating the “Rectify” code (C++ and assembly code)
Generating “Rectify( )”
A Play Core Timer Interrupts
Computer Programming Machine and Assembly.
Design of the Control Unit for One-cycle Instruction Execution
Generating a software loop with memory accesses
Handling Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
Moving Arrays -- 1 Completion of ideas needed for a general and complete program Final concepts needed for Final Review for Final – Loop efficiency.
Assembly Language Review
Using Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
A Play Lab. 2 Task 8 Core Timer Interrupts
Assembly Language Review
Handling Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
Tutorial Essentially all the Blackfin instruction you need for all of ENCM511. The instructions are easy. Its knowing when to use them that is the difficult.
Explaining issues with DCremoval( )
Handling Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
The branch instruction
Developing a bicycle speed-o-meter
Independent timers build into the processor
Developing a bicycle speed-o-meter
Blackfin BF533 EZ-KIT Control The O in I/O
Lab. 2 Overview Move the tasks you developed in Lab. 1 into the more controllable TTCOS operating system.
Developing a bicycle speed-o-meter
Building a simple loop using Blackfin assembly code
A first attempt at learning about optimizing the TigerSHARC code
Computer Organization and Assembly Language
Blackfin Syntax Moves and Adds
Blackfin Syntax Stores, Jumps, Calls and Conditional Jumps
Presentation transcript:

Review of Blackfin Syntax Moves and Adds 1) What we already know and have to remember to apply 2) What we need to learn

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 2 Assembly code “stub” Each function written in assembly code has the same general look Each function written in assembly code has the same general look 1.The necessary #include files and Section name 2.Declaration of the function as “global” combined with labels for start and end of function 3.Setting size of link operation and using LINK instruction to save the return address 4.Unlink used with JUMP(P0) instruction to cause the function to return “to calling program” 5.R0 used for return parameter 6.Required code with Documentation of code

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 3 Example 1 -- stub code

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 4 Store/Write code

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 5 Load /read

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 6 Move Register

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 7 Conditional move register

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 8 Half register moves Zero extended Zero extended Sign extended Sign extended

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 9 What does zero extended and sign extended mean? In all bits “sign bit” In all bits 1 In all bits 0 In all bits

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada bit adds

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada bit adds VIDEO two 16-bit Adds At same time

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 12 Some assign statement Load immediate

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 13 Some assign statement Load immediate

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 14

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 15

6/2/2015Timer Control -- Lab.3, Copyright M. Smith, ECE, University of Calgary, Canada 16 Safe way of doing immediate loads