add litex wishbone interconnect to 4x 4k SRAMs
[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 ls180_verilog:
33 python3 src/soc/simple/issuer_verilog.py \
34 --debug=jtag --enable-core --enable-pll \
35 --enable-xics --enable-sram4x4kblock
36 src/soc/litex/florent/libresoc/libresoc.v
37
38 test: install
39 python3 setup.py test # could just run nosetest3...
40
41 # Minimal makefile for Sphinx documentation
42 #
43
44 # You can set these variables from the command line.
45 SPHINXOPTS =
46 SPHINXBUILD = sphinx-build
47 SPHINXPROJ = Libre-SOC
48 SOURCEDIR = .
49 BUILDDIR = build
50
51 # Put it first so that "make" without argument is like "make help".
52 help:
53 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
54
55 # Catch-all target: route all unknown targets to Sphinx using the new
56 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
57 %: Makefile
58 mkdir -p "$(SOURCEDIR)"/src/gen
59 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc
60 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
61
62 htmlupload: clean html
63 rsync -HPavz --delete build/html/* \
64 libre-soc.org:/var/www/libre-soc.org/docs/soc/