cadence and matlab

Discussion in 'Cadence' started by Sabyasachi, Aug 5, 2009.

  1. Sabyasachi

    Sabyasachi Guest

    hello everybody,

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

    thanks in advance
     
    Sabyasachi, Aug 5, 2009
    #1
  2. Sabyasachi

    Riad KACED Guest

    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.
     
    Riad KACED, Aug 5, 2009
    #2
  3. Sabyasachi

    Sabyasachi Guest

    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.
     
    Sabyasachi, Aug 6, 2009
    #3
  4. Sabyasachi

    Riad KACED Guest

    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.
     
    Riad KACED, Aug 6, 2009
    #4
  5. Sabyasachi

    Sabyasachi Guest

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


    [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")
     
    Sabyasachi, Aug 7, 2009
    #5
  6. Sabyasachi

    Riad KACED Guest

    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.
     
    Riad KACED, Aug 7, 2009
    #6
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.