mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-07 03:20:39 +02:00
Use library imports globally
This commit is contained in:
+4
-5
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user