2020-11-24 10:58:23 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
2021-01-26 17:40:45 -06:00
|
|
|
source openfpga.sh
|
|
|
|
PYTHON_EXEC=python3.8
|
2020-11-24 10:58:23 -06:00
|
|
|
###############################################
|
|
|
|
# OpenFPGA Shell with VPR8
|
|
|
|
##############################################
|
|
|
|
echo -e "Basic regression tests";
|
|
|
|
|
|
|
|
echo -e "Testing configuration chain of a K4N4 FPGA";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/full_testbench/configuration_chain --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_reset --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_resetb --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_set --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_setb --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_set_reset --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_config_enable_scff --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/multi_region_configuration_chain --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/fast_configuration_chain --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/fast_configuration_chain_use_set --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_configuration_chain --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_multi_region_configuration_chain --debug --show_thread_logs
|
|
|
|
run-task basic_tests/preconfig_testbench/configuration_chain --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing fram-based configuration protocol of a K4N4 FPGA";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/full_testbench/configuration_frame --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_configuration_frame --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/fast_configuration_frame --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/fast_configuration_frame_use_set --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_ccff --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_scff --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_reset --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_resetb --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_set --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_setb --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_set_reset --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/multi_region_configuration_frame --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_multi_region_configuration_frame --debug --show_thread_logs
|
|
|
|
run-task basic_tests/preconfig_testbench/configuration_frame --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing memory bank configuration protocol of a K4N4 FPGA";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/full_testbench/memory_bank --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_reset --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_resetb --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_set --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_setb --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_set_reset --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/multi_region_memory_bank --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/fast_memory_bank --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/fast_memory_bank_use_set --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_memory_bank --debug --show_thread_logs
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_multi_region_memory_bank --debug --show_thread_logs
|
|
|
|
run-task basic_tests/preconfig_testbench/memory_bank --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
2021-09-09 15:48:30 -05:00
|
|
|
echo -e "Testing physical design friendly memory bank configuration protocol of a K4N4 FPGA";
|
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank --debug --show_thread_logs
|
2021-09-20 13:21:58 -05:00
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_use_wlr --debug --show_thread_logs
|
2021-09-22 12:05:27 -05:00
|
|
|
run-task basic_tests/full_testbench/multi_region_ql_memory_bank --debug --show_thread_logs
|
2021-09-22 17:58:05 -05:00
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_flatten --debug --show_thread_logs
|
2021-09-28 13:29:45 -05:00
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_flatten_use_wlr --debug --show_thread_logs
|
2021-10-03 18:06:44 -05:00
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_shift_register --debug --show_thread_logs
|
2021-10-04 18:37:49 -05:00
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_shift_register_use_wlr --debug --show_thread_logs
|
2021-10-09 22:45:23 -05:00
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_shift_register_multi_chain --debug --show_thread_logs
|
2021-09-09 15:48:30 -05:00
|
|
|
|
2021-06-29 17:08:22 -05:00
|
|
|
echo -e "Testing testbenches without self checking features";
|
|
|
|
run-task basic_tests/full_testbench/full_testbench_without_self_checking --debug --show_thread_logs
|
|
|
|
run-task basic_tests/preconfig_testbench/preconfigured_testbench_without_self_checking --debug --show_thread_logs
|
|
|
|
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing standalone (flatten memory) configuration protocol of a K4N4 FPGA";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/full_testbench/flatten_memory --debug --show_thread_logs
|
|
|
|
run-task basic_tests/preconfig_testbench/flatten_memory --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing fixed device layout and routing channel width";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/fixed_device_support --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing fabric Verilog generation only";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/generate_fabric --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing Verilog testbench generation only";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/generate_testbench --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing separated Verilog fabric netlists and testbench locations";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/custom_fabric_netlist_location --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing user-defined simulation settings: clock frequency and number of cycles";
|
2021-10-06 14:10:37 -05:00
|
|
|
run-task basic_tests/fixed_simulation_settings/fixed_operating_clock_freq --debug --show_thread_logs
|
2021-10-11 01:30:50 -05:00
|
|
|
# TODO: This feature is temporarily out of test due to the emergency in delivering netlists for multi-chain shift-register memory bank
|
|
|
|
#run-task basic_tests/fixed_simulation_settings/fixed_shift_register_clock_freq --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing Secured FPGA fabrics";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/fabric_key/generate_vanilla_key --debug --show_thread_logs
|
|
|
|
run-task basic_tests/fabric_key/generate_multi_region_vanilla_key --debug --show_thread_logs
|
|
|
|
run-task basic_tests/fabric_key/generate_random_key --debug --show_thread_logs
|
2021-09-21 17:43:54 -05:00
|
|
|
run-task basic_tests/fabric_key/generate_random_key_ql_memory_bank --debug --show_thread_logs
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/fabric_key/load_external_key --debug --show_thread_logs
|
|
|
|
run-task basic_tests/fabric_key/load_external_key_cc_fpga --debug --show_thread_logs
|
|
|
|
run-task basic_tests/fabric_key/load_external_key_multi_region_cc_fpga --debug --show_thread_logs
|
2021-09-21 18:25:14 -05:00
|
|
|
run-task basic_tests/fabric_key/load_external_key_qlbank_fpga --debug --show_thread_logs
|
2021-09-22 13:30:08 -05:00
|
|
|
run-task basic_tests/fabric_key/load_external_key_multi_region_qlbank_fpga --debug --show_thread_logs
|
2021-10-11 11:54:39 -05:00
|
|
|
run-task basic_tests/fabric_key/load_external_key_qlbanksr_multi_chain_fpga --debug --show_thread_logs
|
2021-10-11 01:30:50 -05:00
|
|
|
# TODO: This feature is temporarily out of test due to the emergency in delivering netlists for multi-chain shift-register memory bank
|
|
|
|
#run-task basic_tests/fabric_key/load_external_key_multi_region_qlbanksr_fpga --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing K4 series FPGA";
|
|
|
|
echo -e "Testing K4N4 with facturable LUTs";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/k4_series/k4n4_frac_lut --debug --show_thread_logs
|
2021-04-16 21:01:40 -05:00
|
|
|
echo -e "Testing K4N4 with asynchronous reset";
|
|
|
|
run-task basic_tests/k4_series/k4n4_fracff --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 with hard adders";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/k4_series/k4n4_adder --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 without local routing architecture";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/k4_series/k4n4_no_local_routing --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 with block RAM";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/k4_series/k4n4_bram --debug --show_thread_logs
|
2021-01-29 11:19:05 -06:00
|
|
|
echo -e "Testing K4N4 with LUTRAM";
|
|
|
|
run-task basic_tests/k4_series/k4n4_lutram --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 with multiple lengths of routing segments";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/k4_series/k4n4_L124 --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 with 32-bit fracturable multiplier";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/k4_series/k4n4_frac_mult --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N5 with pattern based local routing";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/k4_series/k4n5_pattern_local_routing --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing different tile organizations";
|
|
|
|
echo -e "Testing tiles with pins only on top and left sides";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/tile_organization/top_left_custom_pins --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing tiles with pins only on top and right sides";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/tile_organization/top_right_custom_pins --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing tiles with pins only on bottom and right sides";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/tile_organization/bottom_right_custom_pins --debug --show_thread_logs
|
2020-12-04 19:51:30 -06:00
|
|
|
echo -e "Testing tiles with I/O in center grid";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/tile_organization/tileable_io --debug --show_thread_logs
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing global port definition from tiles";
|
2021-01-26 17:40:45 -06:00
|
|
|
run-task basic_tests/global_tile_ports/global_tile_clock --debug --show_thread_logs
|
|
|
|
run-task basic_tests/global_tile_ports/global_tile_reset --debug --show_thread_logs
|
|
|
|
run-task basic_tests/global_tile_ports/global_tile_4clock --debug --show_thread_logs
|
2020-12-16 06:19:56 -06:00
|
|
|
|
2021-11-01 08:33:33 -05:00
|
|
|
echo -e "Testing configuration chain of a K4N4 FPGA using .blif generated by yosys+verific";
|
|
|
|
run-task basic_tests/verific_test --debug --show_thread_logs
|
|
|
|
|
2022-01-19 09:43:26 -06:00
|
|
|
echo -e "Testing explicit multi verilog files";
|
|
|
|
run-task basic_tests/explicit_multi_verilog_files --debug --show_thread_logs
|
|
|
|
|
2021-02-08 11:20:57 -06:00
|
|
|
# Repgression test to test multi-user enviroment
|
2021-02-08 13:06:36 -06:00
|
|
|
cp -r */*/basic_tests/full_testbench/configuration_chain /tmp/
|
2021-02-16 13:29:10 -06:00
|
|
|
cd /tmp/ && run-task configuration_chain --debug --show_thread_logs
|