-
Notifications
You must be signed in to change notification settings - Fork 47
Adding a New XItem to the Repository
Important information about Git branch in this document
Although most of the contributions typically target the master branch, the actual branch accepting contributions depends on the Vivado release and needs to be checked on this page.
In this document, the Git branch can be refereed as master or <branch> but the exact Git branch name should be used for all the Git commands of this document.
The expectation is that you have already developed the example and are ready to contribute to xilinx ced store.
Note: Additional information about Creating new example design can be found inside the Vivado Design Suite User Guide(UG986)
Note: If you have not already cloned the repository, then clone the latest repository and appropriate branch. Setup up the Local Repository
#Change current working directory to github repository directory
cd XilinxCEDStore
#Create a sub-directory for your company
mkdir -p ced/<MY_COMPANY>
#Create a sub-directory for your newly developed example design
mkdir -p ced/<MY_COMPANY>/<MY_NEW_EXAMPLE_SHORT_NAME>
#Copy your example inside
cp -R <MY_DEVELOPED_EXAMPLE>/* ced/<MY_COMPANY>/<MY_NEW_EXAMPLE_SHORT_NAME>/
The xitem json is used by the CED Store engine. It includes the list of brief details about example design along with revision history, author and so forth. The xitem JSON is saved under the example directory and is named xitem.json
To generate a new xitem.json file, use the following python script:
Utility-script-to-create-xitem-file-from-design-xml
Typical Command Usage :
#Change current working directory to github repository directory
cd XilinxCEDStore
#Type 'python ./utility/generate_xitem_json.py --help' for more details.
python ./utility/generate_xitem_json.py --design_file ./ced/<MY_COMPANY>/<MY_NEW_EXAMPLE_SHORT_NAME>/design.xml --output_file ./ced/<MY_COMPANY>/<MY_NEW_EXAMPLE_SHORT_NAME>/xitem.json --company_display_name <OWNER_COMPANY_DISPLAY_NAME> --company_url <OWNER_COMPANY_DISPLAY_NAME> --author <OWNER_NAME_FOR_THIS_EXAMPLE>
ls ./ced/<MY_COMPANY>/<MY_NEW_EXAMPLE_SHORT_NAME>/xitem.json
cd XilinxCEDStore
git checkout <branch>
git add .
git status
git commit -m "message for the change"
git push
Once your changes are submitted to your cloned repository. Generate the pull request from your cloned repo. XilinxCEDStore gatekeepers automatically gets a notification and they will review and submit your changes. Check 'how to generate pull request' for more details.