Wing Li has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/55363 )
Change subject: dev: define VectorIntSourcePin type
......................................................................
dev: define VectorIntSourcePin type
Change-Id: Ic457593cefb4f82794d3fe4c8c91931c1bf76a63
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/55363
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
Reviewed-by: Gabe Black <[email protected]>
Tested-by: kokoro <[email protected]>
---
M src/dev/IntPin.py
1 file changed, 25 insertions(+), 0 deletions(-)
Approvals:
Jason Lowe-Power: Looks good to me, but someone else must approve; Looks
good to me, approved
Gabe Black: Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/dev/IntPin.py b/src/dev/IntPin.py
index a6851cc..80618ce 100644
--- a/src/dev/IntPin.py
+++ b/src/dev/IntPin.py
@@ -35,6 +35,17 @@
def __init__(self, desc):
super().__init__(INT_SOURCE_ROLE, desc, is_source=True)
+# A vector of source pins which might represent a bank of physical pins.
Unlike
+# IntSourcePin, each source pin in VectorIntSourcePin can only connect to a
+# single sink pin. VectorIntSourcePin has the same definition as
IntSourcePin
+# right now, but will likely be implemented differently in the future.
+# VectorIntSourcePin is defined as its own separate type to differentiate
it
+# from IntSourcePin and make it clear to the user how it should be
interpreted
+# and used.
+class VectorIntSourcePin(VectorPort):
+ def __init__(self, desc):
+ super().__init__(INT_SOURCE_ROLE, desc, is_source=True)
+
# Each "physical" pin can be driven by a single source pin since there are
no
# provisions for resolving competing signals running to the same pin.
class IntSinkPin(Port):
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/55363
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ic457593cefb4f82794d3fe4c8c91931c1bf76a63
Gerrit-Change-Number: 55363
Gerrit-PatchSet: 2
Gerrit-Owner: Wing Li <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
Gerrit-Reviewer: Wing Li <[email protected]>
Gerrit-Reviewer: kokoro <[email protected]>
Gerrit-CC: Earl Ou <[email protected]>
Gerrit-CC: Gabe Black <[email protected]>
Gerrit-CC: Philip Metzler <[email protected]>
Gerrit-CC: Yu-hsin Wang <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s