diff options
author | Jayaram Pai | 2014-05-19 11:02:57 +0530 |
---|---|---|
committer | Jayaram Pai | 2014-05-19 11:02:57 +0530 |
commit | 8377256e7d90aa7ba1cb51f6164e99f81e2eb53c (patch) | |
tree | 5afcc8e82d7f7d4f6fbff900520bd8f05eb343ca /OSCAD/LPCSim/LUT/ids.sce | |
download | FreeEDA-8377256e7d90aa7ba1cb51f6164e99f81e2eb53c.tar.gz FreeEDA-8377256e7d90aa7ba1cb51f6164e99f81e2eb53c.tar.bz2 FreeEDA-8377256e7d90aa7ba1cb51f6164e99f81e2eb53c.zip |
initial commit
Diffstat (limited to 'OSCAD/LPCSim/LUT/ids.sce')
-rw-r--r-- | OSCAD/LPCSim/LUT/ids.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OSCAD/LPCSim/LUT/ids.sce b/OSCAD/LPCSim/LUT/ids.sce new file mode 100644 index 0000000..ab50b51 --- /dev/null +++ b/OSCAD/LPCSim/LUT/ids.sce @@ -0,0 +1,8 @@ +// Wrapper function for calling C language routine ids_c from SciLab +function Id = ids(Vds, Vgs, Vbs) +l=link("/NFS1/yogesh/project/MNA/LUT/libids.so", "ids_c", "c") +Id=0.0; +sizeId=size(Id); +Id=fort("ids_c",Vds, 1,"d",Vgs, 2, "d", Vbs, 3, "d", Id, 4, "d", "out",sizeId, 4, "d"); +ulink(l); +endfunction |