URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
Subversion Repositories s1_core
[/] [s1_core/] [trunk/] [tools/] [bin/] [s1_synth] - Rev 111
Compare with Previous | Blame | View Log
#!/bin/bashset -eif ( (test $# != 1) || ((test $1 != "xst") && (test $1 != "fpga") && (test $1 != "dc")) ) thenecho "Usage: $0 {xst|fpga|dc}"exit 1fitest_var S1_ROOTecho -e "Synthesizing the design using $1"mkdir -p $S1_ROOT/run/synth/$1cd $S1_ROOT/run/synth/$1rm -rf * .syn*if(test $1 == "xst") thenxst -ifn $S1_ROOT/tools/src/build_xst.cmd -ofn synth.log#export TOP_LEVEL="s1_top"#ngdbuild ${TOP_LEVEL}#map -o ${TOP_LEVEL}_map.ncd ${TOP_LEVEL}#par -w -ol high ${TOP_LEVEL}_map.ncd ${TOP_LEVEL}.ncd#bitgen -g startupclk:Cclk -w ${TOP_LEVEL} ${TOP_LEVEL}.bit#trce ${TOP_LEVEL} ${TOP_LEVEL}_mapfiif(test $1 == "fpga") theniverilog -g1 -t xnf -o fpga.edif -c$FILELIST_FPGA 2>&1 | tee synth.logfiif(test $1 == "dc") thenmkdir workln -s -f ../../../tools/src/synopsys_dc.setup .synopsys_dc.setupdc_shell -tcl_mode -f $FILELIST_DC 2>&1 | tee synth.logfiecho -e "Synthesis with $1 done!"
