Commit 870a4b37 authored by Michael Günther Beyer's avatar Michael Günther Beyer
Browse files

Update Michael.emam

parent 07ae210a
Pipeline #80174 passed with stage
in 3 minutes and 34 seconds
...@@ -4,6 +4,7 @@ package lab; ...@@ -4,6 +4,7 @@ package lab;
in: two int numbers, range 0..99 in: two int numbers, range 0..99
out: random number in the given range of "in" out: random number in the given range of "in"
*/ */
/*
component Michael { component Michael {
ports in (0:1:99) inRangeMin, ports in (0:1:99) inRangeMin,
in (0:1:99) inRangeMax, in (0:1:99) inRangeMax,
...@@ -13,3 +14,15 @@ component Michael { ...@@ -13,3 +14,15 @@ component Michael {
outRangeRand = abs(inRangeMax - inRangeMin) * rand + inRangeMin; outRangeRand = abs(inRangeMax - inRangeMin) * rand + inRangeMin;
} }
} }
*/
/* the above caused some automatic built errors, which were not shown in the Email... so now I'll go with something simpler :-) */
component Michael{
ports in Z loop,
out Z out1;
implementation Math{
out1 = loop + loop;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment