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_btnGenerate_Click(object sender, EventArgs e) { PrintProhibitStatementsForSelection cmd = new PrintProhibitStatementsForSelection(); cmd.Append = m_fileSelUCF.Append; cmd.ExcludeUsedSlices = m_chkExclude.Checked; cmd.FileName = m_fileSelUCF.FileName; Commands.CommandExecuter.Instance.Execute(cmd); Close(); }