Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
4da10112
Commit
4da10112
authored
May 02, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demos: remove demo about a deprecated feature
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5ba16d22
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
0 additions
and
276 deletions
+0
-276
Makefile
demos/profiling/Makefile
+0
-18
Makefile
demos/profiling/firmware/Makefile
+0
-24
Kconfig
demos/profiling/firmware/fw-01/Kconfig
+0
-6
Makefile
demos/profiling/firmware/fw-01/Makefile
+0
-7
mt_defconfig
demos/profiling/firmware/fw-01/configs/mt_defconfig
+0
-34
fw-profile.c
demos/profiling/firmware/fw-01/fw-profile.c
+0
-21
Kconfig
demos/profiling/firmware/fw-02/Kconfig
+0
-6
Makefile
demos/profiling/firmware/fw-02/Makefile
+0
-7
mt_defconfig
demos/profiling/firmware/fw-02/configs/mt_defconfig
+0
-34
fw-profile.c
demos/profiling/firmware/fw-02/fw-profile.c
+0
-19
Kconfig
demos/profiling/firmware/fw-03/Kconfig
+0
-6
Makefile
demos/profiling/firmware/fw-03/Makefile
+0
-7
mt_defconfig
demos/profiling/firmware/fw-03/configs/mt_defconfig
+0
-34
fw-profile.c
demos/profiling/firmware/fw-03/fw-profile.c
+0
-53
No files found.
demos/profiling/Makefile
deleted
100644 → 0
View file @
5ba16d22
-include
Makefile.specific
DIRS
+=
firmware
all clean cleanall modules install modules_install
:
$(DIRS)
clean
:
TARGET = clean
cleanall
:
TARGET = cleanall
modules
:
TARGET = modules
install
:
TARGET = install
modules_install
:
TARGET = modules_install
$(DIRS)
:
$(MAKE)
-C
$@
$(TARGET)
.PHONY
:
all clean cleanall modules install modules_install
.PHONY
:
$(DIRS)
demos/profiling/firmware/Makefile
deleted
100644 → 0
View file @
5ba16d22
-include
Makefile.specific
DIRS
:=
fw-01
DIRS
+=
fw-02
DIRS
+=
fw-03
all clean cleanall modules install modules_install
:
$(DIRS)
clean
:
TARGET = clean
cleanall
:
TARGET = cleanall
modules
:
TARGET = modules
install
:
TARGET = install
modules_install
:
TARGET = modules_install
DOT-CONFIGS
=
$
(
addsuffix /.config,
$(DIRS)
)
$(DIRS)
:
$(DOT-CONFIGS)
$(MAKE)
-C
$@
$(TARGET)
$(DOT-CONFIGS)
:
$(MAKE)
-C
$
(
@D
)
defconfig
.PHONY
:
all clean cleanall modules install modules_install
.PHONY
:
$(DIRS)
demos/profiling/firmware/fw-01/Kconfig
deleted
100644 → 0
View file @
5ba16d22
mainmenu "Profiling 1 demo configuration"
comment "Project specific configuration"
source "Kconfig.mt"
demos/profiling/firmware/fw-01/Makefile
deleted
100755 → 0
View file @
5ba16d22
OBJS
=
fw-profile.o
OBJS
+=
# add other object files that you need
OUTPUT
=
fw-profile
TRTL
?=
../../../../
TRTL_SW
=
$(TRTL)
/software
include
$(TRTL_SW)/firmware/Makefile
demos/profiling/firmware/fw-01/configs/mt_defconfig
deleted
100644 → 0
View file @
5ba16d22
#
# Automatically generated file; DO NOT EDIT.
# Profiling 1 demo configuration
#
#
# Project specific configuration
#
#
# Mock Turtle configuration
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
#
# CONFIG_MOCKTURTLE_FRAMEWORK_ENABLE is not set
CONFIG_MOCKTURTLE_FRAMEWORK_ACTION_ENABLE=y
# CONFIG_MOCKTURTLE_FRAMEWORK_VARIABLE_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_BUFFER_ENABLE is not set
CONFIG_MOCKTURTLE_FRAMEWORK_PING_ENABLE=y
CONFIG_MOCKTURTLE_FRAMEWORK_VERSION_ENABLE=y
#
# Mock Turtle library configuration
#
CONFIG_MOCKTURTLE_LIBRARY_PRINT_ENABLE=y
CONFIG_MOCKTURTLE_LIBRARY_PRINT_DEBUG_ENABLE=y
# CONFIG_MOCKTURTLE_LIBRARY_PRINT_ERROR_ENABLE is not set
# CONFIG_MOCKTURTLE_LIBRARY_PRINT_MESSAGE_ENABLE is not set
demos/profiling/firmware/fw-01/fw-profile.c
deleted
100644 → 0
View file @
5ba16d22
#include <mockturtle-rt-serial.h>
#include <mockturtle-rt-profile.h>
int
main
()
{
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_profile_start
(
1
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_probe_trigger
(
2
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_probe_trigger
(
3
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_probe_trigger
(
4
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_probe_trigger
(
5
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_profile_stop
(
6
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
return
0
;
}
demos/profiling/firmware/fw-02/Kconfig
deleted
100644 → 0
View file @
5ba16d22
mainmenu "alarm_clock demo configuration"
comment "Project specific configuration"
source "Kconfig.mt"
demos/profiling/firmware/fw-02/Makefile
deleted
100755 → 0
View file @
5ba16d22
OBJS
=
fw-profile.o
OBJS
+=
# add other object files that you need
OUTPUT
=
fw-profile
TRTL
?=
../../../../
TRTL_SW
=
$(TRTL)
/software
include
$(TRTL_SW)/firmware/Makefile
demos/profiling/firmware/fw-02/configs/mt_defconfig
deleted
100644 → 0
View file @
5ba16d22
#
# Automatically generated file; DO NOT EDIT.
# alarm_clock demo configuration
#
#
# Project specific configuration
#
#
# Mock Turtle configuration
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
#
# CONFIG_MOCKTURTLE_FRAMEWORK_ENABLE is not set
CONFIG_MOCKTURTLE_FRAMEWORK_ACTION_ENABLE=y
# CONFIG_MOCKTURTLE_FRAMEWORK_VARIABLE_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_BUFFER_ENABLE is not set
CONFIG_MOCKTURTLE_FRAMEWORK_PING_ENABLE=y
CONFIG_MOCKTURTLE_FRAMEWORK_VERSION_ENABLE=y
#
# Mock Turtle library configuration
#
CONFIG_MOCKTURTLE_LIBRARY_PRINT_ENABLE=y
CONFIG_MOCKTURTLE_LIBRARY_PRINT_DEBUG_ENABLE=y
# CONFIG_MOCKTURTLE_LIBRARY_PRINT_ERROR_ENABLE is not set
# CONFIG_MOCKTURTLE_LIBRARY_PRINT_MESSAGE_ENABLE is not set
demos/profiling/firmware/fw-02/fw-profile.c
deleted
100644 → 0
View file @
5ba16d22
#include <mockturtle-rt-serial.h>
#include <mockturtle-rt-profile.h>
int
main
()
{
int
i
;
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_profile_start
(
1
);
for
(
i
=
0
;
i
<
10
;
++
i
)
{
trtl_tpu_probe_trigger
(
2
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_probe_trigger
(
3
);
}
trtl_tpu_profile_stop
(
4
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
return
0
;
}
demos/profiling/firmware/fw-03/Kconfig
deleted
100644 → 0
View file @
5ba16d22
mainmenu "alarm_clock demo configuration"
comment "Project specific configuration"
source "Kconfig.mt"
demos/profiling/firmware/fw-03/Makefile
deleted
100755 → 0
View file @
5ba16d22
OBJS
=
fw-profile.o
OBJS
+=
# add other object files that you need
OUTPUT
=
fw-profile
TRTL
?=
../../../../
TRTL_SW
=
$(TRTL)
/software
include
$(TRTL_SW)/firmware/Makefile
demos/profiling/firmware/fw-03/configs/mt_defconfig
deleted
100644 → 0
View file @
5ba16d22
#
# Automatically generated file; DO NOT EDIT.
# alarm_clock demo configuration
#
#
# Project specific configuration
#
#
# Mock Turtle configuration
#
CONFIG_FPGA_APPLICATION_ID=0
CONFIG_RT_APPLICATION_ID=0
CONFIG_CFLAGS_OPT="-O0"
CONFIG_CFLAGS_EXTRA="-ggdb"
#
# Mock Turtle framework configuration
#
# CONFIG_MOCKTURTLE_FRAMEWORK_ENABLE is not set
CONFIG_MOCKTURTLE_FRAMEWORK_ACTION_ENABLE=y
# CONFIG_MOCKTURTLE_FRAMEWORK_VARIABLE_ENABLE is not set
# CONFIG_MOCKTURTLE_FRAMEWORK_BUFFER_ENABLE is not set
CONFIG_MOCKTURTLE_FRAMEWORK_PING_ENABLE=y
CONFIG_MOCKTURTLE_FRAMEWORK_VERSION_ENABLE=y
#
# Mock Turtle library configuration
#
CONFIG_MOCKTURTLE_LIBRARY_PRINT_ENABLE=y
CONFIG_MOCKTURTLE_LIBRARY_PRINT_DEBUG_ENABLE=y
# CONFIG_MOCKTURTLE_LIBRARY_PRINT_ERROR_ENABLE is not set
# CONFIG_MOCKTURTLE_LIBRARY_PRINT_MESSAGE_ENABLE is not set
demos/profiling/firmware/fw-03/fw-profile.c
deleted
100644 → 0
View file @
5ba16d22
#include <mockturtle-rt-serial.h>
#include <mockturtle-rt-profile.h>
#define PROFILE_PROBE_ID0 0
#define PROFILE_PROBE_ID1 1
static
int
num
=
0
;
static
void
profile_short
(
void
)
{
int
i
=
0
;
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_probe_trigger
(
3
);
/* start */
for
(
i
=
0
;
i
<
100
;
++
i
)
num
*=
2
;
trtl_tpu_probe_trigger
(
4
);
/* end */
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
}
static
void
profile_long
(
void
)
{
int
i
=
0
;
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_probe_trigger
(
5
);
/* start */
for
(
i
=
0
;
i
<
10000
;
++
i
)
{
num
/=
2
;
num
++
;
}
trtl_tpu_probe_trigger
(
6
);
/* end */
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
}
static
void
profile_func
(
void
)
{
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
trtl_tpu_profile_start
(
1
);
profile_short
();
profile_long
();
trtl_tpu_profile_stop
(
2
);
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
}
int
main
()
{
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
profile_func
();
pr_debug
(
"%s:%d
\n\r
"
,
__func__
,
__LINE__
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment