Skip to content

Commit

Permalink
Temp7
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Nov 7, 2023
1 parent 254ce91 commit 6e82cbc
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 319 deletions.
83 changes: 83 additions & 0 deletions flows/asap7.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Copyright 2021-2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

load("//gds_write:build_defs.bzl", "gds_write")
load("//place_and_route:build_defs.bzl", "place_and_route")
load("//static_timing:build_defs.bzl", "run_opensta")
load("//synthesis:build_defs.bzl", "synthesize_rtl")
load("//verilog:providers.bzl", "verilog_library")
load("@bazel_skylib//rules:build_test.bzl", "build_test")

def asap7_targets(name, sc, rev, vt, has_gds=True):
a = {
"name": name,
"sc": sc,
"rev": rev,
"vt": vt,
}

synthesize_rtl(
name = "{name}-asap7-sc{sc}_rev{rev}_{vt}-synth".format(**a),
standard_cells = "@org_theopenroadproject_asap7sc{sc}_{rev}//:asap7-sc{sc}_rev{rev}_{vt}".format(**a),
target_clock_period_pico_seconds = 10000,
top_module = "counter",
deps = [
":{name}".format(**a),
],
)
build_test(
name = "build-{name}-asap7-sc{sc}_rev{rev}_{vt}-synth".format(**a),
targets = [
":{name}-asap7-sc{sc}_rev{rev}_{vt}-synth".format(**a),
],
)

run_opensta(
name = "{name}-asap7-sc{sc}_rev{rev}_{vt}-synth_sta".format(**a),
synth_target = ":{name}-asap7-sc{sc}_rev{rev}_{vt}-synth".format(**a),
)
build_test(
name = "build-{name}-asap7-sc{sc}_rev{rev}_{vt}-synth_sta".format(**a),
targets = [
":{name}-asap7-sc{sc}_rev{rev}_{vt}-synth".format(**a),
],
)

place_and_route(
name = "{name}-asap7-sc{sc}_rev{rev}_{vt}-place_and_route".format(**a),
core_padding_microns = 1,
die_height_microns = 20,
die_width_microns = 20,
placement_density = "0.65",
sdc = "constraint.sdc",
synthesized_rtl = ":{name}-asap7-sc{sc}_rev{rev}_{vt}-synth".format(**a),
)
build_test(
name = "build-{name}-asap7-sc{sc}_rev{rev}_{vt}-place_and_route".format(**a),
targets = [
":{name}-asap7-sc{sc}_rev{rev}_{vt}-place_and_route".format(**a),
],
)

if has_gds:
gds_write(
name = "{name}-asap7-sc{sc}_rev{rev}_{vt}-gds".format(**a),
implemented_rtl = ":{name}-asap7-sc{sc}_rev{rev}_{vt}-place_and_route".format(**a),
)
build_test(
name = "build-{name}-asap7-sc{sc}_rev{rev}_{vt}-gds".format(**a),
targets = [
":{name}-asap7-sc{sc}_rev{rev}_{vt}-gds".format(**a),
],
)
Loading

0 comments on commit 6e82cbc

Please sign in to comment.