Changes between Version 19 and Version 20 of sysgen2opb


Ignore:
Timestamp:
Apr 3, 2006, 9:46:02 AM (18 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sysgen2opb

    v19 v20  
    66== Using sysgen2opb ==
    77 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 two different sysgen2opb files and two different skeleton_periph_model files due to the differences between Sysgen7 and Sysgen8. ''sysgen72opb'' and ''skeleton_periph_model7'' are the two files that should be used for Sysgen7. ''sysgen82opb'' and ''skeleton_periph_model8'' are the two files that should be used for Sysgen8.
    9  1. Copy the script (''sysgen72opb.m'' or ''sysgen82opb.m'') and its relative skelton peripheral model (''skeleton_periph_model7.mdl'' or ''skeleton_periph_model8.mdl'') to the same directory as your model.
    10  1. There are two different ways to run the script based on whether you want prefixes for gateways that are not converted to register:
    11    1. If you do not want to have prefixes, run `sysgen2opb('yourModelName', hex2dec('yourBaseAddress'))` 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.
    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.
     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')`.
     11   1. Replace `yourModelName` with your Simulink model's name without the `.mdl` extension.
     12   1. Replace `yourBaseAddress` with a 32-bit memory address in hexidecimal notation. `FF100000` is usually a safe choice.
     13   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.
    1314 
    14 
    1515== Current Limitations ==
    1616 * The script (''sysgen2opb.m'') and skelton peripheral model (''skeleton_periph_model.mdl'') must in the same directory as the model you wish to convert.