1 / 2

Lab 1: Kahn Process Networks - Session 4 -

Lab 1: Kahn Process Networks - Session 4 -. Peter Marwedel Heiko Falk TU Dortmund Informatik 12 Germany. 0 if n = 0. Remember the Fibonacci numbers: F ( n ) = 1 if n = 1. F ( n -2) + F ( n -1) if n > 1. Kahn process networks.

onaona
Télécharger la présentation

Lab 1: Kahn Process Networks - Session 4 -

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 1: Kahn Process Networks- Session 4 - Peter Marwedel Heiko Falk TU Dortmund Informatik 12 Germany

  2. 0 if n = 0 Remember the Fibonacci numbers: F(n) = 1 if n = 1 F(n-2) + F(n-1) if n > 1 Kahn process networks • Create the following simple processes: • Process Init1(input A, output B): At the start, it sends just once the integer value “1” on its output channel. Afterwards, it executes in an infinite loop: Read one value from the input channel and put it on the output channel. • Process Init0(input A, output B): At the start, it sends just once the integer value “0” on its output channel. Afterwards, it has the same behavior like process init1. • 2 x Process Dup(input A, output B, C): It executes in an infinite loop: Read one value from the input channel and put the value on both output channels. • Process Add(input A, B, output C): It executes in an infinite loop: Read one value from each input channel. Add the two values. Put the result on its output channel. • Process Sink(input A): In an infinite loop, this process reads one value from the input channel per cycle. • Develop a process network which produces the sequence of the Fibonacci numbers. Use the processes created in the previous task. • Start the visualization and check if your process network is correct. • Use the online help of leviKPN to find details about the usage of this software.

More Related