diff --git a/flow/designs/asap7/aes/BUILD.bazel b/flow/designs/asap7/aes/BUILD.bazel deleted file mode 100644 index 2ff325bb42..0000000000 --- a/flow/designs/asap7/aes/BUILD.bazel +++ /dev/null @@ -1,47 +0,0 @@ -load("@bazel-orfs//:openroad.bzl", "orfs_flow", "orfs_synth") - -BLACKBOXES = [ - "aes_sbox", - "aes_key_expand_128", - "aes_cipher_top", -] - -[orfs_synth( - name = "{name}_netlist_synth".format(name = name), - arguments = { - "SDC_FILE": "$(location :constraint.sdc)", - "SYNTH_BLACKBOXES": " ".join([b for b in BLACKBOXES if b != name]), - }, - data = [":constraint.sdc"], - module_top = name, - variant = "netlist", - verilog_files = ["//flow/designs/src/aes:verilog"], -) for name in BLACKBOXES] - -[filegroup( - name = "{name}_netlist".format(name = name), - srcs = ["{name}_netlist_synth".format(name = name)], - output_group = "1_synth.v", -) for name in BLACKBOXES] - -filegroup( - name = "netlists", - srcs = [":{}_netlist".format(name) for name in BLACKBOXES], -) - -orfs_flow( - name = "aes_cipher_top", - arguments = { - "ABC_AREA": "1", - "CORE_UTILIZATION": "40", - "CORE_ASPECT_RATIO": "1", - "CORE_MARGIN": "2", - "PLACE_DENSITY": "0.65", - "TNS_END_PERCENT": "100", - }, - sources = { - "SDC_FILE": [":constraint.sdc"], - "SYNTH_NETLIST_FILES": [":netlists"], - }, - top = "aes_cipher_top", -) diff --git a/flow/designs/asap7/ethmac_lvt/BUILD.bazel b/flow/designs/asap7/ethmac_lvt/BUILD.bazel deleted file mode 100644 index 6bc3354348..0000000000 --- a/flow/designs/asap7/ethmac_lvt/BUILD.bazel +++ /dev/null @@ -1,24 +0,0 @@ -load("@bazel-orfs//:openroad.bzl", "orfs_flow") - -orfs_flow( - name = "ethmac_lvt", - arguments = { - # Faster builds - "SKIP_INCREMENTAL_REPAIR": "1", - "GPL_TIMING_DRIVEN": "0", - # Various - "SDC_FILE": "$(location :constraint.sdc)", - "ABC_AREA": "1", - "CORE_UTILIZATION": "40", - "CORE_ASPECT_RATIO": "1", - "CORE_MARGIN": "2", - "PLACE_DENSITY": "0.60", - "ASAP7_USE_VT": "LVT", - "RECOVER_POWER": "1", - }, - sources = { - "SDC_FILE": [":constraint.sdc"], - }, - top = "ethmac", - verilog_files = ["//flow/designs/src/ethmac_lvt:verilog"], -) diff --git a/flow/designs/asap7/swerv_wrapper/BUILD.bazel b/flow/designs/asap7/swerv_wrapper/BUILD.bazel deleted file mode 100644 index e97eee723b..0000000000 --- a/flow/designs/asap7/swerv_wrapper/BUILD.bazel +++ /dev/null @@ -1,118 +0,0 @@ -load("@bazel-orfs//:openroad.bzl", "orfs_flow", "orfs_macro", "orfs_synth") - -FAKERAMS = [ - "fakeram7_64x21", - "fakeram7_256x34", - "fakeram7_2048x39", -] - -# BLACKBOXES are those listed in SYNTH_HIERARCHICAL=1 -# -# 33.1. IC_DATA_ICACHE_TAG_HIGH12_ICACHE_TAG_LOW6_ICACHE_IC_DEPTH8' to `/input.blif'.. - -BLACKBOXES = [ - "IC_TAG_ICACHE_TAG_HIGH12_ICACHE_TAG_LOW6_ICACHE_TAG_DEPTH64", - "dbg", - "dec_decode_ctl", - "dec_gpr_ctl_GPR_BANKS1_GPR_BANKS_LOG21", - "dec_ib_ctl", - "dec_tlu_ctl", - "dec_trigger", - "dma_ctrl", - "exu_alu_ctl", - "ifu_aln_ctl", - "ifu_bp_ctl", - "ifu_ifc_ctl", - "ifu_mem_ctl", - "lsu_bus_intf", - "lsu_dccm_ctl", - "lsu_ecc", - "lsu_lsc_ctl", - "lsu_stbuf", - "lsu_trigger", - "pic_ctrl", - "ram_256x34", - # When run with SYNTH_HIERARCHICAL=1, which should not be used here, - # the error below is produced. - # - # ERROR: Missing cost information on instanced blackbox lsu_dccm_mem - "lsu_dccm_mem", - "exu_div_ctl", - "lsu_bus_buffer", - "ram_2048x39", - "exu", - "swerv_wrapper", -] - -[orfs_synth( - name = "{name}_netlist_synth".format(name = name), - arguments = { - "SDC_FILE": "$(location :constraint.sdc)", - "SYNTH_BLACKBOXES": " ".join([b for b in BLACKBOXES if b != name]), - "SYNTH_HIERARCHICAL": "0", - }, - data = [":constraint.sdc"], - module_top = name, - variant = "netlist", - verilog_files = [ - "macros.v", - "//flow/designs/src/swerv:verilog", - ], - deps = FAKERAMS, -) for name in BLACKBOXES] - -[filegroup( - name = "{name}_netlist".format(name = name), - srcs = ["{name}_netlist_synth".format(name = name)], - output_group = "1_synth.v", -) for name in BLACKBOXES] - -# ca. 540 seconds for sequential synthesis, vs 90 seconds for netlist synthesis. -filegroup( - name = "netlists", - srcs = [":{}_netlist".format(name) for name in BLACKBOXES], -) - -# Canonicalize the netlists to avoid rebuilds unecessarily. -# -# This is more a demonstration than a practical solution. -# -# Other things could be done here, like get a netlist from git lfs, -# process the netlist in some other way, with Naja, etc. -genrule( - name = "netlists_canonicalized", - srcs = [":netlists"], - outs = ["netlists_canonicalized.v"], - cmd = """ - cat $(locations :netlists) | grep -v -E '\\(\\* src = "|Generated by Yosys' > $@ - """, -) - -[orfs_macro( - name = top, - lef = "lef/{}.lef".format(top), - lib = "lib/{}.lib".format(top), - module_top = top, -) for top in FAKERAMS] - -orfs_flow( - name = "swerv_wrapper", - arguments = { - "LIB_MODEL": "CCS", - "SYNTH_HIERARCHICAL": "1", - "DIE_AREA": "0 0 550 600", - "CORE_AREA": "5 5 545 595", - "PLACE_PINS_ARGS": "-exclude left:* -exclude right:*", - "PLACE_DENSITY_LB_ADDON": "0.20", - "TNS_END_PERCENT": "100", - "PWR_NETS_VOLTAGEsS": "", - "GND_NETS_VOLTAGES": "", - }, - macros = FAKERAMS, - sources = { - "SDC_FILE": [":constraint.sdc"], - "SYNTH_NETLIST_FILES": [":netlists_canonicalized"], - }, - tags = ["manual"], - verilog_files = [], -) diff --git a/flow/designs/sky130hd/ibex/BUILD.bazel b/flow/designs/sky130hd/ibex/BUILD.bazel deleted file mode 100644 index 08f7adc3e6..0000000000 --- a/flow/designs/sky130hd/ibex/BUILD.bazel +++ /dev/null @@ -1,23 +0,0 @@ -load("@bazel-orfs//:openroad.bzl", "orfs_flow") - -orfs_flow( - name = "ibex", - arguments = { - "ADDER_MAP_FILE": "", - "CORE_UTILIZATION": "45", - "PLACE_DENSITY_LB_ADDON": "0.25", - "TNS_END_PERCENT": "100", - "REMOVE_ABC_BUFFERS": "1", - "SYNTH_HDL_FRONTEND": "slang", - "VERILOG_INCLUDE_DIRS": "flow/designs/src/ibex_sv/vendor/lowrisc_ip/prim/rtl", - "CTS_CLUSTER_SIZE": "20", - "CTS_CLUSTER_DIAMETER": "50", - }, - pdk = "@docker_orfs//:sky130hd", - sources = { - "SDC_FILE": [":constraint.sdc"], - "FASTROUTE_TCL": ["fastroute.tcl"], - }, - top = "ibex_core", - verilog_files = ["//flow/designs/src/ibex_sv:verilog"], -) diff --git a/flow/designs/src/aes/BUILD.bazel b/flow/designs/src/aes/BUILD.bazel deleted file mode 100644 index 1639cf0a3b..0000000000 --- a/flow/designs/src/aes/BUILD.bazel +++ /dev/null @@ -1,5 +0,0 @@ -filegroup( - name = "verilog", - srcs = glob(include = ["*.v"]), - visibility = ["//visibility:public"], -) diff --git a/flow/designs/src/ethmac/BUILD.bazel b/flow/designs/src/ethmac/BUILD.bazel deleted file mode 100644 index 1639cf0a3b..0000000000 --- a/flow/designs/src/ethmac/BUILD.bazel +++ /dev/null @@ -1,5 +0,0 @@ -filegroup( - name = "verilog", - srcs = glob(include = ["*.v"]), - visibility = ["//visibility:public"], -) diff --git a/flow/designs/src/gcd/BUILD.bazel b/flow/designs/src/gcd/BUILD.bazel deleted file mode 100644 index 1639cf0a3b..0000000000 --- a/flow/designs/src/gcd/BUILD.bazel +++ /dev/null @@ -1,5 +0,0 @@ -filegroup( - name = "verilog", - srcs = glob(include = ["*.v"]), - visibility = ["//visibility:public"], -) diff --git a/flow/designs/src/ibex_sv/BUILD.bazel b/flow/designs/src/ibex_sv/BUILD.bazel deleted file mode 100644 index 964365b4e1..0000000000 --- a/flow/designs/src/ibex_sv/BUILD.bazel +++ /dev/null @@ -1,9 +0,0 @@ -filegroup( - name = "verilog", - srcs = glob(include = [ - "**/*.sv", - "**/*.svh", - "**/*.v", - ]), - visibility = ["//visibility:public"], -) diff --git a/flow/designs/src/swerv/BUILD.bazel b/flow/designs/src/swerv/BUILD.bazel deleted file mode 100644 index 1639cf0a3b..0000000000 --- a/flow/designs/src/swerv/BUILD.bazel +++ /dev/null @@ -1,5 +0,0 @@ -filegroup( - name = "verilog", - srcs = glob(include = ["*.v"]), - visibility = ["//visibility:public"], -) diff --git a/flow/util/BUILD.bazel b/flow/util/BUILD.bazel index b8892cbab6..0d9f174267 100644 --- a/flow/util/BUILD.bazel +++ b/flow/util/BUILD.bazel @@ -34,9 +34,6 @@ filegroup( # for scripts/synth.sh steps filegroup( name = "makefile_yosys", - srcs = glob(MAKEFILE_SHARED) + [ - "merge_lib.py", - "preprocessLib.py", - ], + srcs = glob(MAKEFILE_SHARED), visibility = ["//visibility:public"], )