From 1c6dea3a0d596c490e09d55b20057e669ec12a23 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 6 Feb 2014 14:26:39 +0100 Subject: [PATCH] Added support for #-comments in same line as command --- kernel/register.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/register.cc b/kernel/register.cc index 949d7c628..10ba4f274 100644 --- a/kernel/register.cc +++ b/kernel/register.cc @@ -148,6 +148,8 @@ void Pass::call(RTLIL::Design *design, std::string command) for (char *p = strtok_r(s, " \t\r\n", &saveptr); p; p = strtok_r(NULL, " \t\r\n", &saveptr)) { std::string str = p; int strsz = str.size(); + if (str == "#") + break; if (strsz > 0 && str[strsz-1] == ';') { int num_semikolon = 0; while (strsz > 0 && str[strsz-1] == ';') -- 2.30.2