From a3b6e1caf8f4108d5370f502122e2e0f831607ce Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 6 Sep 2021 11:58:01 -0700 Subject: [PATCH] Add file-exist check for input file --- srdl2sv/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srdl2sv/main.py b/srdl2sv/main.py index 9fc4bbd..93983d1 100755 --- a/srdl2sv/main.py +++ b/srdl2sv/main.py @@ -41,6 +41,9 @@ if __name__ == "__main__": root = rdlc.elaborate() except RDLCompileError: sys.exit(1) + except FileNotFoundError: + logger.fatal("Could not find '{}'".format(input_file)) + sys.exit(1) addrmap = AddrMap(root.top, config)