mirror of https://github.com/VLSIDA/OpenRAM.git
Merge branch 'supply_routing' into dev
This commit is contained in:
commit
37c10a2198
|
|
@ -10,6 +10,7 @@ omit =
|
|||
debug.py
|
||||
[paths]
|
||||
source =
|
||||
../..
|
||||
/home/gitlab-runner/builds/2fd64746/0
|
||||
/home/gitlab-runner/builds/2fd64746/1
|
||||
/home/gitlab-runner/builds/2fd64746/2
|
||||
|
|
@ -25,4 +26,4 @@ exclude_lines =
|
|||
raise NotImplementedError
|
||||
if 0:
|
||||
if __name__ == "__main__":
|
||||
if not OPTS.is_unit_test
|
||||
if not OPTS.is_unit_test
|
||||
|
|
|
|||
|
|
@ -395,11 +395,15 @@ def import_tech():
|
|||
|
||||
def print_time(name, now_time, last_time=None, indentation=2):
|
||||
""" Print a statement about the time delta. """
|
||||
if last_time:
|
||||
time = str(round((now_time-last_time).total_seconds(),1)) + " seconds"
|
||||
else:
|
||||
time = now_time.strftime('%m/%d/%Y %H:%M:%S')
|
||||
print("{0} {1}: {2}".format("*"*indentation,name,time))
|
||||
global OPTS
|
||||
|
||||
# Don't print during testing
|
||||
if not OPTS.is_unit_test or OPTS.debug_level>0:
|
||||
if last_time:
|
||||
time = str(round((now_time-last_time).total_seconds(),1)) + " seconds"
|
||||
else:
|
||||
time = now_time.strftime('%m/%d/%Y %H:%M:%S')
|
||||
print("{0} {1}: {2}".format("*"*indentation,name,time))
|
||||
|
||||
|
||||
def report_status():
|
||||
|
|
|
|||
|
|
@ -26,15 +26,15 @@ if len(args) != 1:
|
|||
# These depend on arguments, so don't load them until now.
|
||||
import debug
|
||||
|
||||
# Keep track of running stats
|
||||
start_time = datetime.datetime.now()
|
||||
print_time("Start",start_time)
|
||||
|
||||
init_openram(config_file=args[0], is_unit_test=False)
|
||||
|
||||
# Only print banner here so it's not in unit tests
|
||||
print_banner()
|
||||
|
||||
# Keep track of running stats
|
||||
start_time = datetime.datetime.now()
|
||||
print_time("Start",start_time)
|
||||
|
||||
# Output info about this run
|
||||
report_status()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue