More Example Blackfin Code Using the E-UNITTest Framework.

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

How to Correct a Paper English 8 Mr. Rietz 7 May 2015 Helpful Reminder: Read ALL these directions before you do ANYTHING. If you don’t follow them, you.
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.
Assignment Overview Thermal oscillator One of the ENCM415 Laboratory 2 items Oscillator out GND +5V.
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.
Review of Blackfin Syntax Moves and Adds 1) What we already know and have to remember to apply 2) What we need to learn.
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.
Hints for Post-Lab Quiz 1 Works for other quizzes and exams too.
Understanding the Blackfin ADSP-BF5XX Assembly Code Format
Laboratory 1 – ENCM415 Familiarization with the Analog Devices’ VisualDSP++ Integrated Development Environment.
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 2.
Just enough information to program a Blackfin Familiarization assignment for the Analog Devices’ VisualDSP++ Integrated Development Environment.
Friday’s lecture again. Using E-TDD environment Build the tests you want to pass Build the code Test the code.
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.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Input Laboratory: GPIO Pin control needed to have the Blackfin accept your commands Re-uses information from ENEL353 and ENCM369 courses and text books.
Assembly Language Review Being able to repeat on the Blackfin the things we were able to do on the MIPS 9/19/2015 Review of 50% OF ENCM369 in 50 minutes1.
Blackfin Array Handling Part 2 Moving an array between locations int * MoveASM( int foo[ ], int fee[ ], int N);
Edusoft Training for LAUSD © Copyright 2004 Edusoft, Inc. | December Edusoft Training Scanning, Uploading, and Viewing Results.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
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.
Introduction to Computer Programming
Web Application Vulnerabilities ECE 4112 Internetwork Security, Spring 2005 Chris Kelly Chris Lewis April 28, 2005 ECE 4112 Internetwork Security, Spring.
Blackfin Array Handling Part 1 Making an array of Zeros void MakeZeroASM(int foo[ ], int N);
12/14/2015 Concept of Test Driven Development applied to Embedded Systems M. Smith University of Calgary, Canada 1 Automated Testing Environment Concepts.
Works for other quizzes and exams too 1 Hints for Post-Lab Quiz 1.
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
Assembly Language Review Being able to repeat on the Blackfin the things we were able to do on the MIPS 2/26/2016 Review of 50% OF ENCM369 in 50 minutes1.
Copyright Ó Oracle Corporation, All rights reserved Debugging Triggers.
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.
Chapter 7 Posting. The T Account Simplified version of ledger account Includes: ▫Account name ▫Debits ▫Credits ▫Dates of transactions ▫Final account total.
Assignment 4 / Lab. 3 Convert C++ ISR to ASM AND GET IT TO WORK Doing Assignment 4 / Lab. 3 the Test Driven Development way.
JAVASCRIPT A quick review. True False ■The DOM is a standardized way of referring to parts of a Web page. ■TRUE ■In the DOM, attributes have their own.
Generating a software loop with memory accesses TigerSHARC assembly syntax.
Computer Science 210 Computer Organization
Chapter 5- Assembling , Linking, and Executing Programs
Help for Lab. 1 Subroutines calling Subroutines
Computer Science 210 Computer Organization
and Executing Programs
Generating the “Rectify” code (C++ and assembly code)
Generating “Rectify( )”
Automated Testing Environment
Generating a software loop with memory accesses
Understanding the TigerSHARC ALU pipeline
Handling Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
Passing Parameters by value
VisualDSP++ and Test Driven Development What happened last lecture?
Assembly Language Review
Assembly Language Review
Hints for Post-Lab Quiz 1
Handling Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
* M. R. Smith 07/16/96 This presentation will probably involve audience discussion, which will create action items. Use PowerPoint.
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.
Getting serious about “going fast” on the TigerSHARC
Explaining issues with DCremoval( )
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
Input Laboratory: GPIO Pin control needed to have the Blackfin accept your commands Re-uses information from ENEL353 and ENCM369 courses and text books.
Handling Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
Independent timers build into the processor
Blackfin BF533 EZ-KIT Control The O in I/O
LESSON 6-3 Extending Financial Statement Information on a Work Sheet
Working with the Compute Block
Starter Activities GCSE Python.
Lecture 3 - Instruction Set - Al
Blackfin Syntax Moves and Adds
Blackfin Syntax Stores, Jumps, Calls and Conditional Jumps
Presentation transcript:

More Example Blackfin Code Using the E-UNITTest Framework

Using E-TDD environment Build the tests you want to pass Build the code Test the code

Using E-TDD environment Using the C++ tests, build the ASM tests (cut and paste is all that is needed) Build the ASM stubs (Makes sure that you can load the load into the processor Test the code stub – program will run but fail the tests as only stubs Build the code Test the code

Build the stub 1 Find the name mangling needed Just build the code VDSP will tell you the necessary name- mangled names Cut and paste the names

Build the stub 2 These examples use an alternate approach to returning to C++, not RTS This approach using LINK and UNLINK is required when assembly code subroutine call assembly language subroutines

Expect error messages But not these ones Code review Missing a ; at end of line

Need to learn to READ And listen to assembler That semicolon is not the one that was missing There is one semicolon too many in the define statement

Less errors But I am still not listening to the assembler

Look on reference sheet R0 *= R1; Page 2, column 3

Assembled But failed tests What of GS is happening

Build the ASM test by cut-and-paste

Stubs assemble But unexpected messages

Build the ASM test by cut-and-paste CORRECTLY

Wrong method Incoming parameters – come in R0 Outgoing parameters – go in R0 Return values – go in R0 Same problem on the MIPS