public static dynamic GetTSObject(PlacingBase dynObject) { if (dynObject is null) { return(null); } return(dynObject.teklaObject); }
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); }); }
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); }
internal void AddPlaceTemplateParameters(string moduleName, PlacingBase placer, FIRRTLNode[] nodeOrder) { PlacementTemplates.AddTemplateParameters(moduleName, placer, nodeOrder); }