Skip to content

Tagctrl update - #810

Open
joncapltd wants to merge 5 commits into
lowRISC:mainfrom
Capabilities-Limited:tagctrl-update
Open

joncapltd wants to merge 5 commits into
lowRISC:mainfrom
Capabilities-Limited:tagctrl-update

Conversation

@joncapltd

Copy link
Copy Markdown
Contributor

Update vendoring of Tag Controller to hierarchical design with both root and leaf caches.
This design also allows pipelining, though the SoC likely limits this for now. Nevertheless, including this functionality should improve area estimation for the final design.

@raylau1 raylau1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Initial feedback on the vendoring. Also there seems to be some non-critical warnings preventing verilator build, so please add them to the waivers.

Comment thread hw/ip/common_cells/rtl/stream_fifo.sv Resolved

@raylau1 raylau1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some feedback from Xcelium DV.

@raylau1 raylau1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fixes. Here are a few more comments, also please resolve the conflict in top_chip_system.core.

Comment thread hw/top_chip/lint/top_chip_system.vlt Resolved
Comment thread hw/top_chip/rtl/top_chip_system.sv Resolved
Comment thread hw/vendor/tagctrl.core
@@ -10,25 +10,37 @@ filesets:
files_rtl:
depend:
- cosmic::pulp_axi_llc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we don't need pulp_axi_llc anymore.

joncapltd and others added 5 commits November 27, 2026 11:08
Follow the main branch of Capabilities-Limited/axi_cheri_tagcontroller
and lock it at 30d9d698. Exclude the upstream CI and Nix files, and drop
the exclusion for src/axi_llc, which upstream no longer has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run the vendor script to import axi_cheri_tagcontroller at the locked
main revision 30d9d698.

Upstream has replaced the axi_llc-based tag cache with a two-level
tag lookup engine built on HPDCache, and removed the register-bus
wrapper. Drop all the local patches:
- 0001 (compilation fixes), 0003 (tag store BRAM utilisation) and 0004
  (output known assertions) only touched removed files
  (axi_llc_tag_store.sv, axi_tagctrl_reg_wrap.sv) or rewritten code.
- 0002 (W-channel and bit-enable fixes) is superseded by the pipelined
  axi_tagctrl_w.sv: memory B responses are buffered and the B stage is
  driven by the last W beat accepted rather than the last beat sent to
  memory, so W beats no longer need gating on the FSM state, and the
  tag bit enables are cleared on every tag flush, which includes the
  last beat of each burst.

The SoC still instantiates the removed wrapper; it is updated in a
following commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Instantiate axi_tagctrl_top in place of the removed
axi_tagctrl_reg_wrap. The configuration is fixed by parameters, as the
old register-bus port was tied off: tags cover DRAMBase up to
TagCacheMemBase, the tag table lives in the carve-out from
TagCacheMemBase to the end of DRAM, the root table is zeroed out of
reset (init_start) and the configuration is locked (init_locked), with
the now-AXI configuration port tied off. Check at elaboration that the
leaf and root tables fit in the carve-out.

Supporting changes:
- Add vendor patch 0001 to use the parameter names and explicit widths
  of the vendored pulp_axi axi_cut and axi_isolate.
- Add vendor patch 0002, porting the output known assertions dropped
  with the register-bus wrapper to axi_tagctrl_top, now also covering
  the valid signals and the AXI configuration port.
- Add vendor patch 0003, replacing the new tag controller's stream_fifo
  instances with prim_fifo_sync, as is done for pulp_axi, with
  OutputZeroIfEmpty off to match stream_fifo.
- Update the tag controller core file list and dependencies (HPDCache,
  prim assert and prim fifo; register_interface is no longer needed)
  and drop the register_interface includes from top_chip_system.
- Replace the Verilator waivers for the old tag controller sources with
  waivers for the new ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Ray Lau <ray.lau@lowrisc.org>
Co-authored-by: Ray Lau <ray.lau@lowrisc.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants