-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: restructuring images directory
see also previous commit Also updates `scripting_intro.rst` to use literal includes, and uses individual image outputs to avoid the intermediary `.tex` file to join them all.
- Loading branch information
1 parent
dbc38d7
commit b6e61c1
Showing
44 changed files
with
132 additions
and
238 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
/build/ | ||
/source/cmd | ||
/source/temp | ||
/source/_images/*.log | ||
/source/_images/*.aux | ||
/source/_images/*.pdf | ||
/source/_images/*.svg | ||
/source/_images/**/*.log | ||
/source/_images/**/*.aux | ||
/source/_images/**/*.pdf | ||
/source/_images/**/*.svg | ||
/source/_images/**/*.dot | ||
/source/_images/code_examples |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,62 +1,46 @@ | ||
all: resources dots tex svg tidy | ||
all: examples all_tex tidy | ||
|
||
RES_LIST:= PRESENTATION_Intro/ PRESENTATION_ExSyn/ PRESENTATION_ExAdv/ PRESENTATION_ExOth/ | ||
RES_DIRS:= $(addprefix ../../resources/,$(RES_LIST)) | ||
.PHONY: resources | ||
resources: $(RES_DIRS) | ||
FORCE: | ||
../../resources/%: FORCE | ||
@$(MAKE) -C $@ | ||
@mkdir -p res/$* | ||
@cp --update -t res/$* $@*.dot | ||
|
||
TEX_SOURCE:= $(wildcard *.tex) | ||
DOT_LOC:= ../APPNOTE_011_Design_Investigation | ||
DOT_SOURCE:= $(wildcard $(DOT_LOC)/*.dot) | ||
|
||
RES_DOTS:= $(wildcard res/*/*.dot) | ||
RES_DIRS:= $(sort $(dir $(RES_DOTS))) | ||
RES_PDF:= $(RES_DOTS:%.dot=%.pdf) | ||
# set a fake time in pdf generation to prevent unnecessary differences in output | ||
FAKETIME := TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' | ||
|
||
TEX_SOURCE+= 011/example_out.tex | ||
011/example_out.pdf: 011/example_00.pdf 011/example_01.pdf 011/example_02.pdf | ||
TEX_SOURCE+= 011/select_prod.tex | ||
011/select_prod.pdf: 011/sumprod_02.pdf 011/sumprod_03.pdf 011/sumprod_04.pdf 011/sumprod_05.pdf | ||
TEX_SOURCE+= 011/splitnets_libfile.tex | ||
011/splitnets_libfile.pdf: 011/cmos_00.pdf 011/cmos_01.pdf | ||
TEX_SOURCE+= 011/submod_dots.tex | ||
011/submod_dots.pdf: 011/submod_00.pdf 011/submod_01.pdf 011/submod_02.pdf 011/submod_03.pdf | ||
# find all code example makefiles | ||
.PHONY: examples | ||
CODE_EXAMPLES := ../code_examples/*/Makefile | ||
examples: $(CODE_EXAMPLES) | ||
|
||
TEX_PDF:= $(patsubst %.tex,%.pdf,$(TEX_SOURCE)) | ||
DOT_PDF:= $(addprefix 011/,$(notdir $(patsubst %.dot,%.pdf,$(DOT_SOURCE)))) | ||
SVG_OUTPUT:= $(patsubst %.pdf,%.svg,$(TEX_PDF) $(DOT_PDF) $(RES_PDF)) | ||
# target to convert specified dot file(s) | ||
.PHONY: convert | ||
TARG_DOT ?= | ||
convert: $(TARG_DOT:.dot=.pdf) $(TARG_DOT:.dot=.svg) | ||
|
||
dots: $(DOT_PDF) $(RES_PDF) | ||
tex: $(TEX_PDF) | ||
svg: $(SVG_OUTPUT) | ||
|
||
011/%.pdf: $(DOT_LOC)/%.dot | ||
TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< | ||
# use empty FORCE target because .PHONY ignores % expansion, using find allows | ||
# us to generate everything in one pass, since we don't know all of the possible | ||
# outputs until the sub-makes run | ||
FORCE: | ||
../%/Makefile: FORCE | ||
@make -C $(@D) dots | ||
@mkdir -p $* | ||
@find $(@D) -name *.dot -exec cp -u {} -t $* \; | ||
@find $* -name *.dot -printf "%p " | xargs -i make --no-print-directory convert TARG_DOT="{}" | ||
|
||
res/%.pdf: res/%.dot | ||
TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< | ||
# find and build all tex files | ||
.PHONY: all_tex | ||
TEX_FILES := $(wildcard **/*.tex) | ||
all_tex: $(TEX_FILES:.tex=.pdf) $(TEX_FILES:.tex=.svg) | ||
|
||
011/%.pdf: 011/%.tex | ||
cd 011 && TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' pdflatex $(<F) --interaction=nonstopmode | ||
%.pdf: %.dot | ||
$(FAKETIME) dot -Tpdf -o $@ $< | ||
|
||
%.pdf: %.tex | ||
pdflatex $< --interaction=nonstopmode | ||
cd $(@D) && $(FAKETIME) pdflatex $(<F) --interaction=nonstopmode | ||
|
||
%.svg: %.pdf | ||
pdf2svg $< $@ | ||
|
||
.PHONY: clean tidy | ||
tidy: | ||
rm -f *.log | ||
rm -f *.aux | ||
rm -f 011/*.log 011/*.aux | ||
rm -f **/*.log **/*.aux | ||
|
||
clean: tidy | ||
rm -f *.pdf | ||
rm -f *.svg | ||
rm -f 011/*.pdf 011/*.svg | ||
rm -rf $(RES_DIRS) | ||
rm -rf code_examples | ||
rm -f **/*.pdf **/*.svg |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
PROGRAM_PREFIX := | ||
|
||
YOSYS ?= ../../../$(PROGRAM_PREFIX)yosys | ||
YOSYS ?= ../../../../$(PROGRAM_PREFIX)yosys | ||
|
||
all: counter_00.dot counter_01.dot counter_02.dot counter_03.dot | ||
DOTS = counter_00.dot counter_01.dot counter_02.dot counter_03.dot | ||
|
||
counter_00.dot: counter.v counter.ys mycells.lib | ||
$(YOSYS) counter_outputs.ys | ||
|
||
counter_01.dot: counter_00.dot | ||
counter_02.dot: counter_00.dot | ||
counter_03.dot: counter_00.dot | ||
dots: $(DOTS) | ||
|
||
$(DOTS): counter.v counter.ys mycells.lib | ||
$(YOSYS) counter_outputs.ys |
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,12 +1,14 @@ | ||
PROGRAM_PREFIX := | ||
|
||
YOSYS ?= ../../../$(PROGRAM_PREFIX)yosys | ||
YOSYS ?= ../../../../$(PROGRAM_PREFIX)yosys | ||
|
||
all: macc_simple_xmap.pdf macc_xilinx_xmap.pdf | ||
DOTS = macc_simple_xmap.dot macc_xilinx_xmap.dot | ||
|
||
macc_simple_xmap.pdf: macc_simple_*.v macc_simple_test.ys | ||
dots: $(DOTS) | ||
|
||
macc_simple_xmap.dot: macc_simple_*.v macc_simple_test.ys | ||
$(YOSYS) macc_simple_test.ys | ||
|
||
macc_xilinx_xmap.pdf: macc_xilinx_*.v macc_xilinx_test.ys | ||
macc_xilinx_xmap.dot: macc_xilinx_*.v macc_xilinx_test.ys | ||
$(YOSYS) macc_xilinx_test.ys | ||
|
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
PROGRAM_PREFIX := | ||
|
||
YOSYS ?= ../../../$(PROGRAM_PREFIX)yosys | ||
YOSYS ?= ../../../../$(PROGRAM_PREFIX)yosys | ||
|
||
all: scrambler_p01.dot scrambler_p02.dot | ||
dots: scrambler_p01.dot scrambler_p02.dot | ||
|
||
scrambler_p01.dot scrambler_p02.dot: scrambler.ys scrambler.v | ||
$(YOSYS) scrambler.ys |
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
Oops, something went wrong.