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";
|
|
|
|
|
2022-12-30 20:26:22 -06:00
|
|
|
echo -e "Test multiple runs of vpr"
|
|
|
|
run-task basic_tests/vpr_standalone $@
|
|
|
|
|
2023-01-01 19:07:25 -06:00
|
|
|
echo -e "Test source commands in openfpga shell"
|
|
|
|
run-task basic_tests/source_command/source_string $@
|
|
|
|
run-task basic_tests/source_command/source_file $@
|
|
|
|
|
2023-06-18 23:01:37 -05:00
|
|
|
echo -e "Testing testbenches using fpga core wrapper"
|
|
|
|
run-task basic_tests/full_testbench/fpga_core_wrapper $@
|
2023-06-23 16:47:21 -05:00
|
|
|
run-task basic_tests/full_testbench/fpga_core_wrapper_naming_rules $@
|
2023-06-26 00:49:51 -05:00
|
|
|
run-task basic_tests/full_testbench/fpga_core_wrapper_naming_rules_use_core_tb $@
|
2023-06-18 23:01:37 -05:00
|
|
|
run-task basic_tests/preconfig_testbench/fpga_core_wrapper $@
|
2023-06-23 16:47:21 -05:00
|
|
|
run-task basic_tests/preconfig_testbench/fpga_core_wrapper_naming_rules $@
|
2023-06-26 00:49:51 -05:00
|
|
|
run-task basic_tests/preconfig_testbench/fpga_core_wrapper_naming_rules_use_core_tb $@
|
2023-06-18 23:01:37 -05:00
|
|
|
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing configuration chain of a K4N4 FPGA";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/full_testbench/configuration_chain $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_no_time_stamp $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_reset $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_resetb $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_set $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_setb $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_use_set_reset $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_chain_config_enable_scff $@
|
|
|
|
run-task basic_tests/full_testbench/multi_region_configuration_chain $@
|
2023-04-22 02:41:19 -05:00
|
|
|
run-task basic_tests/full_testbench/multi_region_configuration_chain_2clk $@
|
2023-04-24 01:55:22 -05:00
|
|
|
run-task basic_tests/full_testbench/multi_region_configuration_chain_3clk $@
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/full_testbench/fast_configuration_chain $@
|
|
|
|
run-task basic_tests/full_testbench/fast_configuration_chain_use_set $@
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_configuration_chain $@
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_multi_region_configuration_chain $@
|
|
|
|
run-task basic_tests/preconfig_testbench/configuration_chain $@
|
|
|
|
run-task basic_tests/preconfig_testbench/configuration_chain_config_done_io $@
|
|
|
|
run-task basic_tests/preconfig_testbench/configuration_chain_no_time_stamp $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing fram-based configuration protocol of a K4N4 FPGA";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/full_testbench/configuration_frame $@
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_configuration_frame $@
|
|
|
|
run-task basic_tests/full_testbench/fast_configuration_frame $@
|
|
|
|
run-task basic_tests/full_testbench/fast_configuration_frame_use_set $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_ccff $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_scff $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_reset $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_resetb $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_set $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_setb $@
|
|
|
|
run-task basic_tests/full_testbench/configuration_frame_use_set_reset $@
|
|
|
|
run-task basic_tests/full_testbench/multi_region_configuration_frame $@
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_multi_region_configuration_frame $@
|
|
|
|
run-task basic_tests/preconfig_testbench/configuration_frame $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing memory bank configuration protocol of a K4N4 FPGA";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/full_testbench/memory_bank $@
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_reset $@
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_resetb $@
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_set $@
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_setb $@
|
|
|
|
run-task basic_tests/full_testbench/memory_bank_use_set_reset $@
|
|
|
|
run-task basic_tests/full_testbench/multi_region_memory_bank $@
|
|
|
|
run-task basic_tests/full_testbench/fast_memory_bank $@
|
|
|
|
run-task basic_tests/full_testbench/fast_memory_bank_use_set $@
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_memory_bank $@
|
|
|
|
run-task basic_tests/full_testbench/smart_fast_multi_region_memory_bank $@
|
|
|
|
run-task basic_tests/preconfig_testbench/memory_bank $@
|
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";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank $@
|
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_use_wlr $@
|
|
|
|
run-task basic_tests/full_testbench/multi_region_ql_memory_bank $@
|
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_flatten $@
|
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_flatten_use_wlr $@
|
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_shift_register $@
|
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_shift_register_use_wlr $@
|
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_shift_register_multi_chain $@
|
2021-09-09 15:48:30 -05:00
|
|
|
|
2023-12-08 15:46:54 -06:00
|
|
|
echo -e "Testing simulator support";
|
|
|
|
run-task basic_tests/full_testbench/ql_memory_bank_shift_register_vcs $@
|
|
|
|
|
2021-06-29 17:08:22 -05:00
|
|
|
echo -e "Testing testbenches without self checking features";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/full_testbench/full_testbench_without_self_checking $@
|
|
|
|
run-task basic_tests/preconfig_testbench/preconfigured_testbench_without_self_checking $@
|
2021-06-29 17:08:22 -05:00
|
|
|
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing standalone (flatten memory) configuration protocol of a K4N4 FPGA";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/full_testbench/flatten_memory $@
|
|
|
|
run-task basic_tests/preconfig_testbench/flatten_memory $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing fixed device layout and routing channel width";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/fixed_device_support $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing fabric Verilog generation only";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/generate_fabric $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing Verilog testbench generation only";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/generate_testbench $@
|
2023-11-02 23:08:36 -05:00
|
|
|
run-task basic_tests/generate_template_testbench $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing separated Verilog fabric netlists and testbench locations";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/custom_fabric_netlist_location $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing user-defined simulation settings: clock frequency and number of cycles";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/fixed_simulation_settings/fixed_operating_clock_freq $@
|
2022-08-01 23:05:05 -05:00
|
|
|
run-task basic_tests/fixed_simulation_settings/fixed_operating_clock_freq_no_ace $@
|
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
|
2022-05-22 00:15:39 -05:00
|
|
|
#run-task basic_tests/fixed_simulation_settings/fixed_shift_register_clock_freq $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
|
|
|
echo -e "Testing Secured FPGA fabrics";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/fabric_key/generate_vanilla_key $@
|
|
|
|
run-task basic_tests/fabric_key/generate_multi_region_vanilla_key $@
|
|
|
|
run-task basic_tests/fabric_key/generate_random_key $@
|
|
|
|
run-task basic_tests/fabric_key/generate_random_key_ql_memory_bank $@
|
|
|
|
run-task basic_tests/fabric_key/load_external_key $@
|
|
|
|
run-task basic_tests/fabric_key/load_external_key_cc_fpga $@
|
2023-07-08 23:52:16 -05:00
|
|
|
run-task basic_tests/fabric_key/load_external_subkey_cc_fpga $@
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/fabric_key/load_external_key_multi_region_cc_fpga $@
|
|
|
|
run-task basic_tests/fabric_key/load_external_key_qlbank_fpga $@
|
|
|
|
run-task basic_tests/fabric_key/load_external_key_multi_region_qlbank_fpga $@
|
|
|
|
run-task basic_tests/fabric_key/load_external_key_qlbanksr_multi_chain_fpga $@
|
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
|
2022-05-22 00:15:39 -05:00
|
|
|
#run-task basic_tests/fabric_key/load_external_key_multi_region_qlbanksr_fpga $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
2023-05-25 22:17:23 -05:00
|
|
|
echo -e "Testing mock wrapper"
|
2023-05-26 23:54:08 -05:00
|
|
|
run-task basic_tests/mock_wrapper/mock_wrapper_explicit_port_mapping $@
|
2023-05-25 22:17:23 -05:00
|
|
|
run-task basic_tests/mock_wrapper/mock_wrapper_implicit_port_mapping $@
|
|
|
|
run-task basic_tests/mock_wrapper/mock_wrapper_pcf $@
|
|
|
|
run-task basic_tests/mock_wrapper/mock_wrapper_bgf $@
|
|
|
|
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4 series FPGA";
|
|
|
|
echo -e "Testing K4N4 with facturable LUTs";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_frac_lut $@
|
2021-04-16 21:01:40 -05:00
|
|
|
echo -e "Testing K4N4 with asynchronous reset";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_fracff $@
|
2022-05-09 04:23:57 -05:00
|
|
|
echo -e "Testing K4N4 with negative edge clocks";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_fracff2edge $@
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 with hard adders";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_adder $@
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 without local routing architecture";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_no_local_routing $@
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 with block RAM";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_bram $@
|
2021-01-29 11:19:05 -06:00
|
|
|
echo -e "Testing K4N4 with LUTRAM";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_lutram $@
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 with multiple lengths of routing segments";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_L124 $@
|
2023-08-22 13:06:12 -05:00
|
|
|
echo -e "Testing K4N4 with routing channel width distribution: x = 0.8, y = 1.0";
|
|
|
|
run-task basic_tests/k4_series/k4n4_chandistr $@
|
2023-08-22 13:20:14 -05:00
|
|
|
echo -e "Testing K4N4 with routing channel width distribution: x = 0.8, y = 1.0 and wire segment distribution: x=L124, Y=L12";
|
|
|
|
run-task basic_tests/k4_series/k4n4_chandistr_segdist $@
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N4 with 32-bit fracturable multiplier";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_frac_mult $@
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing K4N5 with pattern based local routing";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/k4_series/k4n5_pattern_local_routing $@
|
2022-09-08 18:27:11 -05:00
|
|
|
echo -e "Testing K4N4 with custom I/O location syntax";
|
|
|
|
run-task basic_tests/k4_series/k4n4_custom_io_loc $@
|
2022-09-16 12:31:15 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_custom_io_loc_center $@
|
|
|
|
run-task basic_tests/k4_series/k4n4_custom_io_loc_center_height_odd $@
|
|
|
|
run-task basic_tests/k4_series/k4n4_custom_io_loc_center_width_odd $@
|
2022-09-09 19:00:28 -05:00
|
|
|
echo -e "Testing K4N4 with a local routing where reset can driven LUT inputs";
|
|
|
|
run-task basic_tests/k4_series/k4n4_rstOnLut $@
|
2022-10-13 13:17:34 -05:00
|
|
|
run-task basic_tests/k4_series/k4n4_rstOnLut_strong $@
|
2023-01-14 00:07:45 -06:00
|
|
|
echo -e "Testing K4N4 support clock generation by internal resources";
|
|
|
|
run-task basic_tests/k4_series/k4n4_clk_gen $@
|
2023-01-18 20:17:53 -06:00
|
|
|
echo -e "Testing K4N4 support reset generation by internal resources";
|
|
|
|
run-task basic_tests/k4_series/k4n4_rst_gen $@
|
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";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/tile_organization/top_left_custom_pins $@
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing tiles with pins only on top and right sides";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/tile_organization/top_right_custom_pins $@
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing tiles with pins only on bottom and right sides";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/tile_organization/bottom_right_custom_pins $@
|
2020-12-04 19:51:30 -06:00
|
|
|
echo -e "Testing tiles with I/O in center grid";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/tile_organization/tileable_io $@
|
2023-05-03 02:41:29 -05:00
|
|
|
echo -e "Testing tiles with I/O consisting of subtiles";
|
|
|
|
run-task basic_tests/tile_organization/io_subtile $@
|
2023-08-18 13:13:34 -05:00
|
|
|
run-task basic_tests/tile_organization/io_subtile_strong $@
|
2023-07-25 17:48:14 -05:00
|
|
|
echo -e "Testing tile grouping on a homogeneous FPGA fabric (Full testbench)";
|
2023-07-19 13:22:36 -05:00
|
|
|
run-task basic_tests/tile_organization/homo_fabric_tile $@
|
2023-07-25 17:48:14 -05:00
|
|
|
echo -e "Testing tile grouping on a homogeneous FPGA fabric (Preconfigured testbench)";
|
2023-08-18 23:48:40 -05:00
|
|
|
run-task basic_tests/tile_organization/fabric_tile_global_tile_clock_io_subtile $@
|
2023-07-25 17:48:14 -05:00
|
|
|
run-task basic_tests/tile_organization/homo_fabric_tile_preconfig $@
|
2023-07-27 00:32:03 -05:00
|
|
|
run-task basic_tests/tile_organization/homo_fabric_tile_2x2_preconfig $@
|
2023-07-27 00:17:39 -05:00
|
|
|
run-task basic_tests/tile_organization/homo_fabric_tile_4x4_preconfig $@
|
2023-07-27 17:57:38 -05:00
|
|
|
run-task basic_tests/tile_organization/homo_fabric_tile_global_tile_clock $@
|
2023-07-27 18:06:43 -05:00
|
|
|
run-task basic_tests/tile_organization/homo_fabric_tile_adder_chain $@
|
2023-07-27 18:39:48 -05:00
|
|
|
run-task basic_tests/tile_organization/homo_fabric_tile_clkntwk $@
|
2023-07-27 19:03:55 -05:00
|
|
|
run-task basic_tests/tile_organization/hetero_fabric_tile $@
|
2020-11-24 10:58:23 -06:00
|
|
|
|
2023-08-04 00:30:41 -05:00
|
|
|
echo -e "Testing group config block";
|
|
|
|
run-task basic_tests/group_config_block/group_config_block_homo_full_testbench $@
|
2023-08-11 15:07:41 -05:00
|
|
|
run-task basic_tests/group_config_block/group_config_block_homo_Lshape_full_testbench $@
|
2023-08-04 00:30:41 -05:00
|
|
|
run-task basic_tests/group_config_block/group_config_block_homo_fabric_tile $@
|
2023-08-17 16:54:24 -05:00
|
|
|
run-task basic_tests/group_config_block/group_config_block_homo_fabric_tile_Lshape $@
|
2023-08-11 15:07:41 -05:00
|
|
|
run-task basic_tests/group_config_block/group_config_block_homo_fabric_tile_core_wrapper $@
|
|
|
|
run-task basic_tests/group_config_block/group_config_block_hetero_fabric_tile $@
|
|
|
|
run-task basic_tests/group_config_block/group_config_block_hetero_fabric_tile_Lshape $@
|
2023-08-18 23:59:06 -05:00
|
|
|
run-task basic_tests/group_config_block/group_config_block_homo_fabric_tile_global_tile_clock_io_subtile $@
|
2023-08-04 00:30:41 -05:00
|
|
|
|
2023-09-16 19:55:52 -05:00
|
|
|
echo -e "Module naming";
|
|
|
|
run-task basic_tests/module_naming/using_index $@
|
2023-09-17 15:29:12 -05:00
|
|
|
run-task basic_tests/module_naming/renaming_rules $@
|
2023-09-17 19:38:37 -05:00
|
|
|
run-task basic_tests/module_naming/renaming_rules_strong $@
|
2023-09-23 14:40:20 -05:00
|
|
|
run-task basic_tests/module_naming/renaming_rules_on_indexed_names $@
|
2023-09-16 19:55:52 -05:00
|
|
|
|
2020-11-24 10:58:23 -06:00
|
|
|
echo -e "Testing global port definition from tiles";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/global_tile_ports/global_tile_clock $@
|
2023-08-18 23:37:15 -05:00
|
|
|
run-task basic_tests/global_tile_ports/global_tile_clock_subtile $@
|
2023-09-25 20:34:34 -05:00
|
|
|
run-task basic_tests/global_tile_ports/global_tile_clock_subtile_port_merge $@
|
2023-09-26 00:27:24 -05:00
|
|
|
run-task basic_tests/global_tile_ports/global_tile_clock_subtile_port_merge_fabric_tile_group_config $@
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/global_tile_ports/global_tile_reset $@
|
2023-12-12 15:28:35 -06:00
|
|
|
run-task basic_tests/global_tile_ports/global_tile_4clock --default_tool_path ${OPENFPGA_PATH}/openfpga_flow/misc/fpgaflow_default_tool_path_timing.conf $@
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/global_tile_ports/global_tile_4clock_pin $@
|
2020-12-16 06:19:56 -06:00
|
|
|
|
2023-02-28 23:46:57 -06:00
|
|
|
echo -e "Testing programmable clock architecture";
|
|
|
|
run-task basic_tests/clock_network/homo_1clock_2layer $@
|
2023-04-19 21:36:08 -05:00
|
|
|
run-task basic_tests/clock_network/homo_1clock_2layer_full_tb $@
|
2023-04-20 02:06:47 -05:00
|
|
|
run-task basic_tests/clock_network/homo_2clock_2layer $@
|
2023-02-28 23:46:57 -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";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/verific_test $@
|
2021-11-01 08:33:33 -05:00
|
|
|
|
2022-01-19 09:43:26 -06:00
|
|
|
echo -e "Testing explicit multi verilog files";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/explicit_multi_verilog_files $@
|
2022-01-25 18:30:48 -06:00
|
|
|
|
|
|
|
echo -e "Test the remove of runtime directories"
|
2022-05-22 00:15:39 -05:00
|
|
|
clear-task-run basic_tests/explicit_multi_verilog_files $@
|
2022-01-26 13:26:17 -06:00
|
|
|
|
|
|
|
echo -e "Testing write GSB to files";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml $@
|
2022-08-30 00:07:56 -05:00
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_exclude_rr_info $@
|
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_exclude_cbx $@
|
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_exclude_cby $@
|
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_exclude_cbx_cby $@
|
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_exclude_sb $@
|
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_exclude_sb_cbx $@
|
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_exclude_sb_cby $@
|
2022-08-30 10:59:20 -05:00
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_include_sb_cbx_cby $@
|
2022-08-30 00:07:56 -05:00
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_include_single_cbx $@
|
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_include_single_cby $@
|
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_include_single_sb $@
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/write_gsb/write_gsb_to_xml_compress_routing $@
|
|
|
|
run-task basic_tests/write_gsb/write_unique_gsb_to_xml $@
|
|
|
|
run-task basic_tests/write_gsb/write_unique_gsb_to_xml_compress_routing $@
|
2022-02-18 14:27:25 -06:00
|
|
|
|
|
|
|
echo -e "Testing bus group features";
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task basic_tests/bus_group/preconfig_testbench_explicit_mapping $@
|
|
|
|
run-task basic_tests/bus_group/preconfig_testbench_implicit_mapping $@
|
|
|
|
run-task basic_tests/bus_group/full_testbench_explicit_mapping $@
|
|
|
|
run-task basic_tests/bus_group/full_testbench_implicit_mapping $@
|
2023-01-11 19:11:28 -06:00
|
|
|
run-task basic_tests/bus_group/auto_gen_bus_group $@
|
2022-04-13 03:06:27 -05:00
|
|
|
|
|
|
|
echo -e "Testing fix pins features";
|
2022-10-17 13:18:21 -05:00
|
|
|
run-task basic_tests/io_constraints/fix_pins $@
|
|
|
|
run-task basic_tests/io_constraints/example_pcf $@
|
|
|
|
run-task basic_tests/io_constraints/empty_pcf $@
|
2022-10-17 17:25:19 -05:00
|
|
|
run-task basic_tests/io_constraints/pcf_ql_style $@
|
2022-05-03 00:23:45 -05:00
|
|
|
|
|
|
|
echo -e "Testing project templates";
|
2023-02-11 23:11:06 -06:00
|
|
|
run-task template_tasks/fabric_netlist_gen_template $@
|
|
|
|
run-task template_tasks/fabric_verification_template $@
|
|
|
|
run-task template_tasks/frac-lut-arch-explore_template $@
|
2022-05-22 00:15:39 -05:00
|
|
|
run-task template_tasks/vtr_benchmarks_template $@
|
2022-05-03 15:03:52 -05:00
|
|
|
|
|
|
|
echo -e "Testing create tsk from template and run task"
|
|
|
|
create-task _task_copy basic_tests/generate_fabric
|
2022-08-25 18:20:18 -05:00
|
|
|
run-task _task_copy $@
|
2022-05-22 00:15:39 -05:00
|
|
|
|
|
|
|
echo -e "Testing output files without time stamp";
|
2022-09-06 16:59:00 -05:00
|
|
|
run-task basic_tests/no_time_stamp/device_1x1 $@
|
|
|
|
run-task basic_tests/no_time_stamp/device_4x4 $@
|
2022-10-01 13:04:08 -05:00
|
|
|
run-task basic_tests/no_time_stamp/no_cout_in_gsb $@
|
2022-05-22 00:15:39 -05:00
|
|
|
# Run git-diff to ensure no changes on the golden netlists
|
2022-05-22 21:32:43 -05:00
|
|
|
# Switch to root path in case users are running the tests in another location
|
|
|
|
cd ${OPENFPGA_PATH}
|
2022-05-22 22:21:36 -05:00
|
|
|
pwd
|
|
|
|
git config --global --add safe.directory ${OPENFPGA_PATH}
|
|
|
|
git log
|
2022-09-20 22:29:34 -05:00
|
|
|
if git diff --name-status --exit-code -- ':openfpga_flow/tasks/basic_tests/no_time_stamp/*/golden_outputs_no_time_stamp/**'; then
|
2022-05-22 00:15:39 -05:00
|
|
|
echo -e "Golden netlist remain unchanged"
|
|
|
|
else
|
2022-09-20 22:09:41 -05:00
|
|
|
echo -e "Detect changes in golden netlists";
|
|
|
|
git diff -- ':openfpga_flow/tasks/basic_tests/no_time_stamp/*/golden_outputs_no_time_stamp/**';
|
|
|
|
exit 1;
|
2022-05-22 00:15:39 -05:00
|
|
|
fi
|
2022-05-22 21:32:43 -05:00
|
|
|
cd -
|
2022-05-22 00:15:39 -05:00
|
|
|
|
|
|
|
# Repgression test to test multi-user enviroment
|
|
|
|
# Note: Keep this task as the last one!!!
|
|
|
|
cp -r */*/basic_tests/full_testbench/configuration_chain /tmp/
|
|
|
|
cd /tmp/ && run-task configuration_chain $@
|
|
|
|
cd -
|