mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-11-14 03:03:35 +00:00
Add file-exist check for input file
This commit is contained in:
parent
4f2ac8868a
commit
a3b6e1caf8
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user