mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2025-08-23 16:53:05 +00:00
Add file-exist check for input file
This commit is contained in:
@@ -41,6 +41,9 @@ if __name__ == "__main__":
|
|||||||
root = rdlc.elaborate()
|
root = rdlc.elaborate()
|
||||||
except RDLCompileError:
|
except RDLCompileError:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
except FileNotFoundError:
|
||||||
|
logger.fatal("Could not find '{}'".format(input_file))
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
addrmap = AddrMap(root.top, config)
|
addrmap = AddrMap(root.top, config)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user