How to change the directory to run a hdl simulator?

6 views (last 30 days)
We are trying to run an inbuilt example model ('Verify Viterbi Decoder Using Cadence Incisive') in SIMULINK (version R2013b), for which we are facing an error related to directory. How do we change this directory? A screenshot of the error is being attached with this mail. How do we change this directory? Kindly help us in solving out this problem.

Accepted Answer

Tim McBrayer
Tim McBrayer on 19 Jun 2015
No picture is attached, so I'm not entirely sure what your specific problem is. In general, you can change your current directory in MATLAB in one of a number of ways: using the Current Folder browser, using the Address bar, or using the cd command.
If you are asking about specifying HDL Coder's output directory, you also have several options. In each case you may specify either a relative or an absolute path, in the native format of your operating system. You can always use the HDL Code Generation pane of the Simulink Configuration Set to set the target directory, for any style of code generation flow. If you are using the HDL Workflow Advisor you can specify the top level output directory explicitly using the Workflow Advisor GUI. Finally, if you are calling makehdl or makehdltb directly from the command line or from a script, you can pass a property-value pair of 'TargetDirectory', '<directory_specification>' to the functions.
  2 Comments
Bhajan
Bhajan on 22 Jun 2015
Thank you so much for your time. Earlier, due to some problem, i couldn't successfully attach the screenshot. Now, i've updated the question. I'am facing the similar problem while running other hdl verifer examples as well. Also to mention, when i am clicking on the first option i.e. 'Use HDL Simulator executables on the system path', it automatically jumps up to the next option 'Use the HDL Simulator executables at the following location'.
Tim McBrayer
Tim McBrayer on 22 Jun 2015
I am going to guess that it cannot find a simulator executable on the path, but I'm not sure exactly what's happening.

Sign in to comment.

More Answers (1)

Bharath Venkataraman
Bharath Venkataraman on 22 Jun 2015
You can launch Incisive from the MALTAB command line using the command nclaunch . nclaunch has a property setting for hdlsimdir, where you can specify which directory the Incisive executable is present in.
You can modify the callback for the 'Incisive startup command' startup block in the demo to tell it where to launch Incisive from by modifying the nclaunch command in the callback. Right click on the block and click on Properties. Click on the Callbacks tab and then the OpenFcn option, which shows the call to nclaunch. Add the property value pair 'hdlsimdir', 'path to Incisive' to the command and you should be able to now launch Incisive by double clicking on the block.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!