add SVP64 CR EXTRA field-extension, from 3-bit to 7-bit (plus isvec)
[soc.git] / Makefile
1 PYTHON3 ?= "python3"
2
3 .PHONY: help Makefile gitupdate install run_sim test htmlupload
4
5 gitupdate:
6 git submodule init
7 git submodule update --init --recursive --remote
8
9 mkpinmux:
10 ./mkpinmux.sh
11 cp pinmux/ls180/ls180_pins.py src/soc/debug
12 cp pinmux/ls180/ls180_pins.py src/soc/litex/florent/libresoc
13
14 install: develop mkpinmux
15
16 develop:
17 python3 setup.py develop --user # yes, develop, not install
18 python3 src/soc/decoder/pseudo/pywriter.py
19
20 run_sim: install
21 python3 src/soc/simple/issuer_verilog.py \
22 src/soc/litex/florent/libresoc/libresoc.v
23 python3 src/soc/litex/florent/sim.py --cpu=libresoc
24
25 testgpio_run_sim:
26 python3 src/soc/simple/issuer_verilog.py \
27 src/soc/litex/florent/libresoc/libresoc.v \
28 --enable-testgpio
29 python3 src/soc/litex/florent/sim.py --cpu=libresoc \
30 --variant=standardjtagtestgpio
31
32 test: install
33 python3 setup.py test # could just run nosetest3...
34
35 # Minimal makefile for Sphinx documentation
36 #
37
38 # You can set these variables from the command line.
39 SPHINXOPTS =
40 SPHINXBUILD = sphinx-build
41 SPHINXPROJ = Libre-SOC
42 SOURCEDIR = .
43 BUILDDIR = build
44
45 # Put it first so that "make" without argument is like "make help".
46 help:
47 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
48
49 # Catch-all target: route all unknown targets to Sphinx using the new
50 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
51 %: Makefile
52 mkdir -p "$(SOURCEDIR)"/src/gen
53 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc
54 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
55
56 htmlupload: clean html
57 rsync -HPavz --delete build/html/* \
58 libre-soc.org:/var/www/libre-soc.org/docs/soc/