11 | | 1. The script is only supported for use with Xilinx System Generator 8.1 and 8.2. |
12 | | 1. Copy the conversion script (''sysgen2opb.m'') and its required skelton peripheral model (''skeleton_periph_model.mdl'') to the same directory as your model. |
13 | | 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', 'yourSMChoice')` |
14 | | 1. Replace 'yourModelName' with your Simulink model's name without the .mdl extension. |
15 | | 1. Replace 'yourSMChoice' with one of the following: |
16 | | 1. 'smon' which will turn on the Shared Memory Extension Script |
17 | | 1. 'smoff' which will turn off the Shared Memory Extension Script |
18 | | |
19 | | 1. Additional Options |
20 | | 1. If you want to run the original script that utilizes From/To Registers with no shared memory extension, run: `sysgen2opb('yourModelName')` |
| 21 | 1. Change MATLAB's current working directory to the folder containing your model |
| 22 | 1. Close your model |
| 23 | 1. On the MATLAB command line, run {{{sysgen2opb('modelName')}}} |
| 24 | 1. Your model should now be ready to be generated by the OPB Export Tool. |
| 25 | |
| 26 | == Examples == |
| 27 | * [wiki:Workshops/Rice_2007March/Files/WARP_WorkshopExercise_2_sysgen2opbIntro.pdf?format=raw Intro to sysgen2opb] Lab Exercise (from WARP Workshops) |
| 28 | |
| 29 | == Current sysgen2opb Extensions == |
| 30 | * [wiki:sysgen2opb/SharedMemory Shared Memory] |
23 | | * The script (''sysgen2opb.m'') and skeleton peripheral model (''skeleton_periph_model.mdl'') must in the same directory as the model you wish to convert. |
24 | | * The model you're converting must contain at least one From Register and one To Register. |
25 | | * The base address and memory size of the resulting OPB peripheral cannot be changed dynamically in XPS. These parameters must be entered manually in XPS and locked before autogenerating addresses for other peripherals. |
26 | | * All From/To Registers must be clocked at the system sample period. |
27 | | * Any sources driving gateways which are converted to registers will remain in the model. Functionally this is fine; they're just clutter. |
| 33 | * The model you're converting must contain at least one RW Register and one RO Register. |
| 34 | * The generated OPB interface must be clocked at the system sample period. |