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
ef9dd102
Commit
ef9dd102
authored
Apr 29, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
aaadc469
3462229e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
11 deletions
+24
-11
Makefile
software/firmware/Makefile
+4
-3
fw-project-common.h
...or/templates/software/firmware/common/fw-project-common.h
+1
-1
Makefile
...roject-creator/templates/software/firmware/fw-01/Makefile
+6
-7
TBuild
...-project-creator/templates/software/firmware/fw-01/TBuild
+11
-0
fw-project.c
...ct-creator/templates/software/firmware/fw-01/fw-project.c
+1
-0
trtl-project-creator
software/tools/trtl-project-creator/trtl-project-creator
+1
-0
No files found.
software/firmware/Makefile
View file @
ef9dd102
...
...
@@ -136,10 +136,11 @@ $(build_output).bin: $(build_output).elf
$(SIZE)
$(build_output)
.elf
$(build_output).bram
:
$(build_output).bin
ifeq
(0
,
$(shell
test
-e
$(MEM_INIT_GEN);
echo
$$?))
$(MEM_INIT_GEN)
-i
$(build_output).bin
>
$(build_output).bram
$(build_output).bram
:
$(build_output).bin
$(MEM_INIT_GEN)
-i
$(build_output)
.bin
>
$(build_output)
.bram
else
@echo
"Cannot generate \"bram\" file. Missing $(MEM_INIT_GEN)"
>
/dev/stderr
endif
$(BUILDDIR)/urv/emulate.o
:
urv/emulate.c
${
CC
}
$(DEPFLAGS)
$(CFLAGS)
-march
=
rv32i
-c
$<
-o
$@
...
...
software/tools/trtl-project-creator/templates/software/firmware/common/fw-project-common.h
View file @
ef9dd102
...
...
@@ -6,7 +6,7 @@
#ifndef __FW_{{short_name_capital}}_COMMON_H__
#define __FW_{{short_name_capital}}_COMMON_H__
#include <mockturtle-rt
-smem
.h>
#include <mockturtle-rt.h>
#include <{{short_name}}-common.h>
#endif
software/tools/trtl-project-creator/templates/software/firmware/fw-01/Makefile
View file @
ef9dd102
OBJS
=
fw-
{{
short_name
}}
.o
OBJS
+=
# add other object files that you need
OUTPUT
=
fw-
{{
short_name
}}
TRTL
?=
../../../mockturtle
TRTL
?=
TRTL_SW
=
$(TRTL)
/software
TRTL_FW
=
$(TRTL_SW)
/firmware
EXTRA_CFLAGS
+=
-I
../../include
EXTRA_CFLAGS
+=
-I
../common
all
:
include
$(TRTL_SW)/firmware/Makefile
# Redirect all rules to MockTurtle
%
:
$(MAKE)
-C
$(TRTL_FW)
M
=
$(
shell
/bin/pwd
)
$@
software/tools/trtl-project-creator/templates/software/firmware/fw-01/TBuild
0 → 100644
View file @
ef9dd102
OBJS = fw-{{short_name}}.o
OBJS += # add other object files that you need
OUTPUT = fw-{{short_name}}
OBJDIR += common
OBJS += # add other object files from common directory, if any
EXTRA_CFLAGS += -I$(src)/../../include
EXTRA_CFLAGS += -I$(src)/../common
vpath %.c $(src)/../
software/tools/trtl-project-creator/templates/software/firmware/fw-01/fw-project.c
View file @
ef9dd102
...
...
@@ -7,6 +7,7 @@
#include <string.h>
#include <mockturtle-framework.h>
#include <{{short_name}}-common.h>
#include <fw-{{short_name}}-common.h>
enum
hmq_slot_name
{
{{
short_name_capital
}}
_CMD
=
0
,
...
...
software/tools/trtl-project-creator/trtl-project-creator
View file @
ef9dd102
...
...
@@ -85,6 +85,7 @@ def tpc_apply_value_to_template(directory, table):
"software/firmware/Makefile"
,
"software/firmware/fw-01/Makefile"
,
"software/firmware/fw-01/Kconfig"
,
"software/firmware/fw-01/TBuild"
,
"software/firmware/fw-01/configs/mt_defconfig"
,
"doc/Makefile"
,
"doc/doxygen-project-config"
,
...
...
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