Gerneric type in initialization parameter
Consider the following two components:
package test;
component Delay<T> (T initval) {
port
in T in1,
out T out1;
implementation Math {
static T sval = initval;
out1 = sval;
sval = in1;
}
}
package test;
component DelayTest {
port
in Q in1,
out Q out1;
instance Delay<Q>(2) delayInstanceZ;
connect in1 -> delayInstanceZ.in1;
connect delayInstanceZ.out1 -> out1;
}
While generating it produces an error and terminates: [ERROR] Case not handled!