OpenCores
URL https://opencores.org/ocsvn/funbase_ip_library/funbase_ip_library/trunk

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [ip.hwp.accelerator/] [dct_to_hibi/] [1.0/] [sim/] [create_makefile] - Rev 168

Compare with Previous | Blame | View Log

#! /bin/sh


# Ymparistomuuttuja $DCT_DATA_DIR taytyy olla asetettu!
# Se kertoo, mihin hakemistoon fiilut kaannetaan

clear

DCT_DATA_DIR="D:\user\matilail\teaching\TKT-3541\2013\dct2hibi\sim_output"
DACI_IP_LIB_DIR="D:/user/matilail/repos/daci_ip"
HIBI_SRC_DIR=$DACI_IP_LIB_DIR/ip.hwp.communication/hibi/3.0/vhd
DCT_WORK_DIR=..
DCTQIDCT_DIR=../../..


echo 'Creating makefile'

if test ! -d ${DCT_DATA_DIR}
then
  echo 'Tehdaan /tmp:iin projektille hakemistorakenne...'
  echo '($DCT_DATA_DIR =' $DCT_DATA_DIR ')'     
  mkdir $DCT_DATA_DIR
fi

# Poistetaan vanha library ja tehdaan uusi
echo "Remove old vhdl library and create new "
rm -rf $DCT_DATA_DIR\\codelib
rm -rf $DCT_DATA_DIR\\common_da
rm -rf $DCT_DATA_DIR\\dct
rm -rf $DCT_DATA_DIR\\idct
rm -rf $DCT_DATA_DIR\\quantizer
rm -rf $DCT_DATA_DIR\\dctQidct

vlib $DCT_DATA_DIR\\codelib
vlib $DCT_DATA_DIR\\common_da
vlib $DCT_DATA_DIR\\dct
vlib $DCT_DATA_DIR\\idct
vlib $DCT_DATA_DIR\\quantizer
vlib $DCT_DATA_DIR\\dctQidct

vmap work $DCT_DATA_DIR\\codelib
vmap common_da $DCT_DATA_DIR\\common_da
vmap dct $DCT_DATA_DIR\\dct
vmap idct $DCT_DATA_DIR\\idct
vmap quantizer $DCT_DATA_DIR\\quantizer
vmap dctQidct $DCT_DATA_DIR\\dctQidct

#compile fifos

vcom -93 -quiet $DACI_IP_LIB_DIR/ip.hwp.storage/fifos/fifo/1.0/vhd/fifo.vhd
vcom -93 -quiet $DACI_IP_LIB_DIR/ip.hwp.storage/fifos/multiclk_fifo/1.0/vhd/multiclk_fifo.vhd


#Compile HIBI files

vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/hibiv3_pkg.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/fifo_demux_wr.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/fifo_mux_rd.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/double_fifo_demux_wr.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/double_fifo_mux_rd.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/addr_decoder.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/rx_control.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/receiver.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/cfg_init_pkg.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/cfg_mem.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/lfsr.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/dyn_arb.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/tx_control.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/transmitter.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/hibi_wrapper_r1.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/hibi_wrapper_r4.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/hibi_bridge_v2.vhd

vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/hibi_orbus_small.vhd



vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/addr_data_demux_read.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/addr_data_mux_write.vhd
vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/hibi_wrapper_r3.vhd

vcom -93  -quiet -check_synthesis   $HIBI_SRC_DIR/hibiv3_r4.vhd




#compile components for library [common_da]
vcom -93 -quiet -work common_da $DCTQIDCT_DIR/Vhdl/common_da/*.vhd

#compile components for library [dct]
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_pkg.vhd
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/Rom_dct_sum.vhd
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/Rom_dct_sub.vhd
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT1D_DA.vhd
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_control.vhd
vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_core.vhd
#vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_core_tester.vhd
#vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_core_tb.vhd

#compile components for library [idct]
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_pkg.vhd
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/Rom_idct_even.vhd
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/Rom_idct_odd.vhd
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_post_sum.vhd
vcom -93 -quiet  -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT1D_DA.vhd
vcom -93 -quiet  -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_control.vhd
vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_core.vhd
#vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_core_tester.vhd
#vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_core_tb.vhd

#compile components for library [quantizer]
vcom -93 -quiet -work quantizer $DCTQIDCT_DIR/Vhdl/quantizer/Quantizer_pkg.vhd
vcom -93 -quiet -work quantizer $DCTQIDCT_DIR/Vhdl/quantizer/IQuant.vhd

#compile components for library [dctQidct]
vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/IDCT_fifo.vhd
vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/dctQidct_core.vhd
#vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/dctQidct_core_tester.vhd
#vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/dctQidct_core_tb.vhd

#compile configuration for testbenches
#vcom -93 -quiet -work dct $DCTQIDCT_DIR/Vhdl/dct/DCT_core_tb_config.vhd
#vcom -93 -quiet -work idct $DCTQIDCT_DIR/Vhdl/idct/IDCT_core_tb_config.vhd
#vcom -93 -quiet -work dctQidct $DCTQIDCT_DIR/Vhdl/dctQidct/dctQidct_core_tb_config.vhd


# DCT_TO_HIBI
echo 'Compiling DCT_to_HIBI'
vcom -quiet -check_synthesis ../Vhdl/cl_cnt.vhd
vcom -quiet -check_synthesis ../Vhdl/dct_to_hibi_v2.vhd
vcom -quiet -check_synthesis ../Vhdl/dctqidct_top.vhd

# TESTBENCH
echo 'Compiling testbench'
vcom -quiet -check_synthesis ../Testbenches/tb_dct_package.vhd
vcom -quiet -check_synthesis ../Testbenches/tb_dct_cpu.vhd
vcom -quiet -check_synthesis ../Testbenches/tb_pinger.vhd
vcom -quiet -check_synthesis ../Testbenches/tb_dct_top_2.vhd


# Poistetaan vanha makefile ja tehdaan uusi
rm -f ../Makefile
vmake $DCT_DATA_DIR/codelib > $DCT_WORK_DIR/Simulation/Makefile

echo "Create makefile complete "



Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.