URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
Subversion Repositories s1_core
[/] [s1_core/] [trunk/] [tools/] [bin/] [update_sparccore] - Rev 15
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/bash# Set source and destination directoriesSRC_DIR=$T1_ROOT/design/sys/iopDST_DIR=$S1_ROOT/hdl/rtl/sparc_core# Clean destination directoryrm -f $DST_DIR/*.*rm -f $DST_DIR/include/*.*# Copy all the Verilog files of the SPARC Core into destination directorycp $SRC_DIR/include/*.h $DST_DIR/includecp $SRC_DIR/srams/rtl/*.v $DST_DIRcp $SRC_DIR/analog/bw_clk/rtl/*.v $DST_DIRcp $SRC_DIR/analog/bw_rng/rtl/*.v $DST_DIRfind $SRC_DIR/common -name "*.v" -exec cp {} $DST_DIR \;find $SRC_DIR/pr_macro -name "*.v" -exec cp {} $DST_DIR \;find $SRC_DIR/sparc -name "*.v" -exec cp {} $DST_DIR \;# Remove synthetized files -- if anyfind $DST_DIR -name "*_flat.v" -exec rm -f {} \;find $DST_DIR -name "*_flat_nc.v" -exec rm -f {} \;find $DST_DIR -name "*_hier.v" -exec rm -f {} \;rm -f $DST_DIR/bw_r_l2t.v# Clean the files by substituting the $error System Taskfor file in $DST_DIR/*.v ; dosed -e 's/\$error/\$display/g' $file | sed -e 's/negedge rclk or rst_l/negedge rclk/g' > $DST_DIR/temp.vmv -f $DST_DIR/temp.v $filedone# Hack the SPARC Core to add the external stall input from the bridgesed -e 's/pcx_spc_grant_px,/pcx_spc_grant_px, wbm_spc_stallreq,/g' $DST_DIR/sparc.v |sed -e 's/pcx_spc_grant_px;/pcx_spc_grant_px; input wbm_spc_stallreq;/g' |sed -e 's/sparc_ifu ifu(/sparc_ifu ifu( .wbm_spc_stallreq(wbm_spc_stallreq),/g' > $DST_DIR/sparc_TMP.vmv -f $DST_DIR/sparc_TMP.v $DST_DIR/sparc.vsed -e 's/ffu_ifu_stallreq,/ffu_ifu_stallreq, wbm_spc_stallreq,/g' $DST_DIR/sparc_ifu.v |sed -e 's/ffu_ifu_stallreq;/ffu_ifu_stallreq; input wbm_spc_stallreq;/g' |sed -e 's/sparc_ifu_fcl fcl(/sparc_ifu_fcl fcl( .wbm_spc_stallreq(wbm_spc_stallreq),/g' > $DST_DIR/sparc_ifu_TMP.vmv -f $DST_DIR/sparc_ifu_TMP.v $DST_DIR/sparc_ifu.vsed -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.vmv -f $DST_DIR/sparc_ifu_fcl_TMP.v $DST_DIR/sparc_ifu_fcl.v# Copy also behavioral libraries used for RTL simulationsDST_DIR=$S1_ROOT/hdl/behav/sparc_libsrm -f $DST_DIR/*.*cp $SRC_DIR/../../../lib/m1/m1.behV $DST_DIR/m1_lib.vcp $SRC_DIR/../../../lib/u1/u1.behV $DST_DIR/u1_lib.v
Go to most recent revision | Compare with Previous | Blame | View Log
