-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #937 from firesim/prep-for-main
Update for `main` as `dev` branch
- Loading branch information
Showing
11 changed files
with
37 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: firesim-publish-scala-doc | |
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
tags: | ||
- '[0-9]*.[0-9]*.[0-9]*' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ formats: all | |
|
||
sphinx: | ||
configuration: docs/conf.py | ||
fail_on_warning: true | ||
|
||
submodules: | ||
exclude: all | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,57 @@ | ||
Contributing to FireSim | ||
============================= | ||
|
||
|
||
### Branch management: | ||
|
||
#### Write-Protected Branches (Require PR approval) | ||
1) master = stable release. Documentation updates and release-exposed bug fixes can be opened against this branch. | ||
2) dev = development branch. Substantial code changes and feature additions must be based against this branch. | ||
1) tagged branches = stable releases. Documentation updates and release-exposed bug fixes can be opened against these branches. | ||
2) main = development branch. Substantial code changes and feature additions must be based against this branch. | ||
|
||
#### External Dependencies: | ||
1) Other repos in FireSim github org: master should be the version submoduled in firesim/firesim master. Likewise, firesim/firesim dev should point at dev branches in submodules. | ||
2) Forks in FireSim github org: master reflects newest upstream that we’ve bumped to, firesim branch that reflects what’s submoduled in firesim/firesim, firesim is the default branch of the fork | ||
3) ucb-bar hosted dependencies (e.g. midas): firesim branch that reflects what’s submoduled in firesim, should follow the same PR discipline as merging into firesim/firesim master | ||
1) Other repos in FireSim github org: must be pointing to tagged version in firesim/firesim tagged branch. Likewise, firesim/firesim main should point at dev/main/master branches in submodules (depending on the name of their equivalent "main" branch). | ||
2) Forks in FireSim github org: master/main reflects newest upstream that we’ve bumped to, firesim branch that reflects what’s submoduled in firesim/firesim, firesim is the default branch of the fork | ||
3) ucb-bar hosted dependencies: firesim branch that reflects what’s submoduled in firesim, should follow the same PR discipline as merging into firesim/firesim tagged release branch | ||
|
||
PRs to write protected branches (master/dev) that bump submodule pointers must open PRs to the matching branch in the submodule's repository. | ||
PRs to write protected branches (i.e main) that bump submodule pointers must open PRs to the matching branch in the submodule's repository. | ||
|
||
#### Chipyard <-> FireSim Submodule Dependency | ||
|
||
Chipyard subsumes FireChip as a more complete SoC development environment. In order to support a use case where either Chipyard or FireSim is clone as the top-level repository, we've introduced a circular submodule depedency between the two repositories. | ||
Chipyard subsumes FireChip as a more complete SoC development environment. | ||
In order to support a use case where either Chipyard or FireSim is clone as the top-level repository, we've introduced a circular submodule depedency between the two repositories. | ||
|
||
- Firesim submodules Chipyard at `target-design/chipyard` | ||
- Chipyard submodules Firesim at `sims/firesim` | ||
|
||
*This only applies to circumstances in which you are making changes to both Chipyard and Firesim.* | ||
Joint modifications to Chipyard and FireSim sources will require additional commit in at least one of the two repositories. Our recommend procedure is as follows. Commits are labeled <COMMIT_NAME>(<SUBMODULE_COMMIT_NAME>). | ||
Joint modifications to Chipyard and FireSim sources will require additional commit in at least one of the two repositories. | ||
Our recommend procedure is as follows. | ||
Commits are labeled <COMMIT_NAME>(<SUBMODULE_COMMIT_NAME>). | ||
|
||
``` | ||
Firesim:dev -> A(I) -> ... -> ?(?) E(L) Fast-forward (5) | ||
\ \ / | ||
Firesim:main -> A(I) -> ... -> ?(?) E(L) Fast-forward (5) | ||
\ \ / | ||
Firesim:feature B(J) -> ... -> C(K~1) -> D(?) -> E(L) | ||
(1) (2) (4) | ||
Chipyard:dev -> I(A) -> ... -> ?(?) L(D) Fast-forward (5) | ||
\ \ / | ||
Chipyard:feature J(A) -> ... -> K(C) -> L(D) | ||
(1) (3) | ||
Chipyard:main -> I(A) -> ... -> ?(?) L(D) Fast-forward (5) | ||
\ \ / | ||
Chipyard:feature J(A) -> ... -> K(C) -> L(D) | ||
(1) (3) | ||
(1) Create a feature branch and develop it. CI must pass in Chipyard. | ||
(2) Merge firesim:dev into firesim:feature. At this point the CY submodule pointer cannot be resolved. | ||
(3) Merge chipyard:dev into chipyard:feature. Point the firesim submodule pointer at D | ||
(1) Create a feature branch and develop it. CI must pass in Chipyard. | ||
(2) Merge firesim:main into firesim:feature. At this point the CY submodule pointer cannot be resolved. | ||
(3) Merge chipyard:main into chipyard:feature. Point the firesim submodule pointer at D | ||
(4) Bump chipyard in firesim:feature to point at E. | ||
(5) Merge (fast-forward) feature branches into dev branches | ||
(5) Merge (fast-forward) feature branches into main branches | ||
``` | ||
|
||
Now, checking out commit E when using FireSim as your top-level repository, or checking out commit L if using Chipyard as your top-level repository should provide a source-identical user experience, with submodules pointing at commits on dev. | ||
Now, checking out commit E when using FireSim as your top-level repository, or checking out commit L if using Chipyard as your top-level repository should provide a source-identical user experience, with submodules pointing at commits on main. | ||
|
||
### AGFI Generation: | ||
|
||
The head of dev and master branches must always have pre-generated AGFIs derived from the same sources provided by FireSim and Chipyard. Any commit that could change that would produce different RTL than was used to generate the AGFI, should rebuild, and publish freshly generated AGFIs. We do this to make it possible to bisect on commits that regenerated the AGFIs to find the source of a simulation bug, without needing to regenerate AGFIs as we bisect. | ||
The head of main and tagged branches must always have pre-generated AGFIs derived from the same sources provided by FireSim and Chipyard. Any commit that could change that would produce different RTL than was used to generate the AGFI, should rebuild, and publish freshly generated AGFIs. We do this to make it possible to bisect on commits that regenerated the AGFIs to find the source of a simulation bug, without needing to regenerate AGFIs as we bisect. | ||
|
||
External contributors: if you do not have the resources to regenerate all pre-built AGFIs, feel free to reach out to firesim developers. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule chipyard
updated
27 files
+1 −1 | .github/PULL_REQUEST_TEMPLATE.md | |
+1 −1 | .github/actions/run-tests/action.yml | |
+13 −29 | .github/scripts/check-commit.sh | |
+1 −2 | .github/scripts/defaults.sh | |
+1 −3 | .github/workflows/chipyard-run-tests.yml | |
+44 −0 | .gitmodules | |
+0 −1 | .readthedocs.yml | |
+57 −2 | CHANGELOG.md | |
+3 −3 | CONTRIBUTING.md | |
+4 −4 | README.md | |
+15 −15 | docs/VLSI/ASAP7-Tutorial.rst | |
+1 −1 | docs/VLSI/Building-A-Chip.rst | |
+157 −0 | docs/VLSI/Sky130-Tutorial.rst | |
+2 −1 | docs/VLSI/index.rst | |
+1 −1 | scripts/init-submodules-no-riscv-tools-nolog.sh | |
+1 −1 | scripts/init-vlsi.sh | |
+1 −1 | sims/firesim | |
+7 −3 | vlsi/Makefile | |
+1 −1 | vlsi/example-asap7.yml | |
+1 −1 | vlsi/example-design.yml | |
+1 −1 | vlsi/example-nangate45.yml | |
+175 −0 | vlsi/example-sky130.yml | |
+0 −1 | vlsi/example-vlsi | |
+64 −0 | vlsi/example-vlsi-sky130 | |
+1 −1 | vlsi/hammer | |
+1 −1 | vlsi/hammer-cadence-plugins | |
+1 −1 | vlsi/hammer-synopsys-plugins |