G
Guenther Sohler
Guest
At the moment I am trying to program a C model fuer the
ncvhdl simulator. It works out quite well.
The only problem I am having - I am not able to make my c model sensitive
to signal changes at the input. That means my routine is not automatically
called whenever an input signal changes.
I am trying to use the function fmiAddSignalSensitivity in all
possible configurations, but it does not work.
Can anybody send me any hints or a small working example ?
rds
for(i=0;i<3;i++) // does not work
{ // does not work
signals=vdaAllocateHandle(); // does not work
vdaScopeItemN(parent, vdaSignalClass, i+1, signals); // does not work
// vdaSignalAssign(ports,signals,valtim,vdaInsert,0);
} // does not work
printf("sens=%d\n",fmiAddSignalSensitivity(id, signals, 3)); // does not work
ncvhdl simulator. It works out quite well.
The only problem I am having - I am not able to make my c model sensitive
to signal changes at the input. That means my routine is not automatically
called whenever an input signal changes.
I am trying to use the function fmiAddSignalSensitivity in all
possible configurations, but it does not work.
Can anybody send me any hints or a small working example ?
rds
for(i=0;i<3;i++) // does not work
{ // does not work
signals=vdaAllocateHandle(); // does not work
vdaScopeItemN(parent, vdaSignalClass, i+1, signals); // does not work
// vdaSignalAssign(ports,signals,valtim,vdaInsert,0);
} // does not work
printf("sens=%d\n",fmiAddSignalSensitivity(id, signals, 3)); // does not work