mirror of
https://github.com/YosysHQ/sby.git
synced 2026-07-31 16:44:05 +00:00
Docs: Running tasks in parallel
Also using make for dependency management/ordering. Includes `tests/stage_sim_and_verif/dependencies.mk` file because I was using that to check my make logic (and the docs example is once again incomplete sby).
This commit is contained in:
parent
138d39159e
commit
3d2d953526
6 changed files with 93 additions and 6 deletions
|
|
@ -3,3 +3,4 @@ bad
|
|||
complex
|
||||
default
|
||||
example
|
||||
dependencies
|
||||
|
|
|
|||
14
docs/examples/tags/dependencies.mk
Normal file
14
docs/examples/tags/dependencies.mk
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.PHONY: stage_1 stage_2 stage_2_alt
|
||||
dependencies_%: dependencies.sby
|
||||
sby -f dependencies.sby $*
|
||||
|
||||
STAGE_1_TARGS = dependencies_stage_1
|
||||
stage_1: $(STAGE_1_TARGS)
|
||||
|
||||
STAGE_2_TARGS = dependencies_stage_2a dependencies_stage_2b
|
||||
$(STAGE_2_TARGS): stage_1
|
||||
stage_2: $(STAGE_2_TARGS)
|
||||
|
||||
# both tasks together
|
||||
stage_2_alt: stage_1
|
||||
sby -f dependencies.sby stage_2a stage_2b
|
||||
4
docs/examples/tags/dependencies.sby
Normal file
4
docs/examples/tags/dependencies.sby
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[tasks]
|
||||
stage_1
|
||||
stage_2a
|
||||
stage_2b
|
||||
Loading…
Add table
Add a link
Reference in a new issue