os implementation on sopc midterm presentation performed by: ariel morali nadav malki supervised by:...

14
OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Upload: terence-copeland

Post on 28-Dec-2015

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

OS Implementation On SOPCMidterm Presentation

Performed by:Ariel MoraliNadav Malki

Supervised by:Ina Rivkin

Page 2: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Project Goals

• Assemble a SOPC system, using Nios II processor on Altera’s DE2 board, based on Cyclone II FPGA.

• Implement Micrium’s µC OS-II.• Use the system to create a web server.

Page 3: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Achievements

• Learning and using Altera’s environment: Quartus II, SOPC Builder & Nios II IDE. Done

• Creating a small SOPC with nios II, uart and OnChip memory. Done

• Adding more peripherals to the system, like external SDRAM memory (8 MB). Done

Page 4: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Achievements

• Learning Micrium’s µC OS-II: Requirements, functionality, implementation flow etc. Done

• Using µC OS-II to Run two processes simultaneously. Done

Page 5: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Implementation flow

1. The on-chip memory is not sufficient to support the OS. For that reason we added the SDRAM 8MB external memory.In order to do that we added a SDRam controller to the SOPC, and assigned the appropriate pins.

Page 6: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Implementation flow

NIOS II CPU and Peripherals as seen in the SOPC Builder

Page 7: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Implementation flow

System Schematics as seen in Quartos

Page 8: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Implementation flow

2. We created a new project in the nios II IDE, and added a system library supporting theµC OS-II.

Page 9: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Implementation flow3. We configured the system library properties.

For example, We changed the memory used by the OS to SDRAM memory.

Page 10: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Implementation flow4. The OS can be

configured via the RTOS options window.For example we can include\disinclude code for Mutexes, Semaphores etc.

Page 11: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Implementation flow5. We wrote a C++ code

which uses the OS functions in order to run several processes simultaneously.

Page 12: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Demonstration

You will see two processes running simultaneously:

• A snake running through the red leds and the 7 segment displays, with higher priority.

• A countdown displaying in the green leds and on the screen, with lower priority. Terminates when done.

Page 13: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Project Schedule

• Add three new peripherals:Add three new peripherals: VGA, Keyboard and Ethernet. VGA, Keyboard and Ethernet. Until 15.11.09Until 15.11.09

• learn how to use them with learn how to use them with µC. Until 29.11.09

• Write a small program that demonstratesWrite a small program that demonstrates the use of the new peripherals. the use of the new peripherals. Until 13.12.09Until 13.12.09

• Final presentation and report. Final presentation and report. Until 27.12.09Until 27.12.09

Page 14: OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin

Thank You