Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
e5b352e6
Commit
e5b352e6
authored
Mar 09, 2020
by
Laura Alexandra Sequeira Gouveia
Browse files
Include templating for C functions as HW functions.
parent
2dcafff4
Changes
4
Hide whitespace changes
Inline
Side-by-side
templates/concurrency_view/c_pohi_zynq_bambu_gpr/block.tmplt
View file @
e5b352e6
...
...
@@ -9,7 +9,7 @@
@@--
@
_Required_
@
:
Required
interfaces
(
from
ri
.
tmplt
)
@@--
@
_Property_Names_
@
:
List
of
User
-
defined
properties
(
names
)
@@--
@
_Property_Values_
@
|
_
Vector
Tag
:
List
of
User
-
defined
properties
(
values
)
@@
IF
@@
@
_LOWER
:
Language_
@
=
simulink
@@
IF
@@
@
_LOWER
:
Language_
@
=
simulink
or
@
_LOWER
:
Language_
@
=
c
@@
TABLE
@@
@@
IF
@@
@
_LOWER
:
Property_Names_
@
=
taste_iv_properties
::
fpga_configurations
and
not
@
_IS_EMPTY
:
LOWER
:
Property_Values_
@
project
@
_CAPITALIZE
:
Name_
@
_Zynq_Bambu
is
...
...
@@ -22,11 +22,6 @@ project @_CAPITALIZE:Name_@_Zynq_Bambu is
for
Exec_Dir
use
"../../binaries"
;
for
Languages
use
(
"FPGA"
);
--
for
Main
use
(
--
"@_STRIP:Unprotected_PIs_@.c"
--);
package
Compiler
is
Common_Bambu_Switches
:=
(
"--compiler=I386_CLANG4"
,
...
...
@@ -43,15 +38,16 @@ project @_CAPITALIZE:Name_@_Zynq_Bambu is
"--panda-parameter=none-registered-ptrdefault=1"
,
"-I../../../dataview/C"
);
for
Switches
(
"
@_STRIP:Unprotected_PIs_@.c
"
)
use
Common_Bambu_Switches
&
(
"-I../../../@_LOWER:Name_@/
SIMULINK
/src"
,
"-I../../../@_LOWER:Name_@/
SIMULINK
/wrappers"
,
for
Switches
(
"
FPGA
"
)
use
Common_Bambu_Switches
&
(
"-I../../../@_LOWER:Name_@/
@_Language_@
/src"
,
"-I../../../@_LOWER:Name_@/
@_Language_@
/wrappers"
,
"--clock-name=clock_@_STRIP:Unprotected_PIs_@"
,
"--reset-name=reset_@_STRIP:Unprotected_PIs_@"
,
"--start-name=start_@_STRIP:Unprotected_PIs_@"
,
"--done-name=finish_@_STRIP:Unprotected_PIs_@"
,
"--top-fname=bambu_@_STRIP:Unprotected_PIs_@"
,
"../../../@_LOWER:Name_@/SIMULINK/wrappers/@_STRIP:Unprotected_PIs_@_bambu.c"
);
"../../../@_LOWER:Name_@/@_Language_@/wrappers/@_STRIP:Unprotected_PIs_@_bambu.c"
);
case
Build
is
when
"Release"
=>
...
...
@@ -63,19 +59,18 @@ project @_CAPITALIZE:Name_@_Zynq_Bambu is
end
case
;
end
Compiler
;
package
Builder
is
for
Executable_Suffix
use
".bit"
;
for
Executable
(
"@_STRIP:Unprotected_PIs_@.c"
)
use
"@_Name_@_bambu"
;
end
Builder
;
--
following
to
be
updated
with
all
relevant
source
dirs
--
following
to
be
updated
with
all
relevant
source
dirs
for
Source_Dirs
use
(
"../../@_LOWER:Name_@/
SIMULINK
/src"
"../../@_LOWER:Name_@/
@_Language_@
/src"
);
for
Excluded_Source_Files
use
(
"ert_main.c"
);
(
@@
IF
@@
@
_LOWER
:
Language_
@
=
simulink
"ert_main.c"
@@
END_IF
@@
);
end
@
_CAPITALIZE
:
Name_
@
_Zynq_Bambu
;
...
...
templates/concurrency_view/c_pohi_zynq_bambu_gpr/pi.tmplt
View file @
e5b352e6
...
...
@@ -7,4 +7,4 @@
@@-- @_Param_Names_@ : List of parameter names
@@-- @_Param_Types_@ : |_ Corresponding parameter types
@@-- @_Param_Directions_@ : |_ Corresponding direction
@_STRIP:
LOWER:
Name_@
@_STRIP:Name_@
templates/concurrency_view/c_pohi_zynq_rtems_gpr/block.tmplt
View file @
e5b352e6
...
...
@@ -9,7 +9,7 @@
@@-- @_Required_@ : Required interfaces (from ri.tmplt)
@@-- @_Property_Names_@ : Required interfaces (from ri.tmplt)
@@-- @_Property_Values_@ : Required interfaces (from ri.tmplt)
@@IF@@ @_LOWER:Language_@ = simulink
@@IF@@ @_LOWER:Language_@ = simulink
or @_LOWER:Language_@ = c
@@TABLE@@
@@IF@@ @_LOWER:Property_Names_@ = taste_iv_properties::fpga_configurations and @_LOWER:Property_Values_@ /= ""
"@_STRIP:Unprotected_PIs_@_bambu.c",
...
...
templates/concurrency_view/c_pohi_zynq_rtems_gpr/pi.tmplt
View file @
e5b352e6
...
...
@@ -7,4 +7,4 @@
@@-- @_Param_Names_@ : List of parameter names
@@-- @_Param_Types_@ : |_ Corresponding parameter types
@@-- @_Param_Directions_@ : |_ Corresponding direction
@_
LOWER:
Name_@
@_Name_@
Write
Preview
Supports
Markdown
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