From 5e0c7b44952e463b5f4d4d139d918b39737f8f67 Mon Sep 17 00:00:00 2001 From: Recolic Keghart <root@recolic.net> Date: Mon, 3 Sep 2018 19:55:22 +0800 Subject: [PATCH] better `vivadow init` --- template/{Nexys4_Master.xdc => xc7a100tcsg324-1.xdc} | 0 vivado-wrapper | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename template/{Nexys4_Master.xdc => xc7a100tcsg324-1.xdc} (100%) diff --git a/template/Nexys4_Master.xdc b/template/xc7a100tcsg324-1.xdc similarity index 100% rename from template/Nexys4_Master.xdc rename to template/xc7a100tcsg324-1.xdc diff --git a/vivado-wrapper b/vivado-wrapper index fd99f40..fe480c4 100755 --- a/vivado-wrapper +++ b/vivado-wrapper @@ -154,10 +154,12 @@ function clean_real_project () { } function do_init () { - mkdir constraint build src + mkdir -p constraint build src [[ -f ./Vivadofile ]] && mv ./Vivadofile ./Vivadofile.backup cp "$my_path"/template/Vivadofile ./Vivadofile - echo "init done." + echo "I'll provide a constraint file for xc7a100tcsg324-1, which is used by HUST students. Remove it if it's not your case." + cp "$my_path"/template/xc7a100tcsg324-1.xdc ./constraint + echo "Vivadow project inited." } function do_build () { -- GitLab