Exemplo n.º 1
0
 public static dynamic GetTSObject(PlacingBase dynObject)
 {
     if (dynObject is null)
     {
         return(null);
     }
     return(dynObject.teklaObject);
 }
Exemplo n.º 2
0
        public void AddTemplateParameters(string moduleName, PlacingBase placer, FIRRTLNode[] nodeOrder)
        {
            lock (TemplateGenerating)
            {
                //If template is already generating or generated then
                //no need to generate again
                if (!TemplateGenerating.Add(moduleName))
                {
                    return;
                }
            }

            WorkLimiter.AddWork(() =>
            {
                var placeInfo = placer.PositionModuleComponents();
                AddTemplate(moduleName, placeInfo, nodeOrder);
            });
        }
Exemplo n.º 3
0
        public ModuleLayout(DebugController debugCtrl, Module mod, ModuleUI modUI)
        {
            this.DebugCtrl  = debugCtrl;
            this.Mod        = mod;
            this.ModUI      = modUI;
            this.WireRouter = new SimpleRouter(Mod);
            if (OperatingSystem.IsWindows())
            {
                this.NodePlacer = new GraphVizPlacer(Mod);
            }
            else
            {
                this.NodePlacer = new SimplePlacer(Mod);
            }
            this.ModuleNodes           = Mod.GetAllNodes();
            this.ModuleNodesWithModule = Mod.GetAllNodesIncludeModule();
            this.ModuleIO = Mod.GetAllIOOrdered();

            DebugCtrl.AddModCtrl(Mod.Name, this, ModuleNodes, ModuleNodesWithModule, ModuleIO);
        }
Exemplo n.º 4
0
 internal void AddPlaceTemplateParameters(string moduleName, PlacingBase placer, FIRRTLNode[] nodeOrder)
 {
     PlacementTemplates.AddTemplateParameters(moduleName, placer, nodeOrder);
 }