You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verilog uses "," as a separate character. When also using "," in the signal description comments the separation by "," does not work. Error was attempted to fix with the following method to clean the split. It was Removed again because it leads to other possibly more severe issues in the last signal which does not have a comma in Verilog. A Better solution would be to rebuild separate elements and use a different method to separate the elements.
/// This Function Cleans splits that happend from comments containing a separation charracter like ","
/// that is used in code.
/// </summary>
/// <param name="input">A string splited by the separation character of the HDL language (Verilog --> ,)</param>
/// <param name="commentChar">The Syntax for a Comment in the HDL (Verilog --> "//")</param>
/// <returns>the cleand verion of the input data</returns>
public static string[] cleanSplitedElements(string[] input, string commentChar)
{
if (input.Length == 1) return input;
List<string> correctedSplited = new List<string>();
for (int i = 0; i < input.Length - 1; i++)
{
if (input[i].Contains(commentChar) && !input[i].Contains(System.Environment.NewLine))
{
correctedSplited.Add(input[i] +" "+ input[i + 1]);
i++;
}
else
{
correctedSplited.Add(input[i]);
if(i == input.Length - 2) correctedSplited.Add(input[i+1]);
}
}
return correctedSplited.ToArray();
}
The text was updated successfully, but these errors were encountered:
Verilog uses "," as a separate character. When also using "," in the signal description comments the separation by "," does not work. Error was attempted to fix with the following method to clean the split. It was Removed again because it leads to other possibly more severe issues in the last signal which does not have a comma in Verilog. A Better solution would be to rebuild separate elements and use a different method to separate the elements.
The text was updated successfully, but these errors were encountered: