10 | | 1. Run `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'))` in MATLAB if you do not want to have prefixes for gateways that are not converted to registers. Otherwise, if you want prefixes, run `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'), 'prefix')` in Matlab. Replace `yourModelName` with your Simulink model's name without the `.mdl` extension. Replace `yourBaseAddress` with a 32-bit memory address in hexidecimal notation. `FF100000` is usually a safe choice. Replace `prefix` with the prefix name that you wish to have for the gateways that are not converted to registers. |
| 10 | 1. There are two different ways to run the script: |
| 11 | 1. Run `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'))` in MATLAB if you do not want to have prefixes for gateways that are not converted to registers. Replace `yourModelName` with your Simulink model's name without the `.mdl` extension. Replace `yourBaseAddress` with a 32-bit memory address in hexidecimal notation. `FF100000` is usually a safe choice. |
| 12 | 1. Otherwise, if you want prefixes, run `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'), 'prefix')` in Matlab. Replace `yourModelName` with your Simulink model's name without the `.mdl` extension. Replace `yourBaseAddress` with a 32-bit memory address in hexidecimal notation. `FF100000` is usually a safe choice. Replace `prefix` with the prefix name that you wish to have for the gateways that are not converted to registers. |