Exemplo n.º 1
0
 public static XilinxToolchain GetCurrentXilinxToolchain()
 {
     if (CurrentToolchain == null)
     {
         XilinxToolchain toolchain = new XilinxToolchain(null, GetCurrentXilinxVersion());
         CurrentToolchain = toolchain;
     }
     return CurrentToolchain;
 }
Exemplo n.º 2
0
        private static XilinxToolchain ScanXilinxInstall(ToolchainManager manager, string root)
        {
            if (Directory.Exists(root))
            {
                XilinxVersion version = XilinxVersion.GetVersionFromFileset(root);
                if (version == null)
                {
                    // May use a ISE_DS sub directory
                    version = XilinxVersion.GetVersionFromFileset(PathHelper.Combine(root, "ISE_DS"));
                }

                if (version != null)
                {
                    Logger.Instance.WriteDebug("Found Xilinx Toolchain @ '{0}', version {1}", root, version);

                    XilinxToolchain toolchain = new XilinxToolchain(manager, version);
                    manager.AddToolchain(toolchain);
                    return toolchain;
                }
            }
            Logger.Instance.WriteDebug("Invalid toolchain @ '{0}'", root);
            return null;
        }
Exemplo n.º 3
0
 public XilinxProcess(XilinxToolchain toolchain, string executable, string workingDirectory, List<string> arguments)
     : base(executable, workingDirectory, arguments)
 {
     Toolchain = toolchain;
 }
Exemplo n.º 4
0
 public XilinxProcess(XilinxToolchain toolchain, string executable, List<string> arguments)
     : this(toolchain, executable, Environment.CurrentDirectory, arguments)
 {
 }
Exemplo n.º 5
0
 public XilinxProcess(XilinxToolchain toolchain, string executable, string workingDirectory)
     : this(toolchain, executable, workingDirectory, null)
 {
 }
Exemplo n.º 6
0
 public XilinxProcess(XilinxToolchain toolchain, string executable)
     : this(toolchain, executable, Environment.CurrentDirectory)
 {
 }