diff --git a/sram/BUILD b/sram/BUILD index 056bba38..809cb6a7 100644 --- a/sram/BUILD +++ b/sram/BUILD @@ -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",