From 0ee3efb30694d873e33d091f623ef9d76336bca1 Mon Sep 17 00:00:00 2001 From: Lalit Sharma Date: Thu, 10 Dec 2020 02:41:43 -0800 Subject: [PATCH] Adding a testcase to run yosys quicklogic flow --- .../misc/quicklogic_yosys_flow_ap3.ys | 6 ++++ .../flow_test/config/task.conf | 36 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 openfpga_flow/misc/quicklogic_yosys_flow_ap3.ys create mode 100644 openfpga_flow/tasks/quicklogic_tests/flow_test/config/task.conf diff --git a/openfpga_flow/misc/quicklogic_yosys_flow_ap3.ys b/openfpga_flow/misc/quicklogic_yosys_flow_ap3.ys new file mode 100644 index 000000000..e49fdfca1 --- /dev/null +++ b/openfpga_flow/misc/quicklogic_yosys_flow_ap3.ys @@ -0,0 +1,6 @@ +# Yosys synthesis script for ${TOP_MODULE} +# Read verilog files +${READ_VERILOG_FILE} + +synth_quicklogic -blif ${TOP_MODULE}.eblif -family ap3 -top ${TOP_MODULE} + diff --git a/openfpga_flow/tasks/quicklogic_tests/flow_test/config/task.conf b/openfpga_flow/tasks/quicklogic_tests/flow_test/config/task.conf new file mode 100644 index 000000000..affb18a87 --- /dev/null +++ b/openfpga_flow/tasks/quicklogic_tests/flow_test/config/task.conf @@ -0,0 +1,36 @@ +# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = +# 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/implicit_verilog_example_script.openfpga +openfpga_arch_file=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_arch/k4_frac_N4_adder_chain_40nm_cc_openfpga.xml +openfpga_sim_setting_file=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_simulation_settings/auto_sim_openfpga.xml + +[ARCHITECTURES] +arch0=${PATH:OPENFPGA_PATH}/openfpga_flow/vpr_arch/k4_frac_N4_tileable_adder_chain_40nm.xml + +[BENCHMARKS] +bench0=${PATH:OPENFPGA_PATH}/openfpga_flow/benchmarks/micro_benchmark/counter/counter.v + +[SYNTHESIS_PARAM] +bench0_top = counter +bench0_chan_width = 300 +bench0_yosys=${PATH:OPENFPGA_PATH}/openfpga_flow/misc/quicklogic_yosys_flow_ap3.ys + +[SCRIPT_PARAM_MIN_ROUTE_CHAN_WIDTH] +end_flow_with_test= +vpr_fpga_verilog_formal_verification_top_netlist=