private List <Command> GetProhibitAndLocationConstraints(string instancePrefix) { List <Command> cmds = new List <Command>(); // print prohibt statements PrintProhibitStatementsForSelection prohibitCmd = new PrintProhibitStatementsForSelection(); prohibitCmd.Append = true; prohibitCmd.Mute = true; prohibitCmd.ExcludeUsedSlices = true; prohibitCmd.FileName = UCFFile; prohibitCmd.Comment = "create prohibit statements that prevent the placer from using logic within the (currently selected) partial area " + IslandName; cmds.Add(prohibitCmd); // print placement constraints for macros PrintLocationConstraints placeCmd = new PrintLocationConstraints(); placeCmd.Append = true; placeCmd.Mute = true; placeCmd.FileName = UCFFile; placeCmd.HierarchyPrefix = instancePrefix; placeCmd.InstantiationFilter = IslandName; placeCmd.Comment = "create placement constraints for the connection primitives and append them to the UCF file used above "; cmds.Add(placeCmd); return(cmds); }
private void m_btnPrintUCF_Click(object sender, EventArgs e) { PrintLocationConstraints printCmd = new PrintLocationConstraints(); printCmd.InstantiationFilter = m_libElInstSelector.InstanceFilter; printCmd.HierarchyPrefix = m_txtHierarchyPrefix.Text; printCmd.FileName = m_fileSelUCF.FileName; printCmd.Append = m_fileSelUCF.Append; printCmd.CreateBackupFile = true; Commands.CommandExecuter.Instance.Execute(printCmd); }