2014-07-10 07:41:48 +00:00
|
|
|
# Script for non-project mode
|
|
|
|
|
|
|
|
# activate/deactivate different flow stages
|
|
|
|
set runInit 1
|
|
|
|
set runSynth 1
|
|
|
|
set runImpl 1
|
|
|
|
set runPrv 1
|
|
|
|
set runBit 1
|
|
|
|
|
|
|
|
# supported carrier ZC706/MITX045
|
|
|
|
set part "xc7z045ffg900-2"
|
2014-11-21 17:14:37 +00:00
|
|
|
set board "em.avnet.com:mini_itx_7z045:part0:1.0"
|
2014-07-10 07:41:48 +00:00
|
|
|
|
2015-04-02 13:06:08 +00:00
|
|
|
set sys_zynq 1
|
|
|
|
|
2014-07-10 07:41:48 +00:00
|
|
|
# Load scripts for env. variables and RP design flow
|
|
|
|
source ../../scripts/adi_env.tcl
|
|
|
|
source $ad_hdl_dir/projects/scripts/adi_prcfg_project.tcl
|
2015-04-02 13:06:08 +00:00
|
|
|
source $ad_hdl_dir/projects/scripts/adi_board.tcl
|
2014-07-10 07:41:48 +00:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
#### INIT WORKSPACE ####
|
|
|
|
###############################################################################
|
|
|
|
if { $runInit == 1 } {
|
|
|
|
prcfg_init_workspace [list "default" \
|
|
|
|
"bist" \
|
|
|
|
"qpsk"]
|
|
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
#### SYNTHESIS ####
|
|
|
|
###############################################################################
|
|
|
|
if { $runSynth == 1 } {
|
|
|
|
|
|
|
|
########### Static part
|
|
|
|
|
|
|
|
prcfg_synth_static [list "./system_top.v" \
|
|
|
|
"${ad_hdl_dir}/library/common/ad_iobuf.v"] \
|
2014-10-31 10:18:00 +00:00
|
|
|
"${ad_hdl_dir}/projects/common/mitx045/mitx045_system_constr.xdc"
|
2014-07-10 07:41:48 +00:00
|
|
|
|
|
|
|
########### Reconfigurable part
|
|
|
|
# Default
|
|
|
|
set prcfg_name "default"
|
|
|
|
prcfg_synth_reconf $prcfg_name [list "../common/prcfg_system_top.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/common/prcfg_top.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/prcfg_dac.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/prcfg_adc.v"]
|
|
|
|
# Bist
|
|
|
|
set prcfg_name "bist"
|
|
|
|
prcfg_synth_reconf $prcfg_name [list "../common/prcfg_system_top.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/common/prcfg_top.v" \
|
2014-11-21 17:23:12 +00:00
|
|
|
"${ad_hdl_dir}/library/common/ad_pnmon.v" \
|
2014-07-10 07:41:48 +00:00
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/prcfg_dac.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/prcfg_adc.v"]
|
|
|
|
|
|
|
|
# Qpsk
|
|
|
|
set prcfg_name "qpsk"
|
|
|
|
prcfg_synth_reconf $prcfg_name [list "../common/prcfg_system_top.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/common/prcfg_top.v" \
|
2014-10-31 10:18:00 +00:00
|
|
|
"${ad_hdl_dir}/library/common/ad_pnmon.v" \
|
2014-07-10 07:41:48 +00:00
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/prcfg_dac.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/prcfg_adc.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/qpsk_mod.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/qpsk_demod.v" \
|
2014-10-31 09:59:29 +00:00
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/QPSK_Modulator_Baseband.v" \
|
2014-07-10 07:41:48 +00:00
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/QPSK_Demodulator_Baseband.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/FIR_Interpolation.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/FIR_Decimation.v" \
|
2014-10-31 09:59:29 +00:00
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/Raised_Cosine_Transmit_Filter.v" \
|
|
|
|
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/Raised_Cosine_Receive_Filter.v"]
|
2014-07-10 07:41:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
#### IMPLEMENTATION ####
|
|
|
|
###############################################################################
|
|
|
|
if { $runImpl == 1 } {
|
2014-10-31 10:18:00 +00:00
|
|
|
prcfg_impl "prcfg_constr.xdc" [list "qpsk" \
|
|
|
|
"bist" \
|
|
|
|
"default"]
|
2014-07-10 07:41:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
#### PR Verify ####
|
|
|
|
###############################################################################
|
|
|
|
if { $runPrv == 1 } {
|
|
|
|
|
|
|
|
prcfg_verify [list "default" \
|
|
|
|
"bist" \
|
|
|
|
"qpsk"]
|
|
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
#### BITSTREAM GENERATION ####
|
|
|
|
###############################################################################
|
|
|
|
if { $runBit == 1} {
|
|
|
|
|
|
|
|
prcfg_gen_bit [list "default" \
|
|
|
|
"bist" \
|
|
|
|
"qpsk"]
|
|
|
|
}
|
|
|
|
|