cadence and matlab

S

Sabyasachi

Guest
hello everybody,

can anyone tell me is it possible to run oceanscript files from
matlab?

thanks in advance
 
Hi,

Off the top of my head, you can run whatever external program from
Matlab. Running ocean would not be a problem as long as your
environment is all up and set to run an ocean script. But I guess you
want to read back the results into your Matlab script. In this case, I
would advise looking at the Matlab toolbox in Spectre. That's what I
personally use. there is also a capability in AMS Designer to run a
Simulink-Cadence cosimulation.
1. The Spectre/RF MATLAB Toolbox is documented in the Virtuoso Spectre
Circuit Simulator RF Analysis Theory. This doc is available from your
MMSIM tree at : $MMSIMHOME/doc/spectreRFTheory/spectreRFTheory.pdf
2. The Co-Simulation with AMS Designer and MATLABŽ/SIMULINK chapter is
available from the Workshop for AMSD Virtuoso Use Model. This doc is
available from your IC stream at: $CDSHOME/doc/AVUM_workshop/
AVUM_workshop.pdf

That's what I personally do, i.e. invoking Matlab from cadence.

What do you want to achieve BTW ? This gives me a better idea for a
better advice !

Cheers,
Riad.
 
Sir,
Thank you for your suggestion. I am facing one problem when i try
to run ocean script from linux terminal i am typing onean but it is
showing ocean command not found.
I guess my settings are not appropiate. What to do. I am also not
finding .oceanrc file in my home directory. Does the problem occuring
for this. Please help me. I am novice in this field. Please also let
me know how to do the set up to run ocean script files from linux
terminal. I am using RHEL5 enterprise linux.
 
Hi,

Your Environment should be setup for the IC and MMSIM stream:
1. Your PATH variable should be including the IC and MMSIM executable
2. Your license variable: CDS_LIC_FILE (or whatever) should be
pointing to right license server.

your local EDA guy should be able to help you with this.
As per the ocean command, I would recommend:

ocean –restore myOceanScript.ocn

Regards,
Riad.
 
Now I can run oceanscript files from terminal but when i try to run it
from matlab error occuring



system('tcsh')
[sabyasachi@jupiter sabyasachi]# source .cshrc1
[sabyasachi@jupiter sabyasachi]# icfb&
[1] 17495
[sabyasachi@jupiter sabyasachi]# Xlib: connection to ":0.0" refused by
server

Xlib: No protocol specified


*WARNING* X Window Display Initialization failure
*WARNING* (DISPLAY ":0.0")

[1] Exit 255 icfb
[sabyasachi@jupiter sabyasachi]# ocean
Xlib: connection to ":0.0" refused by server

Xlib: No protocol specified


*WARNING* X Window Display Initialization failure
*WARNING* (DISPLAY ":0.0")
 
Hi,

you may need to set the display and allow displaying on your terminal
try the unix commands:
xhost +
setenv DISPLAY TO_YOUR_DISPLAY

Again, your local IT can help you with this. Google is a good
companion as well.

Cheers,
Riad.
 

Welcome to EDABoard.com

Sponsor

Back
Top