Commit 9aa6edab authored by Sebastian Vollbrecht's avatar Sebastian Vollbrecht

Adapted HatScheT export to upstream changes.

parent 89e2b3ee
......@@ -105,6 +105,22 @@ public class HatScheTExportFormulation extends Formulation<Object, String, Resou
resource.setAttribute("latency", valueOf(k.delay));
resource.setAttribute("physicalDelay", valueOf(0));
resource.setAttribute("blockingTime", valueOf(Math.min(1, k.delay)));
Element cost = document.createElement("Cost");
cost.setAttribute("demand", valueOf(0));
cost.setAttribute("name", "LUT");
resource.appendChild(cost);
cost = document.createElement("Cost");
cost.setAttribute("demand", valueOf(0));
cost.setAttribute("name", "DSP");
resource.appendChild(cost);
cost = document.createElement("Cost");
cost.setAttribute("demand", valueOf(0));
cost.setAttribute("name", "MEM");
resource.appendChild(cost);
}
Transformer transformer = TransformerFactory.newInstance().newTransformer();
......
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