private string GetCode(XDLMacroPort port) { // port "$extpin_2" "SLICE_X57Y77" "B2"; string portName = Regex.Replace(port.Port.ToString(), "^(L|M)_", ""); return("port \"" + port.PortName + "\" \"" + port.SliceName + "\" \"" + portName + "\";"); }
/// <summary> /// net "$NET_8" , outpin "sink" D , ; /// </summary> /// <param name="port"></param> /// <returns></returns> private string GetDummyNetCode(XDLMacroPort port) { string direction = port.Slice.PortMapping.IsSliceInPort(port.Port) ? "inpin" : "outpin"; string result = "net" + GetDummyNetName(port) + "\", " + direction + " \"" + port.SliceName + "\" " + port.DummyNetPortName + ",;"; return(result); }
public void Add(XDLMacroPort port) { if (!m_portIndeces.ContainsKey(port.PortName)) { m_portIndeces.Add(port.PortName, 0); } uint index = m_portIndeces[port.PortName]; m_portIndeces[port.PortName]++; port.PortName = port.PortName + "<" + index + ">"; m_macroPorts.Add(port.PortName, port); }
public static string GetDummyNetName(XDLMacroPort port) { return(" \"dummy_GOA_net_" + port.Slice + "_" + port.Port); }