Skip to content
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

Add BRAM numbers to resource estimate executive summary #2360

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions fud/fud/stages/vivado/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def place_and_route_extract(
if util_file.exists():
impl_parser = rpt.RPTParser(util_file)
slice_logic = impl_parser.get_table(re.compile(r"1\. CLB Logic"), 2)
bram_table = impl_parser.get_table(re.compile(r"3\. BLOCKRAM"), 2)
dsp_table = impl_parser.get_table(re.compile(r"4\. ARITHMETIC"), 2)

clb_lut = to_int(find_row(slice_logic, "Site Type", "CLB LUTs")["Used"])
Expand All @@ -96,6 +97,9 @@ def place_and_route_extract(
find_row(slice_logic, "Site Type", "CLB LUTs")["Used"]
),
"dsp": to_int(find_row(dsp_table, "Site Type", "DSPs")["Used"]),
"brams": to_int(
find_row(bram_table, "Site Type", "Block RAM Tile")["Used"]
),
"registers": rtl_component_extract(synth_file, "Registers"),
"muxes": rtl_component_extract(synth_file, "Muxes"),
"clb_registers": clb_reg,
Expand Down
Loading