Skip to content

ROHD Hierarchy: an API for compact, generic traversal of a remote design#653

Open
desmonddak wants to merge 7 commits into
intel:mainfrom
desmonddak:rohd_hierarchy
Open

ROHD Hierarchy: an API for compact, generic traversal of a remote design#653
desmonddak wants to merge 7 commits into
intel:mainfrom
desmonddak:rohd_hierarchy

Conversation

@desmonddak
Copy link
Copy Markdown
Contributor

@desmonddak desmonddak commented Apr 17, 2026

…pact, canonical addresses

Description & Motivation

It would be nice to have a hierarchy api that allows us to remotely traverse a design hierarchy using compact addressing to support a devtools-based debugger. For example, if we receive a dictionary of the design, we can communicate requests for more data from the design by using a compressed addressing scheme like (5th instance, 4th instance below that, 15th signal) to receive a set of data on that signal. If we need 1000s of simulation values, for example, we do not need to transmit all names, providing an order of magnitude savings in transmission bandwidth.

This capability allows us to traverse an occurrence view over multiple data requests incrementally. For now, we primarily have two views: a 'slim' view, which displays the full hierarchy with names, and a full view, which shows all connectivity. This can be extended to allow for a more incremental dictionary load to allow a remote agent to use limited memory to transit a very large design.

Related Issue(s)

None.

Testing

Tests are provided with a small design fixture using a new netlist format in JSON, equivalent to Yosys JSON. A future netlist synthesizer will provide design data nd this rohd_hierarchy adapter will allow us to communicate between remote agents.

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

No

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

A README.md is included to describe the motivation, architecture, and key features of the api.

Copy link
Copy Markdown
Contributor

@mkorbel1 mkorbel1 left a comment

Choose a reason for hiding this comment

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

Will be reviewing this next, couple quick comments until I have a moment to continue. This looks really great so far!

Comment thread packages/rohd_hierarchy/analysis_options.yaml
Comment thread packages/rohd_hierarchy/lib/src/hierarchy_models.dart Outdated
@mkorbel1
Copy link
Copy Markdown
Contributor

mkorbel1 commented May 7, 2026

Question: how do you imagine this package being used/depended on? Would we release it as a separate package on pub.dev?

Comment thread packages/rohd_hierarchy/lib/rohd_hierarchy.dart Outdated
Comment thread packages/rohd_hierarchy/lib/src/hierarchy_models.dart Outdated
Comment thread packages/rohd_hierarchy/lib/src/hierarchy_models.dart Outdated
Comment thread packages/rohd_hierarchy/lib/src/hierarchy_models.dart Outdated
Comment thread packages/rohd_hierarchy/lib/src/hierarchy_models.dart Outdated
Comment thread packages/rohd_hierarchy/lib/src/hierarchy_service.dart Outdated
Comment thread packages/rohd_hierarchy/lib/src/hierarchy_service.dart
Comment thread packages/rohd_hierarchy/lib/src/hierarchy_service.dart
Comment thread packages/rohd_hierarchy/test/coverage_gaps_test.dart
Comment thread packages/rohd_hierarchy/test/hierarchy_search_controller_test.dart
@desmonddak
Copy link
Copy Markdown
Contributor Author

It is unclear if this really should be a separate package or integrated into ROHD. The waveform viewer depends on it and that is somewhat independent of ROHD. So I created it as a package because other capabilities will come that are in ROHD proper that use it as well.

@desmonddak desmonddak requested a review from mkorbel1 May 12, 2026 05:06
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