Skip to content

Commit

Permalink
sram: mix .lib and .lef files
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Sep 18, 2024
1 parent d439215 commit 28d3112
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions sram/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,39 @@ orfs_flow(
verilog_files = [":fakeram/top.v"],
)


filegroup(
name = "lef_file",
srcs = [
"sdq_17x64_generate_abstract",
],
output_group = "sdq_17x64.lef",
)

# buildifier: disable=duplicated-name
orfs_flow(
name = "top",
variant="mix",
abstract_stage = "grt",
args = FAST_SETTINGS | {
"SDC_FILE": "$(location //sram:fakeram/constraints-sram.sdc)",
"DIE_AREA": "0 0 100 100",
"CORE_AREA": "2 2 98 98",
"RTLMP_FLOW": "True",
"CORE_MARGIN": "2",
"MACRO_PLACE_HALO": "2 2",
"ADDITIONAL_LEFS": "$(location :lef_file)",
"ADDITIONAL_LIBS": "$(location //sram:fakeram/sdq_17x64.lib)",
},
sources = {
"ADDITIONAL_LEFS" : [":lef_file"],
"ADDITIONAL_LIBS" : ["//sram:fakeram/sdq_17x64.lib"],
"SDC_FILE": ["//sram:fakeram/constraints-sram.sdc"],
},
verilog_files = ["//sram:fakeram/top.v"],
)


# buildifier: disable=duplicated-name
orfs_flow(
name = "sdq_17x64",
Expand Down

0 comments on commit 28d3112

Please sign in to comment.