コード例 #1
0
        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 + "\";");
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public static string GetDummyNetName(XDLMacroPort port)
 {
     return(" \"dummy_GOA_net_" + port.Slice + "_" + port.Port);
 }