This is a place for the community to share their Icestudio examples: projects, blocks, verilog code, etc.
Some tips to contribute (assuming that the user is smith):
- Fork the GitHub repository. This will create a remote fork in smith/icestudio-examples
- Clone your fork:
git clone https://github.com/smith/icestudio-examples.git
- Enter the directory:
cd icestudio-examples
- Add the upstream:
git remote add upstream https://github.com/FPGAwars/icestudio-examples.git
Note: this must be done only once. Upstream is the alias of the remote main repository.
- Create your example's dir:
mkdir myexample
- Add your example's files: *.ice, *.iceb, *.v, *.list, etc
- Add the example.json file: use template/example.json as reference
- Add your example to git:
git add myexample
- Commit the changes:
git commit -m 'Add myexample'
- Push the example into GitHub:
git push origin master
Note: origin is the alias of your remote forked repository. Master is the name of the main branch.
- Go to your fork website: https://github.com/smith/icestudio-examples
- Start a pull request: press 'New pull request'
- Create a pull request: press 'Create a pull request' and wait until it is merged or commented
Note: any new commit pushed into your GitHub repository before it is merged, will be added to the current pull request.
- Check your repository: make sure that you don't have not staged files
- Download the upstream changes:
git pull upstream master
- Upload the changes to origin:
git push origin master