Changes between Version 34 and Version 35 of sysgen2opb


Ignore:
Timestamp:
Jun 16, 2006, 4:44:18 PM (18 years ago)
Author:
elliotng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sysgen2opb

    v34 v35  
    11= sysgen2opb Peripheral Conversion Tool =
    2 This is a MATLAB script which converts a model built in Xilinx System Generator into an OPB-compliant peripheral for use with the embedded PowerPCs. The script replaces all the model's gateways in/out with memory mapped registers. It also creates the necessary address decode logic and a C header file with the resulting register map.
     2'sysgen2opb' is a MATLAB script which converts a model built in Xilinx System Generator into an OPB-compliant peripheral for use with the embedded PowerPCs. The script replaces all the model's gateways in/out with memory mapped registers. It also creates the necessary address decode logic and a C header file with the resulting register map.
     3
     4'sysgenGWSM2opb' is a similar script to 'sysgen2opb'. This script includes Shared Memory support.
    35
    46The latest copy of this tool is available in the [source:/PlatformSupport/sysgen2opb/ repository].
     
    1214   1. Replace `yourBaseAddress` with a 32-bit memory address in hexidecimal notation. `FF100000` is usually a safe choice.
    1315   1. Replace `newPrefix` with a string which will replace the `"no_reg"` prefix attached to unconverted gateways. Use a blank string (`''`) to simply strip the `"no_reg_"` prefix.
    14  
     16
     17== Using sysgenGWSM2opb ==
     18  1. This script is supported for System Generator version 8.1
     19  1. Copy the conversion script (''sysgenGWSM2opb.m'') and its required skelton peripheral model (''skeleton_periph_model8GWSM.mdl'') to the same directory as your model.
     20  1. Make sure MATLAB's current working directory is the folder containing your model, the sysgenGWSM2opb script and skeleton model. Run the script on the MATLAB command line like `sysgenGWSM2opb('yourModelName', hex2dec('yourBaseAddress'), 'newPrefix')`.
     21   1. Replace `yourModelName` with your Simulink model's name without the `.mdl` extension.
     22   1. Replace `yourBaseAddress` with a 32-bit memory address in hexidecimal notation. `FF100000` is usually a safe choice.
     23   1. Replace `newPrefix` with a string which will replace the `"no_reg"` prefix attached to unconverted gateways. Use a blank string (`''`) to simply strip the `"no_reg_"` prefix.
     24
    1525== Current Limitations ==
    1626 * The script (''sysgen2opb.m'') and skeleton peripheral model (''skeleton_periph_model7.mdl'' and/or ''skeleton_periph_model8.mdl'') must in the same directory as the model you wish to convert.