Skip to content

Commit 695b587

Browse files
committed
gen_project.tcl
1 parent 001700e commit 695b587

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

piton/tools/src/proto/vivado/gen_project.tcl

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ foreach inc_file $ALL_INCLUDE_FILES {
8383
set file_obj [get_files -of_objects $fileset_obj [list "$inc_file"]]
8484
if {[file extension $inc_file] == ".svh"} {
8585
set_property "file_type" "SystemVerilog Header" $file_obj
86+
} elseif {[info exists ::env(PITON_BLACKPARROT)]} {
87+
set_property "file_type" "SystemVerilog Header" $file_obj
8688
} else {
8789
set_property "file_type" "Verilog Header" $file_obj
8890
}
@@ -100,6 +102,8 @@ foreach impl_file $ALL_RTL_IMPL_FILES {
100102
set file_obj [get_files -of_objects $fileset_obj [list "$impl_file"]]
101103
if {[file extension $impl_file] == ".sv"} {
102104
set_property "file_type" "SystemVerilog" $file_obj
105+
} elseif {[info exists ::env(PITON_BLACKPARROT)]} {
106+
set_property "file_type" "SystemVerilog" $file_obj
103107
} else {
104108
set_property "file_type" "Verilog" $file_obj
105109
}

0 commit comments

Comments
 (0)