NCVHDL C interface

Discussion in 'Cadence' started by Guenther Sohler, Jun 20, 2005.

  1. 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
     
    Guenther Sohler, Jun 20, 2005
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.