pluto_hdl_adi/projects/fmcomms2_pr/mitx045/system_project.tcl

97 lines
4.1 KiB
Tcl
Raw Normal View History

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"
# Load scripts for env. variables and RP design flow
source ../../scripts/adi_env.tcl
source $ad_hdl_dir/projects/scripts/adi_prcfg_project.tcl
###############################################################################
#### 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"] \
"${ad_hdl_dir}/projects/common/mitx045/mitx045_system_constr.xdc"
########### 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" \
"${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" \
"${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" \
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/QPSK_Modulator.v" \
"${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" \
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/Raised_Cosine_Tx_Filter.v" \
"${ad_hdl_dir}/library/prcfg/${prcfg_name}/Raised_Cosine_Rx_Filter.v"]
}
###############################################################################
#### IMPLEMENTATION ####
###############################################################################
if { $runImpl == 1 } {
prcfg_impl "prcfg_constr.xdc" [list "default" \
"bist" \
"qpsk"]
}
###############################################################################
#### PR Verify ####
###############################################################################
if { $runPrv == 1 } {
prcfg_verify [list "default" \
"bist" \
"qpsk"]
}
###############################################################################
#### BITSTREAM GENERATION ####
###############################################################################
if { $runBit == 1} {
prcfg_gen_bit [list "default" \
"bist" \
"qpsk"]
}