use of com.cburch.logisim.circuit.Circuit in project logisim-evolution by reds-heig.
the class FPGACommanderGui method performDRC.
private boolean performDRC() {
clearAllMessages();
String CircuitName = circuitsList.getSelectedItem().toString();
Circuit root = MyProject.getLogisimFile().getCircuit(CircuitName);
ArrayList<String> SheetNames = new ArrayList<String>();
int DRCResult = Netlist.DRC_PASSED;
if (root == null) {
DRCResult |= Netlist.DRC_ERROR;
} else {
root.getNetList().clear();
DRCResult = root.getNetList().DesignRuleCheckResult(MyReporter, HDLType.getText(), true, SheetNames);
}
return (DRCResult == Netlist.DRC_PASSED);
}
use of com.cburch.logisim.circuit.Circuit in project logisim-evolution by reds-heig.
the class FPGACommanderGui method Annotate.
private void Annotate(boolean ClearExistingLabels) {
clearAllMessages();
String CircuitName = circuitsList.getSelectedItem().toString();
Circuit root = MyProject.getLogisimFile().getCircuit(CircuitName);
if (root != null) {
if (ClearExistingLabels) {
root.ClearAnnotationLevel();
}
root.Annotate(ClearExistingLabels, MyReporter);
MyReporter.AddInfo("Annotation done");
/* TODO: Dirty hack, see Circuit.java function Annotate for details */
MyProject.repaintCanvas();
MyProject.getLogisimFile().setDirty(true);
}
}
Aggregations