Changes between Version 18 and Version 19 of sysgen2opb
- Timestamp:
- Mar 24, 2006, 3:17:13 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
sysgen2opb
v18 v19 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 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 (''sysgen 2opb.m'') and skelton peripheral model (''skeleton_periph_model.mdl'') to the same directory as your model.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 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 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.