-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for external attraction data.
Add assertion for external atrraction data load
- Loading branch information
Showing
8 changed files
with
132 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module top(input clock, in, output reg out); | ||
reg [9:0] register_chain; | ||
|
||
always @(posedge clock) begin | ||
register_chain[0] <= in; | ||
register_chain[1] <= register_chain[0]; | ||
register_chain[2] <= register_chain[1] + register_chain[1]; | ||
register_chain[3] <= register_chain[2] + register_chain[2]; | ||
register_chain[4] <= register_chain[3] + register_chain[3]; | ||
register_chain[5] <= register_chain[4]; | ||
register_chain[6] <= register_chain[5]; | ||
register_chain[7] <= register_chain[6]; | ||
register_chain[8] <= register_chain[7]; | ||
register_chain[9] <= register_chain[8]; | ||
out <= register_chain[9]; | ||
end | ||
|
||
endmodule |
3 changes: 3 additions & 0 deletions
3
vtr_flow/parse/pass_requirements/pass_requirements_worse_cluster.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
placed_wirelength_est;Range(1.05,2.0) | ||
num_post_packed_nets;Range(1.05,2.0) | ||
min_chan_width_routing_area_total;Range(1.05,2.0) |
34 changes: 34 additions & 0 deletions
34
...asks/regression_tests/vtr_reg_strong/strong_cluster_external_attraction/config/config.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# | ||
############################################ | ||
# Configuration file for running experiments | ||
############################################## | ||
|
||
# Path to directory of circuits to use | ||
circuits_dir=benchmarks/verilog | ||
|
||
# Path to directory of architectures to use | ||
archs_dir=arch/timing | ||
|
||
# Add circuits to list to sweep | ||
circuit_list_add=single_chain.v | ||
|
||
# Add architectures to list to sweep | ||
arch_list_add=EArch.xml | ||
|
||
# Parse info and how to parse | ||
parse_file=vpr_standard.txt | ||
|
||
# How to parse QoR info | ||
qor_parse_file=qor_standard.txt | ||
|
||
# Pass requirements | ||
pass_requirements_file=pass_requirements_worse_cluster.txt | ||
|
||
#Sweep option range | ||
script_params_common = --cluster_seed_type timing --pack_verbosity 3 | ||
|
||
#additional_files_list_add =--external_attraction_file,sample_external_attraction_data.xml | ||
# script_params_list_add =--seed 1 | ||
|
||
#additional_files_list_add =--external_attraction_file,sample_external_attraction_data_2.xml | ||
script_params_list_add =--seed 1 --external_attraction_file ../../../../config/sample_external_attraction_data_2.xml |
2 changes: 2 additions & 0 deletions
2
...ression_tests/vtr_reg_strong/strong_cluster_external_attraction/config/golden_results.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
arch circuit script_params vtr_flow_elapsed_time vtr_max_mem_stage vtr_max_mem error odin_synth_time max_odin_mem parmys_synth_time max_parmys_mem abc_depth abc_synth_time abc_cec_time abc_sec_time max_abc_mem ace_time max_ace_mem num_clb num_io num_memories num_mult vpr_status vpr_revision vpr_build_info vpr_compiler vpr_compiled hostname rundir max_vpr_mem num_primary_inputs num_primary_outputs num_pre_packed_nets num_pre_packed_blocks num_netlist_clocks num_post_packed_nets num_post_packed_blocks device_width device_height device_grid_tiles device_limiting_resources device_name pack_mem pack_time placed_wirelength_est place_mem place_time place_quench_time placed_CPD_est placed_setup_TNS_est placed_setup_WNS_est placed_geomean_nonvirtual_intradomain_critical_path_delay_est place_delay_matrix_lookup_time place_quench_timing_analysis_time place_quench_sta_time place_total_timing_analysis_time place_total_sta_time min_chan_width routed_wirelength min_chan_width_route_success_iteration logic_block_area_total logic_block_area_used min_chan_width_routing_area_total min_chan_width_routing_area_per_tile min_chan_width_route_time min_chan_width_total_timing_analysis_time min_chan_width_total_sta_time crit_path_num_rr_graph_nodes crit_path_num_rr_graph_edges crit_path_collapsed_nodes crit_path_routed_wirelength crit_path_route_success_iteration crit_path_total_nets_routed crit_path_total_connections_routed crit_path_total_heap_pushes crit_path_total_heap_pops crit_path_total_internal_heap_pushes crit_path_total_internal_heap_pops crit_path_total_external_heap_pushes crit_path_total_external_heap_pops crit_path_total_external_SOURCE_pushes crit_path_total_external_SOURCE_pops crit_path_total_internal_SOURCE_pushes crit_path_total_internal_SOURCE_pops crit_path_total_external_SINK_pushes crit_path_total_external_SINK_pops crit_path_total_internal_SINK_pushes crit_path_total_internal_SINK_pops crit_path_total_external_IPIN_pushes crit_path_total_external_IPIN_pops crit_path_total_internal_IPIN_pushes crit_path_total_internal_IPIN_pops crit_path_total_external_OPIN_pushes crit_path_total_external_OPIN_pops crit_path_total_internal_OPIN_pushes crit_path_total_internal_OPIN_pops crit_path_total_external_CHANX_pushes crit_path_total_external_CHANX_pops crit_path_total_internal_CHANX_pushes crit_path_total_internal_CHANX_pops crit_path_total_external_CHANY_pushes crit_path_total_external_CHANY_pops crit_path_total_internal_CHANY_pushes crit_path_total_internal_CHANY_pops crit_path_rt_node_SOURCE_pushes crit_path_rt_node_SINK_pushes crit_path_rt_node_IPIN_pushes crit_path_rt_node_OPIN_pushes crit_path_rt_node_CHANX_pushes crit_path_rt_node_CHANY_pushes crit_path_adding_all_rt crit_path_adding_high_fanout_rt crit_path_total_number_of_adding_all_rt_from_calling_high_fanout_rt critical_path_delay geomean_nonvirtual_intradomain_critical_path_delay setup_TNS setup_WNS hold_TNS hold_WNS crit_path_routing_area_total crit_path_routing_area_per_tile router_lookahead_computation_time crit_path_route_time crit_path_create_rr_graph_time crit_path_create_intra_cluster_rr_graph_time crit_path_tile_lookahead_computation_time crit_path_router_lookahead_computation_time crit_path_total_timing_analysis_time crit_path_total_sta_time | ||
EArch.xml single_chain.v common_--seed_1_--external_attraction_file_../../../../config/sample_external_attraction_data_2.xml 1.67 vpr 69.92 MiB -1 -1 0.08 23552 1 0.01 -1 -1 34404 -1 -1 3 2 0 0 success 4cb517a7f-dirty debug VTR_ASSERT_LEVEL=2 GNU 11.4.0 on Linux-6.2.0-32-generic x86_64 2023-09-10T16:03:13 siwei-X570 /home/siwei/Developer/vtr-verilog-to-routing/vtr_flow/tasks 71596 2 1 21 22 1 7 6 5 5 25 clb auto 31.6 MiB 0.03 12 69.9 MiB 0.00 0.00 0.97541 -7.57542 -0.97541 0.97541 0.23 0.000267334 0.000190603 0.00187422 0.00137103 12 25 5 323364 161682 13670.8 546.832 0.62 0.0139454 0.0111213 1380 2690 -1 23 1 4 4 180 104 0 0 180 104 4 4 0 0 20 18 0 0 28 28 0 0 4 4 0 0 73 24 0 0 51 26 0 0 4 0 0 0 0 0 4 0 0 1.19517 1.19517 -8.3775 -1.19517 0 0 17474.5 698.981 0.03 0.00 0.03 -1 -1 0.03 0.00432479 0.00331434 |
28 changes: 28 additions & 0 deletions
28
...eg_strong/strong_cluster_external_attraction/config/sample_external_attraction_data_2.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<attraction_data> | ||
<attraction> | ||
<src name="$add~0^ADD~0-0[0]"></src> | ||
<dst_list> | ||
<dst name="$dff~4^Q~0" score="-100"></dst> | ||
<dst name="$add~1^ADD~1-0[0]" score="100"></dst> | ||
</dst_list> | ||
</attraction> | ||
<attraction> | ||
<src name="$add~1^ADD~1-0[0]"></src> | ||
<dst_list> | ||
<dst name="$add~0^ADD~0-0[0]" score="100"></dst> | ||
</dst_list> | ||
</attraction> | ||
<attraction> | ||
<src name="$dff~4^Q~0"></src> | ||
<dst_list> | ||
<dst name="$add~0^ADD~0-0[0]" score="-100"></dst> | ||
<dst name="$dff~4^Q~5" score="100"></dst> | ||
</dst_list> | ||
</attraction> | ||
<attraction> | ||
<src name="$dff~4^Q~5"></src> | ||
<dst_list> | ||
<dst name="$dff~4^Q~0" score="100"></dst> | ||
</dst_list> | ||
</attraction> | ||
</attraction_data> |