Hyunseok
Newbie
Hi Guys,
I'm trying to use HSPICE circuit file using external library(.so file).
I can't find what is the problemes in below process.
1. .so file
In this external library, I want to input 'string'. So Here is sample C source code.
2. .sp file
With this circuit description, string can't be imported to "char_match" function
And Here is the debug message
Can anyone help?
[moderator action: added CODE tags]
I'm trying to use HSPICE circuit file using external library(.so file).
I can't find what is the problemes in below process.
1. .so file
In this external library, I want to input 'string'. So Here is sample C source code.
Code:
#include <stdio.h>
#include <string.h>
static double char_match(char *c1)
{
if (strcmp(c1,'test_string'))
{
return 0;
}
else
{
return 100;
}
2. .sp file
With this circuit description, string can't be imported to "char_match" function
Code:
*
.option CFLflag
.cfllib './sample_cfl2.so'
.cfl_prototype char_match(param)
.param p1=str('test_string')
.param p2=char_match(p1)
...
And Here is the debug message
Code:
**warning** (sample_cfl2.sp:xx) Parameter XXX is ignored
Using CFL library ./sample_cfl2.so
**error** (sample_cfl2.sp:9) Illegal character in statement in column xx : char_match(p1)
**error** (sample_cfl2.sp:9) Illegal character in statement in column xx : char_match(p1)
Can anyone help?
[moderator action: added CODE tags]
Last edited by a moderator: