summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index abdd1ff8..bd7f5c9f 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -3280,6 +3280,10 @@ bool RTLIL::SigSpec::parse(RTLIL::SigSpec &sig, RTLIL::Module *module, std::stri
{
cover("kernel.rtlil.sigspec.parse");
+ AST::current_filename = "input";
+ AST::use_internal_line_num();
+ AST::set_line_num(0);
+
std::vector<std::string> tokens;
sigspec_parse_split(tokens, str, ',');