From f06248a1b00364885a0f5a9f1e4fea0a99a3ccd7 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 24 Apr 2023 14:55:22 +0800 Subject: [PATCH] [test] add a new testcase to validate the ccff v2 --- ...4_N4_40nm_multi_region_cc3clk_openfpga.xml | 195 ++++++++++++++++++ .../regression_test_scripts/basic_reg_test.sh | 1 + .../config/task.conf | 45 ++++ 3 files changed, 241 insertions(+) create mode 100644 openfpga_flow/openfpga_arch/k4_N4_40nm_multi_region_cc3clk_openfpga.xml create mode 100644 openfpga_flow/tasks/basic_tests/full_testbench/multi_region_configuration_chain_3clk/config/task.conf diff --git a/openfpga_flow/openfpga_arch/k4_N4_40nm_multi_region_cc3clk_openfpga.xml b/openfpga_flow/openfpga_arch/k4_N4_40nm_multi_region_cc3clk_openfpga.xml new file mode 100644 index 000000000..d68a4cc3e --- /dev/null +++ b/openfpga_flow/openfpga_arch/k4_N4_40nm_multi_region_cc3clk_openfpga.xml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10e-12 + + + 10e-12 + + + + + + + + + 10e-12 + + + 10e-12 + + + + + + + + + 10e-12 + + + 10e-12 + + + + + + + + + + + + + 10e-12 5e-12 5e-12 + + + 10e-12 5e-12 5e-12 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openfpga_flow/regression_test_scripts/basic_reg_test.sh b/openfpga_flow/regression_test_scripts/basic_reg_test.sh index bc437ec0b..dd9e64a56 100755 --- a/openfpga_flow/regression_test_scripts/basic_reg_test.sh +++ b/openfpga_flow/regression_test_scripts/basic_reg_test.sh @@ -26,6 +26,7 @@ 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 $@ run-task basic_tests/full_testbench/multi_region_configuration_chain_2clk $@ +run-task basic_tests/full_testbench/multi_region_configuration_chain_3clk $@ 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 $@ diff --git a/openfpga_flow/tasks/basic_tests/full_testbench/multi_region_configuration_chain_3clk/config/task.conf b/openfpga_flow/tasks/basic_tests/full_testbench/multi_region_configuration_chain_3clk/config/task.conf new file mode 100644 index 000000000..26bd594e5 --- /dev/null +++ b/openfpga_flow/tasks/basic_tests/full_testbench/multi_region_configuration_chain_3clk/config/task.conf @@ -0,0 +1,45 @@ +# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = +# Configuration file for running experiments +# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = +# timeout_each_job : FPGA Task script splits fpga flow into multiple jobs +# Each job execute fpga_flow script on combination of architecture & benchmark +# timeout_each_job is timeout for each job +# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = + +[GENERAL] +run_engine=openfpga_shell +power_tech_file = ${PATH:OPENFPGA_PATH}/openfpga_flow/tech/PTM_45nm/45nm.xml +power_analysis = true +spice_output=false +verilog_output=true +timeout_each_job = 20*60 +fpga_flow=yosys_vpr + +[OpenFPGA_SHELL] +openfpga_shell_template=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_shell_scripts/write_full_testbench_example_script.openfpga +openfpga_arch_file=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_arch/k4_N4_40nm_multi_region_cc3clk_openfpga.xml +openfpga_sim_setting_file=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_simulation_settings/auto_sim_openfpga.xml +openfpga_vpr_device_layout=--device 2x2 +openfpga_fast_configuration= + +[ARCHITECTURES] +arch0=${PATH:OPENFPGA_PATH}/openfpga_flow/vpr_arch/k4_N4_tileable_40nm.xml + +[BENCHMARKS] +bench0=${PATH:OPENFPGA_PATH}/openfpga_flow/benchmarks/micro_benchmark/and2/and2.v +bench1=${PATH:OPENFPGA_PATH}/openfpga_flow/benchmarks/micro_benchmark/or2/or2.v +bench2=${PATH:OPENFPGA_PATH}/openfpga_flow/benchmarks/micro_benchmark/and2_latch/and2_latch.v + +[SYNTHESIS_PARAM] +bench_read_verilog_options_common = -nolatches +bench0_top = and2 +bench0_chan_width = 300 + +bench1_top = or2 +bench1_chan_width = 300 + +bench2_top = and2_latch +bench2_chan_width = 300 + +[SCRIPT_PARAM_MIN_ROUTE_CHAN_WIDTH] +end_flow_with_test=