Skip to content

Commit 02e4c44

Browse files
author
Salvador Santoluctio
committed
getting custom projects working
1 parent 5fe91d6 commit 02e4c44

File tree

46 files changed

+5156
-2861
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5156
-2861
lines changed

copilot_fill_missing_top_ports.ps1

Lines changed: 486 additions & 0 deletions
Large diffs are not rendered by default.

targets/common/TCL/CheckSyntaxTemplate.tcl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
# githubvisible=true
21

32
# Auto-generated by nihdl check-syntax
4-
set pre_synth_tcl {PRE_SYNTH_TCL_PATH}
53
open_project {PROJECT_FILE_NAME}
64
update_compile_order -fileset sources_1
75
set_property top TOP_ENTITY_NAME [current_fileset]
86

9-
if {[file exists $pre_synth_tcl]} {
10-
source $pre_synth_tcl
11-
}
127

138
if {[catch {
149
synth_design -rtl -top TOP_ENTITY_NAME -part FPGA_PART_NAME -name nihdl_check_syntax

targets/common/TCL/CompileProject.tcl

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
# Auto-generated by nihdl compile-project
3+
open_project {PROJECT_FILE_NAME}
4+
update_compile_order -fileset sources_1
5+
6+
proc ensure_run_exists {run_name} {
7+
set matched_runs [get_runs $run_name]
8+
if {[llength $matched_runs] == 0} {
9+
error "Vivado run '$run_name' was not found in the project."
10+
}
11+
}
12+
13+
proc launch_impl_run {} {
14+
ensure_run_exists synth_1
15+
ensure_run_exists impl_1
16+
17+
puts "Resetting synth_1 to force a full downstream rebuild."
18+
reset_run synth_1
19+
20+
puts "Resetting impl_1 to guarantee write_bitstream can relaunch."
21+
reset_run impl_1
22+
23+
launch_runs impl_1 -to_step write_bitstream -jobs 11
24+
wait_on_run impl_1
25+
}
26+
27+
if {[catch {
28+
launch_impl_run
29+
30+
set run_status [get_property STATUS [get_runs impl_1]]
31+
if {![string match "*Complete*" $run_status]} {
32+
error "Implementation run did not complete successfully. Run status: $run_status"
33+
}
34+
} result options]} {
35+
puts stderr $result
36+
if {[dict exists $options -errorinfo]} {
37+
puts stderr [dict get $options -errorinfo]
38+
}
39+
puts "NIHDL_COMPILE_PROJECT=FAILED"
40+
exit 1
41+
}
42+
43+
puts "NIHDL_COMPILE_PROJECT=PASSED"
44+
exit 0

targets/common/TCL/CreateNewProjectTemplate.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# githubvisible=true
21

32
set ProjName {PROJ_NAME}
43
create_project -force $ProjName [pwd] -part FPGA_PART

targets/common/TCL/GetWindowNetlist.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# githubvisible=true
21

32
set_property top TheLvWindowFlatWrapper [current_fileset]
43
set_property -name {STEPS.SYNTH_DESIGN.ARGS.MORE OPTIONS} -value {-mode out_of_context} -objects [get_runs synth_1]

targets/common/TCL/PostGenerateBitfile.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#githubvisible=true
1+
22

33
# Clear PYTHONPATH and PYTHONHOME
44
set env(PYTHONPATH) ""

targets/common/TCL/PreGenerateBitfile.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#githubvisible=true
1+
22
set_property BITSTREAM.GENERAL.COMPRESS "True" [current_design]
33
set_property BITSTREAM.GENERAL.CRC "Enable" [current_design]
44
set_property BITSTREAM.CONFIG.CCLKPIN "Pullup" [current_design]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#githubvisible=true
1+
22
set_param synth.elaboration.rodinMoreOptions "rt::set_parameter max_loop_limit 1000000;"

targets/common/TCL/SynthProject2.tcl

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)