How to change the directory to run a hdl simulator?
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Tim McBrayer
2015-6-19
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 个评论
Tim McBrayer
2015-6-22
I am going to guess that it cannot find a simulator executable on the path, but I'm not sure exactly what's happening.
更多回答(1 个)
Bharath Venkataraman
2015-6-22
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!