<< Chapter < Page Chapter >> Page >

Obtaining a cycle count

Obtaining a cycle count for a given section of code is easily accomplished with the aid of Code Composer. Here is theprocedure for obtaining a cycle count:

  • Load the .out file of the program you wish to profile into Code Composer.
  • Set a breakpoint at the beginning of the section of code that you want to profile. This can be easily done byright-clicking on the line of code beginning the section and choosing "Toggle breakpoint" from the list of options.
  • Set a breakpoint at the end of the the section of code that you want to profile.
  • Open the "Profiler" menu in Code Composer. Choose "View Clock." A window should open at the bottom of the CodeComposer window that indicates the current value of the cycle counter.
  • Again, open the "Profiler" menu in Code Composer and choose "Enable Clock."
  • Choose "Run" from the "Debug" menu to execute your code. Execution will halt at the first breakpoint. Double-clickthe cycle counter to reset its value to zero (double click the number next to "Clock =").
  • Again, choose "Run" from the "Debug" menu to continue execution of your code. Execution will halt at the secondbreakpoint and the cycle counter will display the number of CPU cycles that were needed to execute the section of codedelimited by the breakpoints.

Grading information

This is a two week lab. Your prelab is due a week after the quiz for Lab 4 and the quizzing occurs two weeks after thequiz for Lab 4.

The following details how the 10 points for the lab will be assigned:

  • 1 point: Prelab. You must answer the prelab questions for two filtering techniques in Filtering Techniques . You must fully simulate one filtering technique in MATLAB anddemonstrate that the system will meet the specifications as given in the filter specification . Finite precision effects such as coefficient quantization must be modeled in your simulation.You must provide the response of your simulated system to appropriate test inputs.
  • 2 points: Working code. Code that does not meet the specification is not considered working code. You must beprepared to demonstrate that your code meets the specification by showing the system response to a frequencyswept sine input. We will check that the ripple specifications have been met in the pass-band and thestop-band. We will also check the for the locations of the pass-band and stop-band edges to make sure that the width ofthe transition band is met. We will also check to see that the phase constraint given in the specification is met. Wewill also check to ensure that you have scaled the input signal appropriately so that clipping does not occur at theoutput for any frequency. Additionally, we will check to make sure that you do not scale the input tooconservatively, specifically, a 1 V amplitude sinusoidal input is not allowed to drop below 0.5 V in amplitude at theoutput for all frequencies in the pass-band.
  • 2 points: Oral quiz.
  • 5 points: Optimization. These points will be assigned based on your cycle count. You will be judged relative toyour peers. Code that does not meet the specification will be penalized. After all the cycle counts have beencollected, we will order them for scoring in two ways. First, the cycle counts will be ordered globally over thewhole class. The groups with the lowest numbered cycle counts will be given the maximum number of points and thegroups with the highest numbered cycle counts will be given the minimum number of points. The second ordering will bedone locally relative to which of the three filtering techniques the groups have picked. The groups using thesame filtering technique will be ordered by cycle count, with the groups with the lowest cycle counts receivingmaximum points and the groups with the highest cycle counts receiving minimum points. 3 points will be assigned forthe global ordering of groups and 2 points for the local ordering with respect to filtering technique of groups.

Pizza competition

Your final assembly code and/or C source code for the pizza competition must be emailed to ece320@ews.uiuc.edu no later than 11:59 PM on Monday, March 17. However, youroptimization grade will be assigned based on the code turned in during your assigned lab section and is subject to theusual polices for late code.

Questions & Answers

are nano particles real
Missy Reply
Hello, if I study Physics teacher in bachelor, can I study Nanotechnology in master?
Lale Reply
no can't
where we get a research paper on Nano chemistry....?
Maira Reply
nanopartical of organic/inorganic / physical chemistry , pdf / thesis / review
what are the products of Nano chemistry?
Maira Reply
There are lots of products of nano chemistry... Like nano coatings.....carbon fiber.. And lots of others..
Even nanotechnology is pretty much all about chemistry... Its the chemistry on quantum or atomic level
no nanotechnology is also a part of physics and maths it requires angle formulas and some pressure regarding concepts
Preparation and Applications of Nanomaterial for Drug Delivery
Hafiz Reply
Application of nanotechnology in medicine
has a lot of application modern world
what is variations in raman spectra for nanomaterials
Jyoti Reply
ya I also want to know the raman spectra
I only see partial conversation and what's the question here!
Crow Reply
what about nanotechnology for water purification
RAW Reply
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
yes that's correct
I think
Nasa has use it in the 60's, copper as water purification in the moon travel.
nanocopper obvius
what is the stm
Brian Reply
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
How we are making nano material?
what is a peer
What is meant by 'nano scale'?
What is STMs full form?
scanning tunneling microscope
how nano science is used for hydrophobicity
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
what is differents between GO and RGO?
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
analytical skills graphene is prepared to kill any type viruses .
Any one who tell me about Preparation and application of Nanomaterial for drug Delivery
what is Nano technology ?
Bob Reply
write examples of Nano molecule?
The nanotechnology is as new science, to scale nanometric
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now

Source:  OpenStax, Ece 320 - spring 2003. OpenStax CNX. Jan 22, 2004 Download for free at http://cnx.org/content/col10096/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Ece 320 - spring 2003' conversation and receive update notifications?