Repository navigation
docs: add DataPortInterface usage example #192 - #301
Closed
AzazelSensei wants to merge 2 commits into
Closed
AzazelSensei wants to merge 2 commits into
AzazelSensei wants to merge 2 commits into
Conversation
Show constructing read/write ports and driving en/addr/data on a RegisterFile.
mkorbel1
requested changes
Sep 14, 2026
mkorbel1
left a comment
Contributor
There was a problem hiding this comment.
Thank you for contributing!
| /// [DataPortGroup]. Drive [en], [addr], and [data] on a write port. Drive [en] | ||
| /// and [addr] on a read port; [data] is returned by the memory. | ||
| /// | ||
| /// ```dart |
Contributor
There was a problem hiding this comment.
This example is good for a testbench, but not for real hardware. I think it's worth including (additionally at least) an example of using the interface in a hardware context (not just .puts from a testbench). Some people may be encountering ROHD Interfaces one of the first times with these memory components.
Author
There was a problem hiding this comment.
Added a hardware example that drives the ports with <=, and left the .put snippet as a testbench example.
Show driving ports with <= in hardware, keep .put as a testbench example.
Merged
Contributor
|
Superceded by #316 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description & Motivation
The generated class page for
DataPortInterfacedid not show how to wire it. I added a short dartdoc example that constructs read/write ports, passes them toRegisterFile, and drivesen/addr/data.Related Issue(s)
Fixes #192
Testing
Snippet matches the simple write path in
test/memory/memory_test.dart. Docs-only, no behavior change.Backwards-compatibility
No.
Documentation
Yes — class dartdoc on
DataPortInterface, which is what https://intel.github.io/rohd-hcl/rohd_hcl/DataPortInterface-class.html is built from.