The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 20th, 2024, 12:13am
Pages: 1
Send Topic Print
VPI within analog section (Read 1853 times)
Fabian H.
New Member
*
Offline



Posts: 3

VPI within analog section
Oct 17th, 2014, 8:39am
 
Hi,

does any body know where to find, or can any body give me a small working example of the two not working examples given in Verilog-AMS Language  Reference Manual Version 2.4.0 May 30, 2014 described in Section 12.22.2 Examples and/or 12.32.3 Examples.

I only know these two examples, which starts VPI-routines within a analog section. Do you know other examples?

I tried to compile these examples in a small circuit, but the compilation gained different errors.
Of course I added the header files vpi_user vpi_cds_user andvpi_ams.

I invoked the compilation for the sample and hole example with:
irun scf.scs top.vams sampler.vams sampler.c -loadvpi:sampler_compile_tf


I received the following errors:

Can you pleas help me?

Thanks a lot

regards
Fabian


ncsc: compiling $TESTDIR/sampler.c

make: *** [INCA_libs/irun.lnx8664.13.10.nc/ncsc_run/ncsc_obj/sampler.o] Error 1
$TESTDIR/sampler.c: In function 'sampler_compiletf':
$TESTDIR/sampler.c:68: error: request for member 'type' in something not a structure or union
$TESTDIR/sampler.c:70: error: request for member 'real' in something not a structure or union
$TESTDIR/sampler.c:32: warning: unused variable 'value'
$TESTDIR/sampler.c:29: warning: unused variable 'cb_data'
$TESTDIR/sampler.c:28: warning: unused variable 'returnHandle'
$TESTDIR/sampler.c: In function 'sampler_calltf':
$TESTDIR/sampler.c:80: warning: cast to pointer from integer of different size
$TESTDIR/sampler.c:85: warning: implicit declaration of function 'vpi_set_value'
$TESTDIR/sampler.c:81: warning: unused variable 'value'
$TESTDIR/sampler.c: In function 'sampler_postcompile_cb':
$TESTDIR/sampler.c:97: warning: implicit declaration of function 'malloc'
$TESTDIR/sampler.c:97: warning: incompatible implicit declaration of built-in function 'malloc'
$TESTDIR/sampler.c:107: error: 'periodHandle' undeclared (first use in this function)
$TESTDIR/sampler.c:107: error: (Each undeclared identifier is reported only once
$TESTDIR/sampler.c:107: error: for each function it appears in.)
$TESTDIR/sampler.c:111: error: 'acbElapsedTime' undeclared (first use in this function)
$TESTDIR/sampler.c:113: error: request for member 'type' in something not a structure or union
$TESTDIR/sampler.c:113: error: 'vpiScaledTme' undeclared (first use in this function)
$TESTDIR/sampler.c:115: error: request for member 'real' in something not a structure or union
$TESTDIR/sampler.c: In function 'sampler_update_cb':
$TESTDIR/sampler.c:131: error: 'acbAbsTime' undeclared (first use in this function)
$TESTDIR/sampler.c:133: error: request for member 'type' in something not a structure or union
$TESTDIR/sampler.c:133: error: 'vpiScaledTime' undeclared (first use in this function)
$TESTDIR/sampler.c:135: error: request for member 'real' in something not a structure or union
$TESTDIR/sampler.c:135: warning: implicit declaration of function 'vpi_get_analog_time'
$TESTDIR/sampler.c:136: warning: implicit declaration of function 'register_callback'
$TESTDIR/sampler.c: At top level:
$TESTDIR/sampler.c:148: warning: initialization from incompatible pointer type
$TESTDIR/sampler.c:149: warning: initialization from incompatible pointer type
$TESTDIR/sampler.c:153: warning: excess elements in struct initializer
$TESTDIR/sampler.c:153: warning: (near initialization for 'sampler_systf')
ncsc_run: *E,TBBLDF: Failed to generate object ./INCA_libs/irun.lnx8664.13.10.nc/ncsc_run/ncsc_obj/sampler.o



Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.