Changes between Version 16 and Version 17 of sysgen2opb
- Timestamp:
- Mar 7, 2006, 1:41:27 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
sysgen2opb
v16 v17 6 6 == Using sysgen2opb == 7 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 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. 8 9 1. Copy the script (''sysgen2opb.m'') and skelton peripheral model (''skeleton_periph_model.mdl'') to the same directory as your model. 9 1. ''More Steps Here'' 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. 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 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. 13 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.13 14 14 15 15 == Current Limitations ==