Line 41... |
Line 41... |
# Remove synthetized files -- if any
|
# Remove synthetized files -- if any
|
find $DST_DIR -name "*_flat.v" -exec rm -f {} \;
|
find $DST_DIR -name "*_flat.v" -exec rm -f {} \;
|
find $DST_DIR -name "*_flat_nc.v" -exec rm -f {} \;
|
find $DST_DIR -name "*_flat_nc.v" -exec rm -f {} \;
|
find $DST_DIR -name "*_hier.v" -exec rm -f {} \;
|
find $DST_DIR -name "*_hier.v" -exec rm -f {} \;
|
|
|
# Remove unused files (according to liuyadong)
|
# Also remove SPU files
|
|
rm -f $DST_DIR/*spu*.v
|
|
|
|
# Remove other unused files (according to liuyadong)
|
cd $DST_DIR
|
cd $DST_DIR
|
rm bw_r_l2t.v bw_r_cm16x40.v bw_r_cm16x40b.v bw_r_dcm.v bw_r_efa.v bw_r_l2d.v bw_r_l2d_32k.v \
|
rm bw_r_l2t.v bw_r_cm16x40.v bw_r_cm16x40b.v bw_r_dcm.v bw_r_efa.v bw_r_l2d.v bw_r_l2d_32k.v \
|
bw_r_l2d_rep_bot.v bw_r_l2d_rep_top.v bw_r_rf16x128d.v bw_r_rf32x108.v bw_rf_16x65.v bw_rf_16x81.v \
|
bw_r_l2d_rep_bot.v bw_r_l2d_rep_top.v bw_r_rf16x128d.v bw_r_rf32x108.v bw_rf_16x65.v bw_rf_16x81.v \
|
bw_clk_cclk_hdr_48x.v bw_clk_cclk_hdr_64x.v bw_clk_cclk_inv_128x.v bw_clk_cclk_inv_48x.v \
|
bw_clk_cclk_hdr_48x.v bw_clk_cclk_hdr_64x.v bw_clk_cclk_inv_128x.v bw_clk_cclk_inv_48x.v \
|
bw_clk_cclk_inv_64x.v bw_clk_cclk_inv_96x.v bw_clk_cclk_scanlasr_2x.v bw_clk_cclk_sync.v \
|
bw_clk_cclk_inv_64x.v bw_clk_cclk_inv_96x.v bw_clk_cclk_scanlasr_2x.v bw_clk_cclk_sync.v \
|
Line 106... |
Line 109... |
mv -f $DST_DIR/sparc_ifu_TMP.v $DST_DIR/sparc_ifu.v
|
mv -f $DST_DIR/sparc_ifu_TMP.v $DST_DIR/sparc_ifu.v
|
sed -e 's/ffu_ifu_stallreq,/ffu_ifu_stallreq, wbm_spc_stallreq,/g' $DST_DIR/sparc_ifu_fcl.v |
|
sed -e 's/ffu_ifu_stallreq,/ffu_ifu_stallreq, wbm_spc_stallreq,/g' $DST_DIR/sparc_ifu_fcl.v |
|
sed -e 's/assign all_stallreq = ifq_fcl_stallreq/assign all_stallreq = ifq_fcl_stallreq | wbm_spc_stallreq/g' > $DST_DIR/sparc_ifu_fcl_TMP.v
|
sed -e 's/assign all_stallreq = ifq_fcl_stallreq/assign all_stallreq = ifq_fcl_stallreq | wbm_spc_stallreq/g' > $DST_DIR/sparc_ifu_fcl_TMP.v
|
mv -f $DST_DIR/sparc_ifu_fcl_TMP.v $DST_DIR/sparc_ifu_fcl.v
|
mv -f $DST_DIR/sparc_ifu_fcl_TMP.v $DST_DIR/sparc_ifu_fcl.v
|
|
|
|
# This is a temporary hack to take a top-level SPARC Core with the SPU instance removed
|
|
cp -f $S1_ROOT/tools/src/sparc.v $DST_DIR
|
|
|
# Copy also behavioral libraries used for RTL simulations
|
# Copy also behavioral libraries used for RTL simulations
|
DST_DIR=$S1_ROOT/hdl/behav/sparc_libs
|
DST_DIR=$S1_ROOT/hdl/behav/sparc_libs
|
rm -f $DST_DIR/*.*
|
rm -f $DST_DIR/*.*
|
cp $SRC_DIR/../../../lib/m1/m1.behV $DST_DIR/m1_lib.v
|
cp $SRC_DIR/../../../lib/m1/m1.behV $DST_DIR/m1_lib.v
|
cp $SRC_DIR/../../../lib/u1/u1.behV $DST_DIR/u1_lib.v
|
cp $SRC_DIR/../../../lib/u1/u1.behV $DST_DIR/u1_lib.v
|