Commit d47c6666 authored by Jens Korinth's avatar Jens Korinth

Closes #110 - Implement support for PEs with .xci IPs

parent a90dcd37
......@@ -29,10 +29,19 @@ set_msg_config -severity INFO -suppress
set_msg_config -severity WARNING -suppress
set_param general.maxThreads 1
create_project -in_memory -part @@PART@@
# add files
add_files @@SRC_FILES@@
# Read ngc/edif files, e.g. for primitives
foreach ngc_file [list @@NGC_FILES@@] { read_edif $ngc_file }
# Read xci files, e.g. for primitives
set xci_files [list @@XCI_FILES@@]
if {[llength $xci_files] > 0} {
import_ip $xci_files
generate_target all [get_ips]
synth_ip [get_ips]
}
# add_files -fileset constrs_1 @@XDC_FILES@@
foreach script [list @@TCL_FILES@@] { source $script }
......@@ -92,7 +101,7 @@ report_power -quiet -file @@REPORT_POWER@@
# write netlist file
set netlist "@@NETLIST@@"
write_edif $netlist
write_edif -force $netlist
# done!
exit
......@@ -89,6 +89,9 @@ object EvaluateIP {
lazy val ngc_files = files collect {
case f if """\.ngc$""".r.findFirstIn(f.toString).nonEmpty && !includes.contains(f.getFileName) => f
}
lazy val xci_files = files.collect {
case f if f.toString.endsWith(".xci") && !includes.contains(f.getFileName) => f
}
lazy val hdl_files = v_files ++ vhd_files
lazy val logFile = baseDir.resolve("evaluate.log")
lazy val tclFile = baseDir.resolve("evaluate.tcl")
......@@ -167,6 +170,7 @@ object EvaluateIP {
"SRC_FILES" -> (files.hdl_files map (_.toString) mkString " "),
"TCL_FILES" -> (files.tcl_files mkString " "),
"NGC_FILES" -> (files.ngc_files mkString " "),
"XCI_FILES" -> (files.xci_files mkString " "),
"PART" -> targetPart,
"PERIOD" -> targetPeriod.toString,
"REPORT_TIMING" -> files.rpt_timing.toString,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment