summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-08-11 11:32:37 +0200
committerClifford Wolf <clifford@clifford.at>2015-08-11 11:32:37 +0200
commit45ee2ba3b853ca2dd74931c193f12eb46c0e766f (patch)
treed1a3682bd863084b2157685fd1dc558a420b2fc9 /kernel
parent21851257608a502e4ab7e54d65100c4f2aa6fa33 (diff)
Fixed handling of [a-fxz?] in decimal constants
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, ',');