22 | | 1. Make sure MATLAB's current working directory is the folder containing your model, the sysgen2opb script and skeleton model. Run the script on the MATLAB command line like: `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'),'yourScriptChoice', 'yourSMChoice', 'yourCSChoice', 'yourAppend')`. |
23 | | 1. Replace 'yourModelName' with your Simulink model's name without the `.mdl` extension. |
24 | | 1. Replace 'yourBaseAddress' with a 32-bit memory address in hexidecimal notation. `FF100000` is usually a safe choice. |
| 21 | 1. Make sure MATLAB's current working directory is the folder containing your model, the sysgen2opb script and skeleton model. Run the script on the MATLAB command line like: `sysgen2opb('yourModelName', 'yourScriptChoice', 'yourSMChoice', 'yourCSChoice', 'yourAppend')` |
| 22 | |
| 23 | 1. Replace 'yourModelName' with your Simulink model's name without the .mdl extension. |
35 | | 1. For Simple Gateways, From/To Registers, Shared Memory Extension, and Configurable Subsystem Extension Script, replace 'yourAppend' with a string which will replace the "no_reg_" prefix attached to unconverted gateways. For Memory Reinitialization, 'yourAppend' will append the string to the name of the system. |
36 | | 1. Additional options: |
37 | | 1. If you want to run the simple gateway script with no shared memory extension, no configurable subsystem extension, and a blank string to strip away the "no_reg_" prefix, run: `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'))` |
38 | | 1. If you want to run the Memory Reinitialization Script, run: `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'), 'reinitmem')` |
39 | | 1. If you want to run the Memory Reinitialization Script, with a string appended to the model name, run: `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'), 'reinitmem', 'yourAppend')` |
40 | | 1. If you want to run the From/To register script with no shared memory extension, no configurable subsystem extension, and a blank string to strip away the "no_reg_" prefix, run: `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'), 'ftreg')` |
41 | | 1. If you want to run the simple gateway script or From/To Register script with your choice on shared memory, no configurable subsystem extension, and a blank string to strip away the "no_reg_" prefix, run: `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'), 'yourScriptChoice', 'yourSMChoice')` |
42 | | 1. If you want to run the simple gateway script or From/To Register script with your choice on shared memory, with your choice on configurable subsystem extension, and a blank string to strip away the "no_reg_" prefix, run: `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'), 'yourScriptChoice', 'yourSMChoice', 'yourCSChoice')` |
| 33 | 1. For Simple Gateways, From/To Registers, Shared Memory Extension, and Configurable Subsystem Extension Script, replace 'yourAppend' with a string which will replace the "no_reg_" prefix attached to unconverted gateways. |
| 34 | 1. Additional Options |
| 35 | 1. If you want to run the From/To register script with no shared memory extension, no configurable subsystem extension, and a blank string to strip away the "no_reg_" prefix, run: `sysgen2opb('yourModelName')` |
| 36 | 1. If you want to run the simple gateway script with no shared memory extension, no configurable subsystem extension, and a blank string to strip away the "no_reg_" prefix, run: `sysgen2opb('yourModelName', 'gw')` |
| 37 | 1. If you want to run the simple gateway script or From/To Register script with your choice on shared memory, no configurable subsystem extension, and a blank string to strip away the "no_reg_" prefix, run: `sysgen2opb('yourModelName', 'yourScriptChoice', 'yourSMChoice')` |
| 38 | 1. If you want to run the simple gateway script or From/To Register script with your choice on shared memory, with your choice on configurable subsystem extension, and a blank string to strip away the "no_reg_" prefix, run: `sysgen2opb('yourModelName', 'yourScriptChoice', 'yourSMChoice','yourCSChoice');` |
| 39 | |