import dol.visitor.dot.PNDotVisitor;
import dol.visitor.hds.HdsVisitor;
import dol.visitor.hdsd.HdsdVisitor;
+import dol.visitor.Epiphany.EpiphanyVisitor;
import dol.visitor.protothread.ProtothreadVisitor;
import dol.visitor.rtems.RtemsVisitor;
import dol.visitor.systemC.PNSystemCVisitor;
System.out.println();
}
+ if (_ui.getEpiphanyFlag() && (_pn != null)) {
+ System.out.println("Generating Epiphany package:");
+ _pn.accept(new EpiphanyVisitor(
+ _ui.getEpiphanyCodeDirectoryName()));
+ System.out.println(" -- Generation [Finished]");
+ System.out.println();
+ }
+
if (_ui.getProtothreadFlag() && (_pn != null)) {
System.out.println("Generating protothread package:");
_pn.accept(new ProtothreadVisitor(
} else if(arg.equals("--PaF") || arg.equals("-PF") ) {
_ui.setPipeAndFilterCodeDirectoryName(args[++i]);
_ui.setPipeAndFilterFlag();
+ } else if(arg.equals("--epiphany") || arg.equals("-E") ) {
+ _ui.setEpiphanyCodeDirectoryName(args[++i]);
+ _ui.setEpiphanyFlag();
} else if(arg.equals("--protothread") || arg.equals("-PT") ) {
_ui.setProtothreadCodeDirectoryName(args[++i]);
_ui.setProtothreadFlag();
{ "--profiling ", "-T", "<trace FileName>" },
{ "--vsplog ", "-L", "<log FileName>" },
{ "--cbe ", "-CBE", "<DirectoryName>" },
- { "--yapi ", "-Y", "<DirectoryName>" }
+ { "--yapi ", "-Y", "<DirectoryName>" },
+ { "--epiphany ", "-E", "<DirectoryName>" }
};
/**
// the RTEMS board support package for which code is generated
private String _rtemsBSP = "pc386";
+ // the Epiphany directory name
+ private String _epiphanyCodeDirectoryName = "nonameEpiphanyPackage";
+
// the protothread directory name
private String _protothreadCodeDirectoryName = "nonameHdsPackage";
// the SystemC flag
private boolean _systemC = false;
+ // the Epiphany flag
+ private boolean _epiphanyFlag = false;
+
// the PipeAndFilter flag
private boolean _pipeAndFilter = false;
_codeDirectoryName = codeDirectoryName;
}
+ /**
+ * Get the name of the Epiphany directory.
+ *
+ * @return The directory name of the Epiphany directory
+ */
+ public final String getEpiphanyCodeDirectoryName() {
+ return _epiphanyCodeDirectoryName;
+ }
+
+ /**
+ * Set the name of the Epiphany directory.
+ *
+ * @param codeDirectoryName Directory to generate Epiphany code in
+ */
+ public final void setEpiphanyCodeDirectoryName(String codeDirectoryName) {
+ _epiphanyCodeDirectoryName = codeDirectoryName;
+ }
+
/**
* Get the name of the PipeAndFilter directory.
*
_systemC = true;
}
+ /**
+ * Get the status of the Epiphany flag.
+ *
+ * @return Epiphany flag value
+ */
+ public final boolean getEpiphanyFlag() {
+ return _epiphanyFlag;
+ }
+
+ /*
+ * Set the Epiphany flag.
+ */
+ public final void setEpiphanyFlag() {
+ _epiphanyFlag = true;
+ }
+
/**
* Get the status of the PipeAndFilter flag.
*
--- /dev/null
+package dol.visitor.Epiphany;
+
+import dol.visitor.PNVisitor;
+
+public class EpiphanyVisitor extends PNVisitor {
+ /* Constructor */
+ public EpiphanyVisitor(String packageName) {
+ System.out.println("EPIPHANY VISITOR CONSTRUCTOR");
+ }
+}
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+<html>
+<head>
+</head>
+<body bgcolor="white">
+
+Code generator for Epiphany platform.
+
+<h2>Package Specification</h2>
+
+<!-- use ordinary html here -->
+
+<h2>Related Documentation</h2>
+
+<!-- use ordinary html here -->
+
+<!-- Put @see and @since tags down here. -->
+
+</body>
+</html>