Skip to content

Commit 3525d87

Browse files
committed
Fixing Vivado run script
1 parent e0b9574 commit 3525d87

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ python examples/synthesis/make.py -g arithmetic -n add -o results.csv
6060
python examples/synthesis/make.py -g arithmetic -clean
6161
```
6262

63-
**Run a single benchmark in vivado**
63+
**Run Vivado**
6464
```sh
65-
python examples/synthesis/make.py -g memory -name ramsp -tool vivado
65+
python examples/synthesis/make.py -g arithmetic -n add -tool vivado -target xc7s50csga324-1
6666
```
6767

6868
# Benchmark Listing

examples/synthesis/make.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@
5353

5454
args = parser.parse_args()
5555

56+
# Error checking
57+
if args.tool == 'vivado' and args.target is None:
58+
print("Target must be specified with Vivado tool.")
59+
exit()
60+
5661
# resolving relative path
5762
cwd = os.getcwd()
5863
scriptdir = Path(__file__).resolve().parent
@@ -81,7 +86,7 @@
8186
cmd = ['yosys', '-m', 'slang', '-s', script]
8287
elif args.tool == 'vivado':
8388
script = f"{name}.tcl"
84-
cmd = ['vivado', '-mode batch', '-source', script]
89+
cmd = ['vivado', '-mode', 'batch', '-source', script]
8590

8691
# clean up old results
8792
if os.path.isdir(f"build/{group}/{name}"):

examples/synthesis/vivado_template.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ wait_on_run synth_1
3434
open_run synth_1
3535

3636
# === REPORTING ===
37-
report_utilization -file "post_synth_util.rpt"
38-
report_timing_summary -file "post_synth_timing.rpt"
39-
report_qor -name qor_summary -file "qor_summary.xml -format XML
37+
# TODO: Xilinx keeps breaking these, fix for latest version
38+
report_utilization -file "${top_module}_util.rpt"
39+
report_timing_summary -file "${top_module}_timing.rpt"

0 commit comments

Comments
 (0)