Checkpoint: map, fit
This commit is contained in:
parent
c96ed77c4d
commit
71a46afa79
|
@ -47,11 +47,7 @@ tab_%/results.txt:
|
||||||
area: synth_area_small synth_area_regular synth_area_large
|
area: synth_area_small synth_area_regular synth_area_large
|
||||||
-grep -B4 -A10 'Slice LUTs' synth_area_small.log synth_area_regular.log synth_area_large.log
|
-grep -B4 -A10 'Slice LUTs' synth_area_small.log synth_area_regular.log synth_area_large.log
|
||||||
|
|
||||||
table.txt: tab_small_xc7a_1/results.txt tab_small_xc7a_2/results.txt tab_small_xc7a_3/results.txt
|
table.txt: tab_small_ep4ce_c7/results.txt
|
||||||
table.txt: tab_small_xc7k_1/results.txt tab_small_xc7k_2/results.txt tab_small_xc7k_3/results.txt
|
|
||||||
table.txt: tab_small_xc7v_1/results.txt tab_small_xc7v_2/results.txt tab_small_xc7v_3/results.txt
|
|
||||||
table.txt: tab_small_xcku_1/results.txt tab_small_xcku_2/results.txt tab_small_xcku_3/results.txt
|
|
||||||
table.txt: tab_small_xcvu_1/results.txt tab_small_xcvu_2/results.txt tab_small_xcvu_3/results.txt
|
|
||||||
|
|
||||||
table.txt:
|
table.txt:
|
||||||
bash table.sh > table.txt
|
bash table.sh > table.txt
|
||||||
|
|
|
@ -18,46 +18,32 @@ synth_case() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${dev}" in
|
case "${dev}" in
|
||||||
xc7a) xl_device="xc7a15t-fgg484-${grade}" ;;
|
ep4ce) al_device="ep4ce30f23${grade}" ;;
|
||||||
xc7k) xl_device="xc7k70t-fbg676-${grade}" ;;
|
|
||||||
xc7v) xl_device="xc7v585t-ffg1761-${grade}" ;;
|
|
||||||
xcku) xl_device="xcku035-fbva676-${grade}" ;;
|
|
||||||
xcvu) xl_device="xcvu065-ffvc1517-${grade}" ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "${dev}-${grade}" in
|
cat > test_${1}.qsf <<- EOT
|
||||||
xcku-1) xl_device="${xl_device}-c" ;;
|
set_global_assignment -name DEVICE ${al_device}
|
||||||
xcvu-1) xl_device="${xl_device}-i" ;;
|
set_global_assignment -name PROJECT_OUTPUT_DIRECTORY output_files
|
||||||
xcku-?|xcvu-?) xl_device="${xl_device}-e" ;;
|
set_global_assignment -name TOP_LEVEL_ENTITY top
|
||||||
esac
|
set_global_assignment -name VERILOG_FILE ../tabtest.v
|
||||||
|
set_global_assignment -name VERILOG_FILE ../../../picorv32.v
|
||||||
cat > test_${1}.tcl <<- EOT
|
set_global_assignment -name SDC_FILE test_${1}.sdc
|
||||||
read_verilog ../tabtest.v
|
|
||||||
read_verilog ../../../picorv32.v
|
|
||||||
read_xdc test_${1}.xdc
|
|
||||||
synth_design -flatten_hierarchy full -part ${xl_device} -top top
|
|
||||||
opt_design -sweep -remap -propconst
|
|
||||||
opt_design -directive Explore
|
|
||||||
place_design -directive Explore
|
|
||||||
phys_opt_design -retime -rewire -critical_pin_opt -placement_opt -critical_cell_opt
|
|
||||||
route_design -directive Explore
|
|
||||||
place_design -post_place_opt
|
|
||||||
phys_opt_design -retime
|
|
||||||
route_design -directive NoTimingRelaxation
|
|
||||||
report_utilization
|
|
||||||
report_timing
|
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
cat > test_${1}.xdc <<- EOT
|
cat > test_${1}.sdc <<- EOT
|
||||||
create_clock -period ${speed%?}.${speed#?} [get_ports clk]
|
create_clock -period ${speed%?}.${speed#?} [get_ports clk]
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
echo "Running tab_${ip}_${dev}_${grade}/test_${1}.."
|
echo "Running tab_${ip}_${dev}_${grade}/test_${1}.."
|
||||||
if ! $VIVADO -nojournal -log test_${1}.log -mode batch -source test_${1}.tcl > /dev/null 2>&1; then
|
|
||||||
cat test_${1}.log
|
quartus_map test_${1}
|
||||||
exit 1
|
quartus_fit --read_settings_files=off --write_settings_files=off test_${1} -c test_${1}
|
||||||
fi
|
|
||||||
mv test_${1}.log test_${1}.txt
|
# if ! $VIVADO -nojournal -log test_${1}.log -mode batch -source test_${1}.tcl > /dev/null 2>&1; then
|
||||||
|
# cat test_${1}.log
|
||||||
|
# exit 1
|
||||||
|
# fi
|
||||||
|
# mv test_${1}.log test_${1}.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
countdown=2
|
countdown=2
|
||||||
|
|
Loading…
Reference in New Issue