Skip to content

Commit

Permalink
Add BRAMs to executive summary
Browse files Browse the repository at this point in the history
  • Loading branch information
polybeandip committed Nov 20, 2024
1 parent fa298e9 commit b2c7103
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit b2c7103

Please sign in to comment.