-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_project.tcl
614 lines (549 loc) · 32.7 KB
/
create_project.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
#*****************************************************************************************
# Vivado (TM) v2019.2 (64-bit)
#
# create_project.tcl: Tcl script for re-creating project 'mips_processor'
#
# Generated by Vivado on Fri May 15 20:47:19 -0700 2020
# IP Build 2700528 on Thu Nov 7 00:09:20 MST 2019
#
# This file contains the Vivado Tcl commands for re-creating the project to the state*
# when this script was generated. In order to re-create the project, please source this
# file in the Vivado Tcl Shell.
#
# * Note that the runs in the created project will be configured the same way as the
# original project, however they will not be launched automatically. To regenerate the
# run results please launch the synthesis/implementation runs as needed.
#
#*****************************************************************************************
# NOTE: In order to use this script for source control purposes, please make sure that the
# following files are added to the source control system:-
#
# 1. This project restoration tcl script (create_project.tcl) that was generated.
#
# 2. The following source(s) files that were local or imported into the original project.
# (Please see the '$orig_proj_dir' and '$origin_dir' variable setting below at the start of the script)
#
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/multiplier.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/regfile.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/fpga/button_debouncer.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/fpga/led_mux.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/datapath.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/fpga/hex_to_7seg.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/cu/maindec.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/adder.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/mux3.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/mux6.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/shifter.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/cu/controlunit.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/signext.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/cu/auxdec.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/alu.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/mux2.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/fpga/clk_gen.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/factorial/MUX.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/factorial/REG.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/factorial/factorial_cu.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/factorial/factorial.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/factorial/MUL.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/factorial/factorial_dp.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/factorial/CMP.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/factorial/CNT.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/dmem.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/imem.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/mips.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/AddressDecoder.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/system.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/fpga/fpga_top.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/fpga/disp_hex_mux.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/fact_top.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/SR_reg.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/AddressDecoderGpio.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/gpio.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/mux4.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/fact_ad.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/id_exe_reg.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/system/hazard_unit.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/mem_wb_reg.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/exe_mem_reg.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/dreg_en.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/if_id_reg.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sources_1/new/dp/cmp_eq.v"
# "F:/cmpe140/mips_processor/machine_code/poll.dat"
# "F:/cmpe140/mips_processor/machine_code/fact.dat"
# "F:/cmpe140/mips_processor/mips_processor.srcs/constrs_1/new/mips_fpga.xdc"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sim_1/new/tb_mips_top.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sim_1/new/tb_mips_extended.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sim_1/new/tb_system_decoder.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sim_1/new/tb_fact_top.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sim_1/new/tb_gpio.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sim_1/new/tb_system_integration.v"
# "F:/cmpe140/mips_processor/mips_processor.srcs/sim_1/new/tb_if_id.v"
# "F:/cmpe140/mips_processor/tb_if_id_behav.wcfg"
#
# 3. The following remote source files that were added to the original project:-
#
# <none>
#
#*****************************************************************************************
# Set the reference directory for source file relative paths (by default the value is script directory path)
set origin_dir [file dirname [file normalize [info script]]]
cd $origin_dir
# Use origin directory path location variable, if specified in the tcl shell
if { [info exists ::origin_dir_loc] } {
set origin_dir $::origin_dir_loc
}
# Set the project name
set _xil_proj_name_ "mips_processor"
# Use project name variable, if specified in the tcl shell
if { [info exists ::user_project_name] } {
set _xil_proj_name_ $::user_project_name
}
variable script_file
set script_file "create_project.tcl"
# Help information for this script
proc print_help {} {
variable script_file
puts "\nDescription:"
puts "Recreate a Vivado project from this script. The created project will be"
puts "functionally equivalent to the original project for which this script was"
puts "generated. The script contains commands for creating a project, filesets,"
puts "runs, adding/importing sources and setting properties on various objects.\n"
puts "Syntax:"
puts "$script_file"
puts "$script_file -tclargs \[--origin_dir <path>\]"
puts "$script_file -tclargs \[--project_name <name>\]"
puts "$script_file -tclargs \[--help\]\n"
puts "Usage:"
puts "Name Description"
puts "-------------------------------------------------------------------------"
puts "\[--origin_dir <path>\] Determine source file paths wrt this path. Default"
puts " origin_dir path value is \".\", otherwise, the value"
puts " that was set with the \"-paths_relative_to\" switch"
puts " when this script was generated.\n"
puts "\[--project_name <name>\] Create project with the specified name. Default"
puts " name is the name of the project from where this"
puts " script was generated.\n"
puts "\[--help\] Print help information for this script"
puts "-------------------------------------------------------------------------\n"
exit 0
}
if { $::argc > 0 } {
for {set i 0} {$i < $::argc} {incr i} {
set option [string trim [lindex $::argv $i]]
switch -regexp -- $option {
"--origin_dir" { incr i; set origin_dir [lindex $::argv $i] }
"--project_name" { incr i; set _xil_proj_name_ [lindex $::argv $i] }
"--help" { print_help }
default {
if { [regexp {^-} $option] } {
puts "ERROR: Unknown option '$option' specified, please type '$script_file -tclargs --help' for usage info.\n"
return 1
}
}
}
}
}
# Set the directory path for the original project from where this script was exported
set orig_proj_dir "[file normalize "$origin_dir/"]"
# Create project
create_project ${_xil_proj_name_} ./${_xil_proj_name_} -part xc7a35tcpg236-1
# Set the directory path for the new project
set proj_dir [get_property directory [current_project]]
# Set project properties
set obj [current_project]
set_property -name "default_lib" -value "xil_defaultlib" -objects $obj
set_property -name "enable_vhdl_2008" -value "1" -objects $obj
set_property -name "ip_cache_permissions" -value "read write" -objects $obj
set_property -name "ip_output_repo" -value "$proj_dir/${_xil_proj_name_}.cache/ip" -objects $obj
set_property -name "mem.enable_memory_map_generation" -value "1" -objects $obj
set_property -name "part" -value "xc7a35tcpg236-1" -objects $obj
set_property -name "sim.central_dir" -value "$proj_dir/${_xil_proj_name_}.ip_user_files" -objects $obj
set_property -name "sim.ip.auto_export_scripts" -value "1" -objects $obj
set_property -name "simulator_language" -value "Mixed" -objects $obj
set_property -name "source_mgmt_mode" -value "DisplayOnly" -objects $obj
set_property -name "webtalk.activehdl_launch_sim" -value "3" -objects $obj
set_property -name "webtalk.xsim_launch_sim" -value "470" -objects $obj
# Create 'sources_1' fileset (if not found)
if {[string equal [get_filesets -quiet sources_1] ""]} {
create_fileset -srcset sources_1
}
# Set 'sources_1' fileset object
set obj [get_filesets sources_1]
# Add local files from the original project (-no_copy_sources specified)
set files [list \
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/multiplier.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/regfile.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/fpga/button_debouncer.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/fpga/led_mux.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/datapath.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/fpga/hex_to_7seg.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/cu/maindec.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/adder.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/mux3.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/mux6.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/shifter.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/cu/controlunit.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/signext.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/cu/auxdec.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/alu.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/mux2.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/fpga/clk_gen.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/factorial/MUX.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/factorial/REG.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/factorial/factorial_cu.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/factorial/factorial.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/factorial/MUL.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/factorial/factorial_dp.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/factorial/CMP.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/factorial/CNT.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/dmem.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/imem.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/mips.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/AddressDecoder.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/system.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/fpga/fpga_top.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/fpga/disp_hex_mux.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/fact_top.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/SR_reg.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/AddressDecoderGpio.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/gpio.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/mux4.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/fact_ad.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/id_exe_reg.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/system/hazard_unit.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/mem_wb_reg.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/exe_mem_reg.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/dreg_en.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/if_id_reg.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sources_1/new/dp/cmp_eq.v" ]\
[file normalize "${origin_dir}/machine_code/poll.dat" ]\
[file normalize "${origin_dir}/machine_code/fact.dat" ]\
]
set added_files [add_files -fileset sources_1 $files]
# Set 'sources_1' fileset file properties for remote files
# None
# Set 'sources_1' fileset file properties for local files
set file "machine_code/poll.dat"
set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
set_property -name "file_type" -value "Data Files" -objects $file_obj
set file "machine_code/fact.dat"
set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
set_property -name "file_type" -value "Data Files" -objects $file_obj
# Set 'sources_1' fileset properties
set obj [get_filesets sources_1]
set_property -name "top" -value "fpga_top" -objects $obj
set_property -name "top_auto_set" -value "0" -objects $obj
# Create 'constrs_1' fileset (if not found)
if {[string equal [get_filesets -quiet constrs_1] ""]} {
create_fileset -constrset constrs_1
}
# Set 'constrs_1' fileset object
set obj [get_filesets constrs_1]
# Add/Import constrs file and set constrs file properties
set file "[file normalize "$origin_dir/mips_processor.srcs/constrs_1/new/mips_fpga.xdc"]"
set file_added [add_files -norecurse -fileset $obj [list $file]]
set file "new/mips_fpga.xdc"
set file_obj [get_files -of_objects [get_filesets constrs_1] [list "*$file"]]
set_property -name "file_type" -value "XDC" -objects $file_obj
# Set 'constrs_1' fileset properties
set obj [get_filesets constrs_1]
set_property -name "target_part" -value "xc7a35tcpg236-1" -objects $obj
# Create 'sim_1' fileset (if not found)
if {[string equal [get_filesets -quiet sim_1] ""]} {
create_fileset -simset sim_1
}
# Set 'sim_1' fileset object
set obj [get_filesets sim_1]
# Add local files from the original project (-no_copy_sources specified)
set files [list \
[file normalize "${origin_dir}/mips_processor.srcs/sim_1/new/tb_mips_top.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sim_1/new/tb_mips_extended.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sim_1/new/tb_system_decoder.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sim_1/new/tb_fact_top.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sim_1/new/tb_gpio.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sim_1/new/tb_system_integration.v" ]\
[file normalize "${origin_dir}/mips_processor.srcs/sim_1/new/tb_if_id.v" ]\
[file normalize "${origin_dir}/tb_if_id_behav.wcfg" ]\
]
set added_files [add_files -fileset sim_1 $files]
# Set 'sim_1' fileset file properties for remote files
# None
# Set 'sim_1' fileset file properties for local files
set file "mips_processor/tb_if_id_behav.wcfg"
set file_obj [get_files -of_objects [get_filesets sim_1] [list "*$file"]]
set_property -name "is_enabled" -value "0" -objects $file_obj
# Set 'sim_1' fileset properties
set obj [get_filesets sim_1]
set_property -name "top" -value "tb_system_decoder" -objects $obj
set_property -name "top_auto_set" -value "0" -objects $obj
set_property -name "top_lib" -value "xil_defaultlib" -objects $obj
# Set 'utils_1' fileset object
set obj [get_filesets utils_1]
# Empty (no sources present)
# Set 'utils_1' fileset properties
set obj [get_filesets utils_1]
# Create 'synth_1' run (if not found)
if {[string equal [get_runs -quiet synth_1] ""]} {
create_run -name synth_1 -part xc7a35tcpg236-1 -flow {Vivado Synthesis 2019} -strategy "Vivado Synthesis Defaults" -report_strategy {No Reports} -constrset constrs_1
} else {
set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1]
set_property flow "Vivado Synthesis 2019" [get_runs synth_1]
}
set obj [get_runs synth_1]
set_property set_report_strategy_name 1 $obj
set_property report_strategy {Vivado Synthesis Default Reports} $obj
set_property set_report_strategy_name 0 $obj
# Create 'synth_1_synth_report_utilization_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0] "" ] } {
create_report_config -report_name synth_1_synth_report_utilization_0 -report_type report_utilization:1.0 -steps synth_design -runs synth_1
}
set obj [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0]
if { $obj != "" } {
}
set obj [get_runs synth_1]
set_property -name "part" -value "xc7a35tcpg236-1" -objects $obj
set_property -name "strategy" -value "Vivado Synthesis Defaults" -objects $obj
# set the current synth run
current_run -synthesis [get_runs synth_1]
# Create 'impl_1' run (if not found)
if {[string equal [get_runs -quiet impl_1] ""]} {
create_run -name impl_1 -part xc7a35tcpg236-1 -flow {Vivado Implementation 2019} -strategy "Vivado Implementation Defaults" -report_strategy {No Reports} -constrset constrs_1 -parent_run synth_1
} else {
set_property strategy "Vivado Implementation Defaults" [get_runs impl_1]
set_property flow "Vivado Implementation 2019" [get_runs impl_1]
}
set obj [get_runs impl_1]
set_property set_report_strategy_name 1 $obj
set_property report_strategy {Vivado Implementation Default Reports} $obj
set_property set_report_strategy_name 0 $obj
# Create 'impl_1_init_report_timing_summary_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0] "" ] } {
create_report_config -report_name impl_1_init_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps init_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0]
if { $obj != "" } {
set_property -name "is_enabled" -value "0" -objects $obj
set_property -name "options.max_paths" -value "10" -objects $obj
}
# Create 'impl_1_opt_report_drc_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0] "" ] } {
create_report_config -report_name impl_1_opt_report_drc_0 -report_type report_drc:1.0 -steps opt_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0]
if { $obj != "" } {
}
# Create 'impl_1_opt_report_timing_summary_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0] "" ] } {
create_report_config -report_name impl_1_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps opt_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0]
if { $obj != "" } {
set_property -name "is_enabled" -value "0" -objects $obj
set_property -name "options.max_paths" -value "10" -objects $obj
}
# Create 'impl_1_power_opt_report_timing_summary_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0] "" ] } {
create_report_config -report_name impl_1_power_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps power_opt_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0]
if { $obj != "" } {
set_property -name "is_enabled" -value "0" -objects $obj
set_property -name "options.max_paths" -value "10" -objects $obj
}
# Create 'impl_1_place_report_io_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0] "" ] } {
create_report_config -report_name impl_1_place_report_io_0 -report_type report_io:1.0 -steps place_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0]
if { $obj != "" } {
}
# Create 'impl_1_place_report_utilization_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0] "" ] } {
create_report_config -report_name impl_1_place_report_utilization_0 -report_type report_utilization:1.0 -steps place_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0]
if { $obj != "" } {
}
# Create 'impl_1_place_report_control_sets_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0] "" ] } {
create_report_config -report_name impl_1_place_report_control_sets_0 -report_type report_control_sets:1.0 -steps place_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0]
if { $obj != "" } {
set_property -name "options.verbose" -value "1" -objects $obj
}
# Create 'impl_1_place_report_incremental_reuse_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0] "" ] } {
create_report_config -report_name impl_1_place_report_incremental_reuse_0 -report_type report_incremental_reuse:1.0 -steps place_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0]
if { $obj != "" } {
set_property -name "is_enabled" -value "0" -objects $obj
}
# Create 'impl_1_place_report_incremental_reuse_1' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1] "" ] } {
create_report_config -report_name impl_1_place_report_incremental_reuse_1 -report_type report_incremental_reuse:1.0 -steps place_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1]
if { $obj != "" } {
set_property -name "is_enabled" -value "0" -objects $obj
}
# Create 'impl_1_place_report_timing_summary_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0] "" ] } {
create_report_config -report_name impl_1_place_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps place_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0]
if { $obj != "" } {
set_property -name "is_enabled" -value "0" -objects $obj
set_property -name "options.max_paths" -value "10" -objects $obj
}
# Create 'impl_1_post_place_power_opt_report_timing_summary_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0] "" ] } {
create_report_config -report_name impl_1_post_place_power_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps post_place_power_opt_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0]
if { $obj != "" } {
set_property -name "is_enabled" -value "0" -objects $obj
set_property -name "options.max_paths" -value "10" -objects $obj
}
# Create 'impl_1_phys_opt_report_timing_summary_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0] "" ] } {
create_report_config -report_name impl_1_phys_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps phys_opt_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0]
if { $obj != "" } {
set_property -name "is_enabled" -value "0" -objects $obj
set_property -name "options.max_paths" -value "10" -objects $obj
}
# Create 'impl_1_route_report_drc_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0] "" ] } {
create_report_config -report_name impl_1_route_report_drc_0 -report_type report_drc:1.0 -steps route_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0]
if { $obj != "" } {
}
# Create 'impl_1_route_report_methodology_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0] "" ] } {
create_report_config -report_name impl_1_route_report_methodology_0 -report_type report_methodology:1.0 -steps route_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0]
if { $obj != "" } {
}
# Create 'impl_1_route_report_power_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0] "" ] } {
create_report_config -report_name impl_1_route_report_power_0 -report_type report_power:1.0 -steps route_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0]
if { $obj != "" } {
}
# Create 'impl_1_route_report_route_status_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0] "" ] } {
create_report_config -report_name impl_1_route_report_route_status_0 -report_type report_route_status:1.0 -steps route_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0]
if { $obj != "" } {
}
# Create 'impl_1_route_report_timing_summary_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0] "" ] } {
create_report_config -report_name impl_1_route_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps route_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0]
if { $obj != "" } {
set_property -name "options.max_paths" -value "10" -objects $obj
}
# Create 'impl_1_route_report_incremental_reuse_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0] "" ] } {
create_report_config -report_name impl_1_route_report_incremental_reuse_0 -report_type report_incremental_reuse:1.0 -steps route_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0]
if { $obj != "" } {
}
# Create 'impl_1_route_report_clock_utilization_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0] "" ] } {
create_report_config -report_name impl_1_route_report_clock_utilization_0 -report_type report_clock_utilization:1.0 -steps route_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0]
if { $obj != "" } {
}
# Create 'impl_1_route_report_bus_skew_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0] "" ] } {
create_report_config -report_name impl_1_route_report_bus_skew_0 -report_type report_bus_skew:1.1 -steps route_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0]
if { $obj != "" } {
set_property -name "options.warn_on_violation" -value "1" -objects $obj
}
# Create 'impl_1_post_route_phys_opt_report_timing_summary_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0] "" ] } {
create_report_config -report_name impl_1_post_route_phys_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps post_route_phys_opt_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0]
if { $obj != "" } {
set_property -name "options.max_paths" -value "10" -objects $obj
set_property -name "options.warn_on_violation" -value "1" -objects $obj
}
# Create 'impl_1_post_route_phys_opt_report_bus_skew_0' report (if not found)
if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0] "" ] } {
create_report_config -report_name impl_1_post_route_phys_opt_report_bus_skew_0 -report_type report_bus_skew:1.1 -steps post_route_phys_opt_design -runs impl_1
}
set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0]
if { $obj != "" } {
set_property -name "options.warn_on_violation" -value "1" -objects $obj
}
set obj [get_runs impl_1]
set_property -name "part" -value "xc7a35tcpg236-1" -objects $obj
set_property -name "strategy" -value "Vivado Implementation Defaults" -objects $obj
set_property -name "steps.phys_opt_design.is_enabled" -value "1" -objects $obj
set_property -name "steps.write_bitstream.args.readback_file" -value "0" -objects $obj
set_property -name "steps.write_bitstream.args.verbose" -value "0" -objects $obj
# set the current impl run
current_run -implementation [get_runs impl_1]
puts "INFO: Project created:${_xil_proj_name_}"
# Create 'drc_1' gadget (if not found)
if {[string equal [get_dashboard_gadgets [ list "drc_1" ] ] ""]} {
create_dashboard_gadget -name {drc_1} -type drc
}
set obj [get_dashboard_gadgets [ list "drc_1" ] ]
set_property -name "reports" -value "impl_1#impl_1_route_report_drc_0" -objects $obj
# Create 'methodology_1' gadget (if not found)
if {[string equal [get_dashboard_gadgets [ list "methodology_1" ] ] ""]} {
create_dashboard_gadget -name {methodology_1} -type methodology
}
set obj [get_dashboard_gadgets [ list "methodology_1" ] ]
set_property -name "reports" -value "impl_1#impl_1_route_report_methodology_0" -objects $obj
# Create 'power_1' gadget (if not found)
if {[string equal [get_dashboard_gadgets [ list "power_1" ] ] ""]} {
create_dashboard_gadget -name {power_1} -type power
}
set obj [get_dashboard_gadgets [ list "power_1" ] ]
set_property -name "reports" -value "impl_1#impl_1_route_report_power_0" -objects $obj
# Create 'timing_1' gadget (if not found)
if {[string equal [get_dashboard_gadgets [ list "timing_1" ] ] ""]} {
create_dashboard_gadget -name {timing_1} -type timing
}
set obj [get_dashboard_gadgets [ list "timing_1" ] ]
set_property -name "reports" -value "impl_1#impl_1_route_report_timing_summary_0" -objects $obj
# Create 'utilization_1' gadget (if not found)
if {[string equal [get_dashboard_gadgets [ list "utilization_1" ] ] ""]} {
create_dashboard_gadget -name {utilization_1} -type utilization
}
set obj [get_dashboard_gadgets [ list "utilization_1" ] ]
set_property -name "reports" -value "synth_1#synth_1_synth_report_utilization_0" -objects $obj
set_property -name "run.step" -value "synth_design" -objects $obj
set_property -name "run.type" -value "synthesis" -objects $obj
# Create 'utilization_2' gadget (if not found)
if {[string equal [get_dashboard_gadgets [ list "utilization_2" ] ] ""]} {
create_dashboard_gadget -name {utilization_2} -type utilization
}
set obj [get_dashboard_gadgets [ list "utilization_2" ] ]
set_property -name "reports" -value "impl_1#impl_1_place_report_utilization_0" -objects $obj
move_dashboard_gadget -name {utilization_1} -row 0 -col 0
move_dashboard_gadget -name {power_1} -row 1 -col 0
move_dashboard_gadget -name {drc_1} -row 2 -col 0
move_dashboard_gadget -name {timing_1} -row 0 -col 1
move_dashboard_gadget -name {utilization_2} -row 1 -col 1
move_dashboard_gadget -name {methodology_1} -row 2 -col 1
close_project
file copy -force ${_xil_proj_name_}/${_xil_proj_name_}.xpr ${_xil_proj_name_}.xpr
file delete -force ${_xil_proj_name_}
open_project ${_xil_proj_name_}.xpr