From a96c775a7301645b27486a5e663c75fca460f577 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 7 Jan 2018 16:36:13 +0100 Subject: Add support for "yosys -E" Signed-off-by: Clifford Wolf --- frontends/ast/simplify.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'frontends/ast') diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index f61f7cf7c..c454fb907 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -2638,6 +2638,7 @@ AstNode *AstNode::readmem(bool is_readmemh, std::string mem_filename, AstNode *m std::ifstream f; f.open(mem_filename.c_str()); + yosys_input_files.insert(mem_filename); if (f.fail()) log_error("Can not open file `%s` for %s at %s:%d.\n", mem_filename.c_str(), str.c_str(), filename.c_str(), linenum); -- cgit v1.2.3