Skip to content
Snippets Groups Projects
Unverified Commit 8c00d441 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

update c support

parent a9a04a5d
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,12 @@ function burn_file () {
"
}
function list_sources () {
find ${proj_dir}/*.srcs -regex '^.*\.s?vh?$' -exec echo add_files \{\} \;
find ${proj_dir}/*.srcs -regex '^.*\.o?cc?p?p?x?x?$' -exec echo add_files \{\} \;
find ${proj_dir}/*.srcs -regex '^.*\.hh?p?p?x?x?$' -exec echo add_files \{\} \;
}
if [[ $1 == build ]]; then
xpr="$2"
run_name_synth="$3"
......@@ -32,8 +38,7 @@ if [[ $1 == build ]]; then
echo "# Generated by Vivado wrapper, licensed under GPL 3.0
# Copyright (C) Recolic Keghart <root@recolic.net>
open_project ${xpr}
`find ${proj_dir}/*.srcs -regex '^.*\.s?vh?$' -exec echo add_files \{\} \;`
`find ${proj_dir}/*.srcs -regex '^.*\.o?cc?p?p?x?x?$' -exec echo add_files \{\} \;`
`list_sources`
set_property top ${top_mod} [current_fileset]
reset_run ${run_name_synth}
reset_run ${run_name_impl}
......@@ -59,8 +64,7 @@ elif [[ $1 == gui ]]; then
xpr="$2"
proj_dir=`dirname ${xpr}`
echo "open_project ${xpr}
`find ${proj_dir}/*.srcs -regex '^.*\.s?vh?$' -exec echo add_files \{\} \;`
`find ${proj_dir}/*.srcs -regex '^.*\.o?cc?p?p?x?x?$' -exec echo add_files \{\} \;`
`list_sources`
start_gui"
elif [[ $1 == init-project ]]; then
proj_name="$2"
......
......@@ -2,7 +2,8 @@
# Required options
#
# You may use SystemVerilog, Verilog, or VHDL files as sources.
# You may use SystemVerilog, Verilog, or VHDL files as sources. (.sv .v .vh)
# You may also use C, C++, ObjectC or SystemC files as sources. (.c .cc .cxx .cpp .oc .h .hh .hpp .hxx)
# sources=(test_main.sv lib/* ./mod?.v)
sources=(src/*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment