Skip to content Skip to navigation

Connexions

You are here: Home » Content » Binary Phase Shift Keying Transmitter: Optimization Exercise (55x)

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • TI DSP display tagshide tags

    This module is included inLens: Texas Instruments DSP Lens
    By: Texas InstrumentsAs a part of collection: "Digital Signal Processing Laboratory (ECE 420 55x)"

    Click the "TI DSP" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Also in these lenses

  • Lens for Engineering

    This module is included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

  • Real-Time DSP with MATLAB display tagshide tags

    This module is included inLens: DSP with MATLAB lens
    By: Bhaskar BhattacharyaAs a part of collection: "Digital Signal Processing Laboratory (ECE 420 55x)"

    Comments:

    "Real-Time DSP with MATLAB"

    Click the "Real-Time DSP with MATLAB" link to see all content selected in this lens.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

Binary Phase Shift Keying Transmitter: Optimization Exercise (55x)

Module by: Spencer Brady. E-mail the author

Summary: Students are to implement and optimize a pseudo-noise (PN) sequence generator and a binary phase shift keying (BPSK) transmitter.

In this lab you are to implement and optimize a pseudo-noise (PN) sequence generator and a Binary Phase Shift Keying (BPSK) transmitter to encode and transmit the PN sequence. For the lab grade, you will be judged on the execution time of your system (memory usage need not be minimized).

1 Reference Implementation

You will find the source code for this lab in the following folder v:\ece420\55x\bpsk_tx. After taking a look at the source code for the BPSK transmitter reference implementation, you will likely discover inefficiencies. This implementation is provided as the “reference implementation” of the optimization process and to define the expected input and output of the application. The computational efficiency of your code will be judged against this implementation. While the given source code might serve as a starting point, you should do whatever you need to do to make your code as efficient as possible, while operating in an equivalent manner as the given code.

The exact portion of the code to be optimized is defined below. You may write in C, assembly, or any combination of the two; choose whatever will allow you to write the fastest code. The optimization process will be smoother if you plan for optimization before you begin any programming.

2 Optimization

Since a primary purpose of this lab is to learn optimization and efficient code techniques, your lab grade will be based primarily on the total execution time of your system. You are not required to optimize memory use. Note that by execution time we mean cycle count, not the number of instructions in your program. Remember that some of the TMS320C55xx instructions take more than one cycle. However, most operations take only one cycle and can be placed in parallel with other operations. Branch and repeat statements are the most common instructions that require several cycles to execute. Most C instructions take more than one cycle. The debugger can be used to determine the exact number of cycles used by your code. The instructions on how to do this can be found in Cycle Counts (m14415).

We will grade you based on the number of cycles used between the profile_me = 1; and profile_me = 0; statements. Thus, you can optimize code within this interval, but optimizing code outside of this interval will not help. For grading simplicity, your code should not have modifications except between these two instructions. If the number of cycles between these two points is variable, the maximum possible number of cycles will be counted. We reserve the right to test your code by modifying the inputs.

3 Routine Specific Optimization Tips

If you are programming the PN generator in assembly, you may wish to refer to the description of assembly instructions for logical operations in the C55x Mnemonic Instruction Set reference. Initialize the shift register to one. You can debug the PN output by comparing it to the output of the MATLAB code. Be prepared to prove to a TA that your PN generator works properly as part of your quiz. For more information about the PN generator, see Lab 4 Prelab.

Your BPSK transmitter can be debugged by looking at the output of the transmitter along with the corresponding PN values on channels one and two of the oscilloscope. The transmitter output corresponding to PN=1 should be 180 degrees out of phase with the transmitter output corresponding to PN=0. To verify that you are starting with a decent sine wave, you might try overwriting the PN sequence to a constant zero or one, which should produce a smooth sinusoid with no phase shifts at the transmitter’s output.

4 Grading

Grading for this lab will be a bit different from past labs:

  • 2 points: Working code, implemented from scratch in assembly language and/or C.
  • 5 points: Optimization. These points will be assigned based on your cycle counts and the optimization you have made.
  • 3 points: Oral quiz.

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks