Skip to content

Commit 7cc191f

Browse files
committed
Add Makefile and utils.sh
1 parent 1fc5365 commit 7cc191f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

modules/unification/Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Adding stb lib for image handling
2+
INCDIR_STB=lib/stb
3+
INCLUDES_STB := $(wildcard $(INCDIR_STB)/*.h)
4+
5+
# Include common Makefile
6+
include ../Makefile
7+
8+
# Include stb lib for compilation
9+
INCLUDES += INCLUDES_STB
10+
11+
12+
# Defining preprocessor directive for using PV model
13+
ifdef IMG_UNIFICATE_PV_EN
14+
CFLAGS += -DIMG_UNIFICATE_PV_EN
15+
LFLAGS += -DIMG_UNIFICATE_PV_EN
16+
endif # UNIFICATE_PV_EN
17+
18+
# Run the compiled file
19+
run:
20+
@./test
21+
22+
# Show waveform
23+
waveform:
24+
@gtkwave UNIFICATE.vcd

modules/unification/utils.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
export SYSTEMC=/usr/local/systemc-3.0.0
3+
export LD_LIBRARY_PATH=$SYSTEMC/lib-linux64:/usr/local/lib
4+
export USER_DEF_SYSTEMC_DIR=1

0 commit comments

Comments
 (0)