-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(digit_Reg): update scripts to support tapaopt
- Loading branch information
1 parent
295a6e4
commit c582ed1
Showing
29 changed files
with
253 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -449,3 +449,4 @@ _x.*/ | |
*.bit | ||
bazel-* | ||
MODULE.bazel* | ||
work.out |
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
13 changes: 13 additions & 0 deletions
13
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c.py/ab_config.json
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,13 @@ | ||
{ | ||
"dse_range_max": 0.8, | ||
"dse_range_min": 0.7, | ||
"partition_strategy": "flat", | ||
"port_pre_assignments": { | ||
".*mem_in1.*": "HBM[0]", | ||
".*mem_out_.*": "HBM[0]", | ||
"ap_clk": "CLK_RST", | ||
"ap_rst_n": "CLK_RST", | ||
"interrupt": "CLK_RST", | ||
"s_axi_control_.*": "S_AXI_CONTROL" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c.py/impl_config.json
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,7 @@ | ||
{ | ||
"max_workers": 2, | ||
"port_to_clock_period": { | ||
"ap_clk": 3.33 | ||
}, | ||
"vitis_platform": "xilinx_u55c_gen3x16_xdma_3_202210_1" | ||
} |
3 changes: 3 additions & 0 deletions
3
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c.py/link_config.ini
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 @@ | ||
[connectivity] | ||
sp=digit_recognizer.mem_in1:HBM[0] | ||
sp=digit_recognizer.mem_out:HBM[0] |
13 changes: 13 additions & 0 deletions
13
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_right_left.py/ab_config.json
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,13 @@ | ||
{ | ||
"dse_range_max": 0.8, | ||
"dse_range_min": 0.7, | ||
"partition_strategy": "flat", | ||
"port_pre_assignments": { | ||
".*mem_in1.*": "SLOT_X0Y0:SLOT_X0Y0", | ||
".*mem_out_.*": "SLOT_X0Y0:SLOT_X0Y0", | ||
"ap_clk": "SLOT_X0Y0:SLOT_X0Y0", | ||
"ap_rst_n": "SLOT_X0Y0:SLOT_X0Y0", | ||
"interrupt": "SLOT_X0Y0:SLOT_X0Y0", | ||
"s_axi_control_.*": "SLOT_X0Y0:SLOT_X0Y0" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_right_left.py/impl_config.json
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,7 @@ | ||
{ | ||
"max_workers": 2, | ||
"port_to_clock_period": { | ||
"ap_clk": 3.33 | ||
}, | ||
"vitis_platform": "xilinx_u55c_gen3x16_xdma_3_202210_1" | ||
} |
3 changes: 3 additions & 0 deletions
3
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_right_left.py/link_config.ini
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 @@ | ||
[connectivity] | ||
sp=digit_recognizer.mem_in1:HBM[0] | ||
sp=digit_recognizer.mem_out:HBM[0] |
13 changes: 13 additions & 0 deletions
13
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_top_bottom.py/ab_config.json
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,13 @@ | ||
{ | ||
"dse_range_max": 0.8, | ||
"dse_range_min": 0.7, | ||
"partition_strategy": "flat", | ||
"port_pre_assignments": { | ||
".*mem_in1.*": "SLOT_X0Y0:SLOT_X0Y0", | ||
".*mem_out_.*": "SLOT_X0Y0:SLOT_X0Y0", | ||
"ap_clk": "SLOT_X0Y0:SLOT_X0Y0", | ||
"ap_rst_n": "SLOT_X0Y0:SLOT_X0Y0", | ||
"interrupt": "SLOT_X0Y0:SLOT_X0Y0", | ||
"s_axi_control_.*": "SLOT_X0Y0:SLOT_X0Y0" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_top_bottom.py/impl_config.json
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,7 @@ | ||
{ | ||
"max_workers": 2, | ||
"port_to_clock_period": { | ||
"ap_clk": 3.33 | ||
}, | ||
"vitis_platform": "xilinx_u55c_gen3x16_xdma_3_202210_1" | ||
} |
3 changes: 3 additions & 0 deletions
3
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_top_bottom.py/link_config.ini
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 @@ | ||
[connectivity] | ||
sp=digit_recognizer.mem_in1:HBM[0] | ||
sp=digit_recognizer.mem_out:HBM[0] |
13 changes: 13 additions & 0 deletions
13
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_x0y0_x1y0.py/ab_config.json
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,13 @@ | ||
{ | ||
"dse_range_max": 0.8, | ||
"dse_range_min": 0.7, | ||
"partition_strategy": "flat", | ||
"port_pre_assignments": { | ||
".*mem_in1.*": "SLOT_X0Y0:SLOT_X0Y0", | ||
".*mem_out_.*": "SLOT_X0Y0:SLOT_X0Y0", | ||
"ap_clk": "SLOT_X0Y0:SLOT_X0Y0", | ||
"ap_rst_n": "SLOT_X0Y0:SLOT_X0Y0", | ||
"interrupt": "SLOT_X0Y0:SLOT_X0Y0", | ||
"s_axi_control_.*": "SLOT_X0Y0:SLOT_X0Y0" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_x0y0_x1y0.py/impl_config.json
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,7 @@ | ||
{ | ||
"max_workers": 2, | ||
"port_to_clock_period": { | ||
"ap_clk": 3.33 | ||
}, | ||
"vitis_platform": "xilinx_u55c_gen3x16_xdma_3_202210_1" | ||
} |
3 changes: 3 additions & 0 deletions
3
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_x0y0_x1y0.py/link_config.ini
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 @@ | ||
[connectivity] | ||
sp=digit_recognizer.mem_in1:HBM[0] | ||
sp=digit_recognizer.mem_out:HBM[0] |
13 changes: 13 additions & 0 deletions
13
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_x0y0_x1y2.py/ab_config.json
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,13 @@ | ||
{ | ||
"dse_range_max": 0.8, | ||
"dse_range_min": 0.7, | ||
"partition_strategy": "flat", | ||
"port_pre_assignments": { | ||
".*mem_in1.*": "SLOT_X0Y0:SLOT_X0Y0", | ||
".*mem_out_.*": "SLOT_X0Y0:SLOT_X0Y0", | ||
"ap_clk": "SLOT_X0Y0:SLOT_X0Y0", | ||
"ap_rst_n": "SLOT_X0Y0:SLOT_X0Y0", | ||
"interrupt": "SLOT_X0Y0:SLOT_X0Y0", | ||
"s_axi_control_.*": "SLOT_X0Y0:SLOT_X0Y0" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_x0y0_x1y2.py/impl_config.json
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,7 @@ | ||
{ | ||
"max_workers": 2, | ||
"port_to_clock_period": { | ||
"ap_clk": 3.33 | ||
}, | ||
"vitis_platform": "xilinx_u55c_gen3x16_xdma_3_202210_1" | ||
} |
3 changes: 3 additions & 0 deletions
3
benchmarks/tapa_flow/digit_recognizer/design/config/run_u55c_x0y0_x1y2.py/link_config.ini
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 @@ | ||
[connectivity] | ||
sp=digit_recognizer.mem_in1:HBM[0] | ||
sp=digit_recognizer.mem_out:HBM[0] |
Binary file modified
BIN
+65.6 KB
(110%)
benchmarks/tapa_flow/digit_recognizer/design/digit_recognizer.xo
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
WORK_DIR=work.out | ||
|
||
tapa compile \ | ||
--top digit_recognizer \ | ||
--part-num xcu55c-fsvh2892-2L-e \ | ||
--clock-period 3.33 \ | ||
-o ${WORK_DIR}/digit_recognizer.xo \ | ||
-f digit_recognizer.cpp \ | ||
2>&1 | tee tapa.log |
65 changes: 0 additions & 65 deletions
65
benchmarks/tapa_flow/digit_recognizer/run_u280_x0y0_x1y0.py
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
__copyright__ = """ | ||
Copyright (c) 2024 RapidStream Design Automation, Inc. and contributors. All rights reserved. | ||
The contributor(s) of this file has/have agreed to the RapidStream Contributor License Agreement. | ||
""" | ||
|
||
from pathlib import Path | ||
from rapidstream import get_u55c_vitis_device_factory | ||
|
||
CURR_DIR = Path(__file__).parent | ||
CURR_FILE = Path(__file__).name | ||
|
||
VITIS_PLATFORM = ( | ||
"xilinx_u55c_gen3x16_xdma_3_202210_1" # "xilinx_u280_gen3x16_xdma_1_202211_1" | ||
) | ||
|
||
factory = get_u55c_vitis_device_factory(VITIS_PLATFORM) | ||
|
||
factory.reduce_slot_area(1, 0, lut=50000, ff=60000) | ||
factory.reduce_slot_area(0, 0, lut=50000, ff=60000) | ||
factory.reduce_slot_area(1, 1, dsp=100) | ||
|
||
factory.generate_virtual_device(Path(f"{CURR_DIR}/build/{CURR_FILE}/device.json")) |
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
Oops, something went wrong.