Skip to content

Commit

Permalink
[topgen] Fix previously unused code in add_intermodule_connection
Browse files Browse the repository at this point in the history
Signed-off-by: David Schrammel <davidschrammel@rivosinc.com>
  • Loading branch information
davidschrammel authored and rswarbrick committed Jan 24, 2025
1 parent 06b974d commit bbc324c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/topgen/intermodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def add_intermodule_connection(obj: OrderedDict, req_m: str, req_s: str,
# check if rsp has data
if rsp_key in connect[req_key]:
return
req_key.append(rsp_key)
connect[req_key].append(rsp_key)
return

# req_key is not in connect:
Expand All @@ -105,7 +105,7 @@ def add_intermodule_connection(obj: OrderedDict, req_m: str, req_s: str,
# check if rsp has data
if req_key in connect[rsp_key]:
return
rsp_key.append(req_key)
connect[rsp_key].append(req_key)
return

# Add new key and connect
Expand Down

0 comments on commit bbc324c

Please sign in to comment.