Your Next Performance Model

Build on the first step.

Continue the performance-modeling tutorial with a second example. Extend your understanding of system modeling through the documented workflow.

Learning to Use CSIM Perf. Mod. Lib. - Example II

A New User's Second Model

The following is a step-by-step tutorial of how to extend the model created in tutorial one, A New User's First Model.

Step 1:
Add a Bus
and a
Third
Processor

A.) Open the GUI to your hardware architecture.

Either type gui architecture.sim and hit enter at the command line, or select File/Open from within the GUI.

B.) Zoom-Out so you can add new boxes.
C.) Replicate one of the processors, by:

  • Select one of the existing processor boxes by pointing at it in Select/Move mode.
  • Hit Edit/Copy, or control-C, to copy the object.
  • Hit Edit/Paste, or control-V, to paste the object.
  • Move the replicated processor below the other two.
  • Open it's properties to set it's instance name to processor_C.

D.) Add a new box to the left of the existing boxes.

Set it's instance name to be Bus.
Set it's type to be local_bus.
(Hint: Use the Types button next to the Type-Name field.)

E.) Move the link connecting processor_A and processor_B so that it connects processor_A to the Bus.

Do this in Select/Move mode by grabbing the vertex (arrow) attached to processor_B and swinging it over to the Bus

F.) Replicate the link to connect the other two processors to the bus.

  • Do this in Select/Move mode by selecting the link,
  • Hit Edit/Copy, or control-C, to copy the link.
  • Hit Edit/Paste, or control-V, to paste the link.
  • Move the replicated link to connect processor_B to the Bus.
  • Repeat for processor_C.

G.) Edit the properties of the three links to set the second port-name to p0, p1, and p3, respectively, for the three link connections to the Bus. (Hint: Use the Names button next to the port-name field.)

The diagram should appear as shown here:

tut2 hw

H.) Save your diagram: File / Save

You have now expanded the hardware architecture model.

Step 2:
Build
Hardware

Select: Tools / Build Simulation

Watch the text window from which you launched the GUI for messages about the status of the build-processing.

Step 3:
Update
Routing
Table

Select: Tools / Build Routing Table

Because you changed the hardware architecture, it is necessary to re-build the routing table.

Step 4:
Expand
Software
Application
Graph

A.) Open the GUI to your software Data Flow Graph.

Either type gui DFG_1.dfg and hit enter at the command line, or select File/Open from within the GUI. You should see your old graph.

B.) Add two new nodes to your data flow graph.

Connect the nodes with arcs.

Make the graph appear as this:

tut2 sw

C.) Set the properties of the new boxes to be:

  • Instance Name = Task_X
  • Compute Time = 5
  • Map PE = /processor_C

For the one box, and for the other:

  • Instance Name = Task_Y
  • Compute Time = 5
  • Map PE = /processor_C

D.) Set the properties of the new arc to be:
For the arc connecting the START box and the Task_X box:

  • Produce Amount = 40
  • Threshold Amount = 10
  • Consume Amount = 10

For the arc connecting the Task_Q box and the Task_Y box:

  • Produce Amount = 10
  • Threshold Amount = 10
  • Consume Amount = 10

For the arc connecting the Task_X box and the Task_Y box:

  • Produce Amount = 10
  • Threshold Amount = 10
  • Consume Amount = 10

The port names do not matter here.

E.) Save your diagram: File / Save

You have now expanded your application Data Flow Graph (DFG).

Step 5:
Build
Software

Select: Tools / Build DFG SW

Watch the text window from which you launched the GUI for messages about the status of the build-processing.

You can plot the ideal timeline by: Tools / Plot Ideal Timeline.
It should look like:tut2 idealtline

Note that the ideal time-line does not consider actual data transfer delays nor the effects of contentions on such transfers. Only task computation sequences and concurrencies are considered.

Step 6:
Run the
Simulation

Select: Tools / Run Simulation

The simulation control panel window will pop up.
Hit Run/Cont..

Step 7:
View
Time-Line
Results

Select: Tools / Plot Comm+Proc TLine

The graph should appear as:tut2 tline

The diagonal or vertical lines represent the data transfers between processors. The horizontal lines indicate the processing of tasks. Dismiss the graph.


ret

(Questions, Comments, & Suggestions: admin@csim.com)

This page is an editorial rewrite of source documentation. Historical status, availability, and platform notes are not independently verified for a current release. Technical examples are reference material, not a live simulator.