How to change the directory to run a hdl simulator?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Bhajan
il 19 Giu 2015
Risposto: Bharath Venkataraman
il 22 Giu 2015

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.
0 Commenti
Risposta accettata
Tim McBrayer
il 19 Giu 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 Commenti
Tim McBrayer
il 22 Giu 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.
Più risposte (1)
Bharath Venkataraman
il 22 Giu 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.
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!