Changes between Version 28 and Version 29 of sysgen2opb


Ignore:
Timestamp:
May 29, 2006, 1:55:40 PM (18 years ago)
Author:
elliotng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sysgen2opb

    v28 v29  
    55
    66== Using sysgen2opb ==
    7  1. Prepend `"no_reg"` to a gateway's name to prevent its being converted to a register. These gateways will become top-level HDL ports in the exported peripheral.
    8  1. There are different versions of the script and supporting model for System Generator 7.1 and 8.1.
    9  1. Copy the conversion script (''sysgen72opb.m'' or ''sysgen82opb.m'') and its required skelton peripheral model (''skeleton_periph_model7.mdl'' or ''skeleton_periph_model8.mdl'') to the same directory as your model.
    10  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 `sysgen82opb('yourModelName', hex2dec('yourBaseAddress'), 'newPrefix')`.
     7 1. Prepend `"no_reg_"` to a gateway's name to prevent its being converted to a register. These gateways will become top-level HDL ports in the exported peripheral.
     8 1. This script is supported for System Generator version 7.1 and 8.1.
     9 1. Copy the conversion script (''sysgen2opb.m'') and its required skelton peripheral model (''skeleton_periph_model7.mdl'' or ''skeleton_periph_model8.mdl'') to the same directory as your model. ''skeleton_periph_model7.mdl'' is required for System Generator version 7.1 and ''skeleton_periph_model8.mdl'' is required for System Generator version 8.1.
     10 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'), 'newPrefix')`.
    1111   1. Replace `yourModelName` with your Simulink model's name without the `.mdl` extension.
    1212   1. Replace `yourBaseAddress` with a 32-bit memory address in hexidecimal notation. `FF100000` is usually a safe choice.
     
    1414 
    1515== Current Limitations ==
    16  * The script (''sysgen2opb.m'') and skelton peripheral model (''skeleton_periph_model.mdl'') must in the same directory as the model you wish to convert.
     16 * The script (''sysgen2opb.m'') and skelton peripheral model (''skeleton_periph_model7.mdl'' and/or ''skeleton_periph_model8.mdl'') must in the same directory as the model you wish to convert.
    1717 * The model you're converting must contian at least one Gateway In and one Gateway Out which will become registers.
    1818 * Gateways in masked subsystems will not be converted, regardless of their name. Use ports to bring the gateways out of the masked subsystem before converting the model.