Use library imports globally

This commit is contained in:
Eren Dogan
2022-11-27 13:01:20 -08:00
parent 037468d88d
commit fccdc3c45b
455 changed files with 3254 additions and 3083 deletions
+4 -5
View File
@@ -16,8 +16,8 @@ a LEF (.lef) file for preliminary P&R (real one should be from layout)
a Liberty (.lib) file for timing analysis/optimization
"""
import os
import sys
import os
import datetime
try:
import openram
@@ -43,7 +43,7 @@ if len(args) != 1:
# These depend on arguments, so don't load them until now.
import debug
from openram import debug
# Parse config file and set up all the options
openram.init_openram(config_file=args[0])
@@ -61,7 +61,7 @@ openram.print_time("Start", start_time)
# Output info about this run
openram.report_status()
from modules import sram_config
from openram.modules import sram_config
# Configure the SRAM organization
@@ -87,7 +87,7 @@ for path in output_files:
debug.print_raw(path)
from modules import sram
from openram.modules import sram
s = sram(name=OPTS.output_name,
sram_config=c)
@@ -98,4 +98,3 @@ s.save()
openram.end_openram()
openram.print_time("End", datetime.datetime.now(), start_time)