# This file is protected by Copyright. Please refer to the COPYRIGHT file
# distributed with this source distribution.
#
# This file is part of OpenCPI <http://www.opencpi.org>
#
# OpenCPI is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# OpenCPI is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.

if test "$#" -ne 2; then
    echo "Correct usage is <numDataWords> <name of hdl platform>"
    exit 1
fi

export OCPI_LIBRARY_PATH=../cust_test01
./generate.py $1
ocpidev -d ../cust_test01 build --hdl-assembly cust_test01 --hdl-platform $2
ocpirun --dump-file "cust_test01.capture_v2.hdl.props" -v  cust_test_app.xml
./verify.py cust_test01.capture_v2.hdl.props
