Skip to content

Commit 5c2dbc0

Browse files
RMorales25ErickOF
authored andcommitted
makefile and run_all for router tb
1 parent 12623bb commit 5c2dbc0

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

modules/router/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ ifdef IMG_UNIFICATE_PV_EN
5757
LFLAGS += -DIMG_UNIFICATE_PV_EN
5858
endif # UNIFICATE_PV_EN
5959

60+
ifdef USING_TLM_ROUTER_TB_EN
61+
CFLAGS += -DUSING_TLM_ROUTER_TB_EN
62+
LFLAGS += -DUSING_TLM_ROUTER_TB_EN
63+
endif # USING_TLM_TB_EN
64+
6065
.PHONY: print-all
6166
print-all:
6267
@echo "Incdir is $(INCDIR)"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef ADDRESSMAP_H
2+
#define ADDRESSMAP_H
3+
4+
#define IMG_FILTER_KERNEL 0x00000003u
5+
#define SOBEL_INPUT_0 0x00000027u
6+
#define SOBEL_INPUT_1 0x0000002Fu
7+
#define SOBEL_OUTPUT 0x00000030u
8+
#define MEM_START 0x00000034u
9+
#define IMG_INPUT 0x00000034u
10+
#define IMG_INPROCESS_A 0x000E1034u //Write here rgb2gray result and unification output
11+
#define IMG_INPROCESS_B 0x0012C034u //Write here filter result
12+
#define IMG_INPROCESS_C 0x00177034u //Write here gradient A
13+
#define IMG_INPROCESS_D 0x0020D034u //Write here gradient B
14+
#define IMG_COMPRESSED 0x002A3034u
15+
16+
#endif // ADDRESSMAP_H

modules/router/run_all.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ case $1 in
1010
"compile")
1111
make RGB2GRAY_PV_EN=1 IPS_FILTER_LT_EN=1 EDGE_DETECTOR_AT_EN=1 IMG_UNIFICATE_PV_EN=1 USING_TLM_TB_EN=1 compile
1212
;;
13+
"router_tb")
14+
make RGB2GRAY_PV_EN=1 EDGE_DETECTOR_AT_EN=1 USING_TLM_ROUTER_TB_EN=1 USING_TLM_TB_EN=1 all > output.log
15+
;;
16+
"router_tb")
17+
make RGB2GRAY_PV_EN=1 EDGE_DETECTOR_AT_EN=1 USING_TLM_ROUTER_TB_EN=1 USING_TLM_TB_EN=1 all > output.log
18+
;;
1319
*)
1420
make RGB2GRAY_PV_EN=1 IPS_FILTER_LT_EN=1 EDGE_DETECTOR_AT_EN=1 IMG_UNIFICATE_PV_EN=1 USING_TLM_TB_EN=1 all
1521
;;

0 commit comments

Comments
 (0)