Skip to content

resized regfiles to align with synth-based sizes #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,18 @@ genrule(
visibility = ["//visibility:public"],
)

# Reg file sizes adjusted to line up with synthesized/flattened sizes
boom_regfile_rams = {
"regfile_128x64": ":io-sram-bottom",
"regfile_128x65": ":io-sram",
"regfile_128x64": {
"io_constraint": ":io-sram-bottom",
"die_area": "0 0 176 166",
"core_area": "2 2 174 164",
},
"regfile_128x65": {
"io_constraint": ":io-sram",
"die_area": "0 0 282 272",
"core_area": "2 2 280 270",
},
}

[
Expand All @@ -287,26 +296,26 @@ boom_regfile_rams = {
"floorplan": BLOCK_FLOORPLAN | {
# "CORE_UTILIZATION": "200",
# "CORE_ASPECT_RATIO": "4",
"DIE_AREA": "0 0 400 400",
"CORE_AREA": "2 2 298 298",
"IO_CONSTRAINTS": "$(location {})".format(io_constraint),
"DIE_AREA": ram_data["die_area"],
"CORE_AREA": ram_data["core_area"],
"IO_CONSTRAINTS": "$(location {})".format(ram_data["io_constraint"]),
},
"place": {
"PLACE_DENSITY": {
"regfile_128x64": "0.42",
"regfile_128x65": "0.3",
}.get(ram),
"IO_CONSTRAINTS": "$(location {})".format(io_constraint),
"IO_CONSTRAINTS": "$(location {})".format(ram_data["io_constraint"]),
},
},
stage_sources = {
"synth": [":constraints-sram"],
"floorplan": [io_constraint],
"place": [io_constraint],
"floorplan": [ram_data["io_constraint"]],
"place": [ram_data["io_constraint"]],
},
verilog_files = ["mock/" + ram + ".sv"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are mocked register files, i.e. they do not have all the rows. Use "rtl/" for original RTL.

So this leaves me with a question: what size do the new sizes correspond to? The mock/ or rtl/ version?

)
for ram, io_constraint in boom_regfile_rams.items()
for ram, ram_data in boom_regfile_rams.items()
]

orfs_run(
Expand Down