Last change
on this file since 61 was
26,
checked in by phdmakk, 14 years ago
|
+ initial testing examples for extension packages
|
File size:
722 bytes
|
Line | |
---|
1 | module ec language "EC:2010"{ |
---|
2 | |
---|
3 | |
---|
4 | type component c1 { |
---|
5 | port sp1 s:=1.0; //4.2.2.2 |
---|
6 | |
---|
7 | } with {stepsize "0.1"}; //4.1.2 |
---|
8 | |
---|
9 | // group g1 { |
---|
10 | // |
---|
11 | // } with {stepsize "0.1"}; //4.1.2 |
---|
12 | // |
---|
13 | // |
---|
14 | testcase tc1 () runs on c1 { |
---|
15 | // var float time := now; //4.1.1 |
---|
16 | var StreamType streamVar := { {val:=1, delta:=1}, {val:=2, delta:=1}, {val:=1, delta:=1}} |
---|
17 | // |
---|
18 | // |
---|
19 | } with {stepsize "0.1"}; //4.1.2 |
---|
20 | // |
---|
21 | type port sp1 stream { //4.2.2 |
---|
22 | out float; |
---|
23 | } with {stepsize "0.1"}; //4.1.2 |
---|
24 | // |
---|
25 | // |
---|
26 | // type record Sample{//<T>{ //4.2.1 Type parameterization not supported w/o corresponding package |
---|
27 | // T val, |
---|
28 | // float delta |
---|
29 | // } |
---|
30 | // |
---|
31 | // type record of Sample StreamType; // <T> StreamType; //4.2.1 |
---|
32 | |
---|
33 | } with {stepsize "0.1"}; //4.1.2 |
---|
Note: See
TracBrowser
for help on using the repository browser.