Skip to content

Commit 7e88c2b

Browse files
committed
Adding Makefile compilation for compression module
1 parent 5ba58c2 commit 7e88c2b

File tree

10 files changed

+34
-609
lines changed

10 files changed

+34
-609
lines changed

modules/compression/Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Include common Makefile
2+
include ../Makefile
3+
4+
ifdef IPS_JPG_PV_EN
5+
CFLAGS += -DIPS_JPG_PV_EN
6+
LFLAGS += -DIPS_JPG_PV_EN
7+
endif # IPS_JPG_PV_EN
8+
9+
ifdef IPS_JPG_LT_EN
10+
CFLAGS += -DIPS_JPG_LT_EN
11+
LFLAGS += -DIPS_JPG_LT_EN
12+
endif # IPS_JPG_LT_EN
13+
14+
ifdef IPS_JPG_AT_EN
15+
CFLAGS += -DIPS_JPG_AT_EN
16+
LFLAGS += -DIPS_JPG_AT_EN
17+
endif # IPS_JPG_AT_EN
18+
19+
# Run the compiled file
20+
run:
21+
@./$(TARGET)
22+
23+
# Show waveform
24+
waveform:
25+
@gtkwave input_matrix.vcd
File renamed without changes.
File renamed without changes.
File renamed without changes.

modules/compression/src/ips_jpg_at_model.cpp

Lines changed: 0 additions & 226 deletions
This file was deleted.

modules/compression/src/ips_jpg_at_testbench.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#ifdef IPS_JPG_AT_EN
12
#define int64 systemc_int64
23
#define uint64 systemc_uint64
34
#include <systemc.h>
@@ -9,7 +10,7 @@
910
#undef int64
1011
#undef uint64
1112

12-
#include "ips_jpg_at_model.cpp"
13+
#include "ips_jpg_at_model.hpp"
1314

1415
const int Nrows = 208;
1516
const int Ncols = 288;
@@ -129,3 +130,4 @@ int sc_main (int argc, char* argv[]) {
129130
return 0;// Terminate simulation
130131

131132
}
133+
#endif // IPS_JPG_AT_EN

0 commit comments

Comments
 (0)