Prelab2_scshEclipse - Electronics System Level Based Design...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Electronics System Level Based Design Spring, 2006 Pre-Lab 2: CoWare Scsh & Eclipse 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction The purpose of this lab exercise is: 1. Run a simulation by Scsh. 2. Use Eclipse debugging environment. Objectives ± Build and run simulation ± Practice how to Debug: 9 Set a breakpoint in the debugger 9 Watch local variables 9 Turn breakpoint on and off 9 Do an interactive trace Fig.1 The System Diagram of this Lab 2
Background image of page 2
Steps ¾ Simulation Using Scsh I. Create the build.tcl 1. Use tar xvfz pre_lab2.tgz to decompress the lab files. 2. Login and change to directory “ trainClass/sim 3. Examine the contents of names.fof. . % more names.fof 4. Create the build.tcl file. Use your favorite editor. The file contains the following: build.tcl: 5. Save the file. 6. Create the elab.tcl file. The file should contain the following command: 7. Copy the library header file in place. % cp lib/EncDecMessage.h.Build lib/EncDecMessage.h II. Build and run the simulation. 1. Start scsh: % scsh 2. Execute the build script: % source build.tcl 3. Run the simulation: ::scsh> run 4. Notice the output of the simulation. The Input module displays the Message sent . The Channel module displays the encrypted data 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
received from the Encryption module. The Display module displays the decrypted message. III. Call for Help 1. Enter the following commands at the scsh prompt: ::scsh> help PDFmanuals (for PDF manuals) ::scsh> help manuals (for HTML manuals) 4
Background image of page 4
¾ Debugging Using the Eclipse IDE I. Define and Build Project 1. Login and change to directory “ trainClass ” (This is the working directory for this lab) 2. The directories used for this lab are: 9 debug –source code for this exercise 9 trainClass –start Eclipse in this directory. 3. Clear the workspace: rm –rf workspace/.metadata 4. Start the Eclipse platform: % (The splash screen and Workspace Launcher appear) 5. Select the workspace directory. In the Workspace Launcher dialog, Click on the Browse button and select …/trainClass/workspace. 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Click the OK button.(The Eclipse workbench window appears) 6. Right click in the Navigator window and select Import… from the popup menu.(The Import dialog appears) 6
Background image of page 6
Select Scsh Project into Work space in the Select import source pane. Click the
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/23/2009 for the course IEE 5046 taught by Professor Tian-sheuanchang during the Spring '06 term at National Chiao Tung University.

Page1 / 25

Prelab2_scshEclipse - Electronics System Level Based Design...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online