Skip to content

Commit

Permalink
xls/modules/zstd/BUILD: benchmark repacketizer
Browse files Browse the repository at this point in the history
Internal-tag: [#52954]
Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
  • Loading branch information
lpawelcz committed Feb 21, 2024
1 parent 122edc5 commit ba47228
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions xls/modules/zstd/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -717,3 +717,58 @@ xls_dslx_test(
name = "repacketizer_dslx_test",
library = ":repacketizer_dslx",
)

xls_dslx_verilog(
name = "repacketizer_verilog",
codegen_args = {
"module_name": "Repacketizer",
"delay_model": "asap7",
"pipeline_stages": "2",
"reset": "rst",
"use_system_verilog": "false",
},
dslx_top = "Repacketizer",
library = ":repacketizer_dslx",
verilog_file = "repacketizer.v",
)

xls_benchmark_ir(
name = "repacketizer_opt_ir_benchmark",
src = ":repacketizer_verilog.opt.ir",
benchmark_ir_args = {
"pipeline_stages": "2",
"delay_model": "asap7",
},
)

verilog_library(
name = "repacketizer_verilog_lib",
srcs = [
":repacketizer.v",
],
)

synthesize_rtl(
name = "repacketizer_synth_asap7",
standard_cells = "@org_theopenroadproject_asap7sc7p5t_28//:asap7-sc7p5t_rev28_rvt",
top_module = "Repacketizer",
deps = [
":repacketizer_verilog_lib",
],
)

benchmark_synth(
name = "repacketizer_benchmark_synth",
synth_target = ":repacketizer_synth_asap7",
)

place_and_route(
name = "repacketizer_place_and_route",
clock_period = "750",
core_padding_microns = 2,
min_pin_distance = "0.5",
placement_density = "0.30",
skip_detailed_routing = True,
synthesized_rtl = ":repacketizer_synth_asap7",
target_die_utilization_percentage = "10",
)

0 comments on commit ba47228

Please sign in to comment.