Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#2873 from The-OpenROAD-Projec…
Browse files Browse the repository at this point in the history
…t-staging/aes-block-pdn

asap7/aes-block: fix the setup to allow pdn to connect

Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
  • Loading branch information
maliberty authored and Vitor Bandeira committed Feb 25, 2025
2 parents a820306 + 397514f commit 140b34d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 43 deletions.
4 changes: 4 additions & 0 deletions flow/designs/asap7/aes-block/block.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ export CORE_ASPECT_RATIO = 1
export CORE_MARGIN = 2
export PLACE_DENSITY = 0.70

export MAX_ROUTING_LAYER ?= M5

export PLACE_PINS_ARGS = -annealing

export PDN_TCL = $(PLATFORM_DIR)/openRoad/pdn/BLOCK_grid_strategy.tcl
44 changes: 1 addition & 43 deletions flow/util/genRuleFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,12 @@

from math import ceil, isinf
from os import chdir, getcwd
from os.path import isfile, abspath
from os.path import isfile
from re import sub
import argparse
import json
import operator
import sys
import requests


def get_golden(platform, design, api_base_url):
try:
response = requests.get(
api_base_url + f"/golden?platform={platform}&design={design}&variant=base"
)

# Check if the request was successful (status code 200)
if response.status_code == 200 and "error" not in response.json():
# Parse the JSON response
data = response.json()

return data, None
else:
print("API request failed")
return None, "API request failed"
except Exception as e:
print(f"An error occurred: {str(e)}")
return None, f"An error occurred: {str(e)}"


def get_metrics(commitSHA, platform, design, api_base_url):
try:
response = requests.get(
api_base_url
+ f"/commit?commitSHA={commitSHA}&platform={platform}&design={design}&variant=base"
)

# Check if the request was successful (status code 200)
if response.status_code == 200 and "error" not in response.json():
# Parse the JSON response
data = response.json()

return data, None
else:
print("API request failed")
return None, "API request failed"
except Exception as e:
print(f"An error occurred: {str(e)}")
return None, f"An error occurred: {str(e)}"


def update_rules(designDir, variant, golden_metrics, overwrite, metrics_to_consider):
Expand Down

0 comments on commit 140b34d

Please sign in to comment.