mirror of https://github.com/VLSIDA/OpenRAM.git
Reorganize library files to include everything
This commit is contained in:
parent
3ed1a92ce2
commit
557b2e7459
|
|
@ -1,3 +1,6 @@
|
||||||
|
include Makefile
|
||||||
|
include openram.mk
|
||||||
|
include setpaths.sh
|
||||||
include requirements.txt
|
include requirements.txt
|
||||||
include docker/*
|
include docker/*
|
||||||
recursive-include compiler *
|
recursive-include compiler *
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -218,6 +218,8 @@ wipe: uninstall
|
||||||
|
|
||||||
# Build the openram library
|
# Build the openram library
|
||||||
build-library:
|
build-library:
|
||||||
|
@rm -rf dist
|
||||||
|
@rm -rf openram.egg-info
|
||||||
@python3 -m build
|
@python3 -m build
|
||||||
.PHONY: build-library
|
.PHONY: build-library
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ try:
|
||||||
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
||||||
except:
|
except:
|
||||||
import openram
|
import openram
|
||||||
OPENRAM_HOME = os.path.dirname(openram.__file__)
|
OPENRAM_HOME = os.path.dirname(openram.__file__) + "/compiler"
|
||||||
|
|
||||||
if not os.path.isdir(OPENRAM_HOME):
|
if not os.path.isdir(OPENRAM_HOME):
|
||||||
assert False
|
assert False
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
OPENRAM_HOME := $(abspath $(TOP_DIR)/compiler)
|
OPENRAM_HOME := $(abspath $(TOP_DIR)/compiler)
|
||||||
OPENRAM_TECH := $(abspath $(TOP_DIR)/technology)
|
OPENRAM_TECH := $(abspath $(TOP_DIR)/technology)
|
||||||
OPENRAM_COMPILER := $(abspath $(TOP_DIR)/openram.py)
|
OPENRAM_COMPILER := $(abspath $(TOP_DIR)/sram_compiler.py)
|
||||||
|
|
||||||
PDK_ROOT ?= $(TOP_DIR)
|
PDK_ROOT ?= $(TOP_DIR)
|
||||||
|
|
||||||
|
|
|
||||||
10
setup.py
10
setup.py
|
|
@ -9,9 +9,9 @@ from setuptools import setup, find_namespace_packages
|
||||||
|
|
||||||
|
|
||||||
# Include these folder from the root of repo as submodules
|
# Include these folder from the root of repo as submodules
|
||||||
include = ["docker", "technology"]
|
include = ["compiler", "docker", "technology", "macros"]
|
||||||
# Exclude files/folders with these words
|
# Exclude files/folders with these words
|
||||||
exclude = ["docs", "images", "macros"]
|
exclude = ["docs", "images"]
|
||||||
|
|
||||||
|
|
||||||
# Find all modules inside the 'compiler' folder
|
# Find all modules inside the 'compiler' folder
|
||||||
|
|
@ -24,7 +24,7 @@ for dir in find_namespace_packages():
|
||||||
# Replace 'compiler' with 'openram' for package names
|
# Replace 'compiler' with 'openram' for package names
|
||||||
packages = []
|
packages = []
|
||||||
for dir in dirs:
|
for dir in dirs:
|
||||||
packages += [dir.replace("compiler", "openram")]
|
packages.append(dir)
|
||||||
|
|
||||||
# Make the included folders submodules of openram package
|
# Make the included folders submodules of openram package
|
||||||
for i in range(len(packages)):
|
for i in range(len(packages)):
|
||||||
|
|
@ -35,6 +35,10 @@ for i in range(len(packages)):
|
||||||
for i in range(len(dirs)):
|
for i in range(len(dirs)):
|
||||||
dirs[i] = dirs[i].replace(".", "/")
|
dirs[i] = dirs[i].replace(".", "/")
|
||||||
|
|
||||||
|
# Insert the root as the openram module
|
||||||
|
packages.insert(0, "openram")
|
||||||
|
dirs.insert(0, "")
|
||||||
|
|
||||||
# Zip package names and their paths
|
# Zip package names and their paths
|
||||||
package_dir = {k: v for k, v in zip(packages, dirs)}
|
package_dir = {k: v for k, v in zip(packages, dirs)}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue