Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjusted ip check to take maturity into consideration #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions ipm/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,9 +867,14 @@ def check_hierarchy(self):
bool: True if hierarchy is correct, False if it is not
"""
logger = Logger()
common_dirs = ["verify/beh_model", "fw", "hdl/rtl/bus_wrapper"]
if self.maturity.lower() == "unqualified" or self.maturity.lower() == "defined":
common_dirs = []
elif self.maturity.lower() == "implemented":
common_dirs = ["hdl/rtl/bus_wrapper"]
else:
common_dirs = ["fw", "hdl/rtl/bus_wrapper"]
# check the folder hierarchy
if self.type == "hard":
if self.type == "hard" and (self.maturity.lower() != "unqualified" or self.maturity.lower() != "defined"):
ipm_dirs = [
"hdl/gl",
"timing/lib",
Expand All @@ -878,10 +883,10 @@ def check_hierarchy(self):
"layout/gds",
"layout/lef",
]
elif self.type == "soft" and self.category == "digital":
elif self.type == "soft" and self.category == "digital" and (self.maturity.lower() != "unqualified" or self.maturity.lower() != "defined" or self.maturity.lower() != "implemented"):
ipm_dirs = ["verify/utb"]
if self.category == "analog":
ipm_dirs = ["spice"]
if self.category == "analog" and (self.maturity.lower() != "unqualified" or self.maturity.lower() != "defined"):
ipm_dirs = ["spice", "verify/beh_model"]
ipm_dirs = ipm_dirs + common_dirs
ipm_files = [f"{self.ip_name}.yaml", "README.md", "doc/datasheet.pdf"]
flag = True
Expand Down Expand Up @@ -1132,9 +1137,17 @@ def list_verified_ips(category=None, technology=None):
text = link.text
if "View Details" not in text and "\n\n" not in text:
platform_ips.append(text)
# print(platform_ips)

for ip_name, ip_data in verified_ips.items():
# print(ip_name.upper())
if ip_name.upper() == "EF_SRAM_1024X32":
if "EF_SRAM_1024X32" in platform_ips:
print("good")
else:
print("bad")
if ip_name.upper() in platform_ips:
# print(ip_name.upper())
if category and not technology:
if ip_data["category"] == category:
ip_list.append({ip_name: ip_data})
Expand Down