Email

Control Law Accelerator (CLA) Hands-On Workshop

The Control Law Accelerator is a 32-bit floating point math accelerator that is common on most c2000 devices. It aids in the concurrent processing of fast control algorithms.

After viewing the lectures, and working through the provided example, you should be in a better position to migrate existing algorithms from the main C28x core to the CLA, or start programming on the CLA from scratch.

This training series covers the workings of the Control Law Accelerator (CLA). It begins with a basic introduction to the CLA, its architecture and programming paradigm. There is a hands-on workshop that can be downloaded, and worked through, as you progress through the modules.

1. Introduction to the CLA

This module covers the architecture of the CLA, the resources at its disposal and the division of code into task blocks that are triggered by peripherals or through software. Each of these task blocks are atomic, in the sense that no other task may interrupt a running task. This makes operation of the CLA unconventional in comparison with standard CPUs.

# Title Duration
1.1 CLA Hands On Workshop - Part 1 Introduction
Part 1 of a 5-part online training series on the Control Law Accelerator (CLA). 
09:40
Login required

2. The CLA 'C' Compiler

The CLA is supported by a subset of the ANSI ‘C’ Compiler. You will learn the features, and more importantly, the limitations, of this compiler in this video.  The video also covers the changes in the linker command file needed to support operations on the CLA

# Title Duration
2.1 CLA Hands On Workshop - Part 2 The CLA 'C' Compiler
Part 2 of a 5-part online training series on the Control Law Accelerator (CLA). 
06:53
Login required

3. The Workshop

In this video we get into the actual workshop. I will take an existing project for the C28x, a simple example that samples an EPWM, runs it through a low pass filter, and then an FFT to get the frequency spectrum, and migrate it over to the CLA. You can download the project files here and I encourage to follow along as I go through the different steps and considerations during the migration process.

# Title Duration
3.1 CLA Hands On Workshop - Part 3 The Workshop
Part 3 of a 5-part online training series on the Control Law Accelerator (CLA). 
22:25
Login required

4. Debugging on the CLA

Once you have ported your code over to the CLA and successfully built your executable, it’s time to debug. The CLA pipeline is unprotected and is debugged through the main CPU; you cannot debug code on the CLA in the same manner you would on the C28x. This module goes over the different aspects of setting breakpoints, single stepping and setting up CCS views when debugging the CLA.

# Title Duration
4.1 CLA Hands On Workshop - Part 4 Debugging on the CLA
Part 4 of a 5-part online training series on the Control Law Accelerator (CLA). 
10:47
Login required

5. Tips and Tricks

In the previous modules you would have learned the workings of the CLA, the implementation of the ‘C’ language, and its unique method of debugging. This video deals with some of the common issues users face when writing code for the CLA. It is a compilation, and investigation, of some of the most commonly asked questions on the forums and should help you get to working code quickly.

# Title Duration
5.1 CLA Hands On Workshop - Part 5 Tips and Tricks
Part 5 of a 5-part online training series on the Control Law Accelerator (CLA). 
13:42
Login required
arrow-topclosedeletedownloadmenusearchsortingArrowszoom-inzoom-out arrow-downarrow-uparrowCircle-leftarrowCircle-rightblockDiagramcalculatorcalendarchatBubble-doublechatBubble-personchatBubble-singlecheckmark-circlechevron-downchevron-leftchevron-rightchevron-upchipclipboardclose-circlecrossReferencedashdocument-genericdocument-pdfAcrobatdocument-webevaluationModuleglobehistoryClockinfo-circlelistlockmailmyTIonlineDataSheetpersonphonequestion-circlereferenceDesignshoppingCartstartoolsvideoswarningwiki