ad_ip_alt.tcl: ad_ip_addfile: Add support for header files

Handle files with a .h suffix and add them as VERILOG_INCLUDE to the file
list.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
main
Lars-Peter Clausen 2018-04-26 18:32:55 +02:00 committed by Lars-Peter Clausen
parent b9b619d918
commit 6baf7612f7
1 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,10 @@ proc ad_ip_addfile {pname pfile} {
add_fileset_file $pmodule VERILOG PATH $pfile
return
}
if {$ptype eq ".h"} {
add_fileset_file $pmodule VERILOG_INCLUDE PATH $pfile
return
}
if {$ptype eq ".sdc"} {
add_fileset_file $pmodule SDC PATH $pfile
return