Skip to content

Address mapping enhancement and bug fix for floonoc#80

Open
liyinrong wants to merge 2 commits into
gvsoc:masterfrom
liyinrong:yinrong/floonoc_patch
Open

Address mapping enhancement and bug fix for floonoc#80
liyinrong wants to merge 2 commits into
gvsoc:masterfrom
liyinrong:yinrong/floonoc_patch

Conversation

@liyinrong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 29, 2026 14:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the FlooNoc model/generator to improve mapping flexibility and to fix a request/response classification bug in the network interface request enqueuing path.

Changes:

  • Fix request-vs-response handling in NetworkQueue::enqueue_router_req by using the explicit is_req parameter.
  • Extend the FlooNoc Python generator o_MAP helper to accept an optional mapping name and use it as the mapping key.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pulp/floonoc/floonoc_network_interface.cpp Uses is_req to decide whether to compute destination from address mappings vs. reuse existing routing metadata.
pulp/floonoc/floonoc.py Adds optional name to o_MAP and changes the mapping key selection to allow custom naming.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pulp/floonoc/floonoc.py
Comment on lines 151 to 153
def o_MAP(self, base: int, size: int,
x: int, y: int,
x: int, y: int, name: str | None=None,
rm_base: bool=False, remove_offset:int =0):
Comment thread pulp/floonoc/floonoc.py
if rm_base and remove_offset == 0:
remove_offset =base
self.__add_mapping(f"ni_{x}_{y}", base=base, size=size, x=x, y=y, remove_offset=remove_offset)
self.__add_mapping(f"ni_{x}_{y}" if name is None else name, base=base, size=size, x=x, y=y, remove_offset=remove_offset)
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