-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (33 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export BUILD_XSPCOMM_SWIG?=python
all: clean build
init:
rm -rf dependence/xcomm
git clone https://github.com/XS-MLVP/xcomm.git dependence/xcomm
cd dependence/xcomm && git checkout master
build:
@if ! command -v verible-verilog-format ; then \
echo "verible-verilog-format could not be found"; \
echo "install verible-verilog-format"; \
echo "https://github.com/chipsalliance/verible/releases/tag/v0.0-3428-gcfcbb82b"; \
exit 1; \
fi
cmake . -Bbuild -DCMAKE_BUILD_TYPE=Release $(ARGS)
cd build && make -j`nproc`
install: build
cd build && make install
test: build
./build/bin/picker -h
./build/bin/picker pack -h
./build/bin/picker exports -h
test_all:
rm -rf picker_out_*
./example/Adder/release-verilator.sh --lang python
./example/RandomGenerator/release-verilator.sh --lang python
./example/AdderMultiInstance/release-verilator.sh --lang python
./example/Cache/release-verilator.sh --lang python
clean:
rm -rf temp build dist picker_out*
wheel: clean
cd dependence/xcomm && make wheel
NO_BUILD_XSPCOMM=1 pipx run build
cp dependence/xcomm/dist/* ./dist