ECE 533 Computer Design Assignment 4
- Write a PIC32 program to flash the LEDs
sequentially red-yellow-green at a rate of 1 cycle (3 flashes) per
second. Submit both written documentation and properly packaged
project files. Demonstrate to instructor.
- Demonstrate that you can use the Nios II Command Shell by
running the nios2-elf-size and nios2-elf-readelf utilities on one of
your Nios II software projects. Write a shell script to capture the
outputs to files.
- Either write a C program to demonstrate addition/subtraction and
the logic operations or modify one of my examples. Run the program on
the PIC32 and the Nios II (using the simulators). Capture the
disassembly for each platform and extract the main progam. Use debug
mode (vs. release) so that the associated C statements are in the disassembly.
- Using either the previous program or a new program, try to
force the compiler to use various instructions. For example, on the
Nios II, see if the compiler will choose the appropriate instruction
for andi or andhi. Does this do the job?
nb = na & 0x37; // should use andi
nc = nb & 0x370000; // should use andhi
Maintained by John Loomis,
last updated 17 September 2008